diff options
author | Saša Živkov <sasa.zivkov@sap.com> | 2018-04-18 12:20:15 +0200 |
---|---|---|
committer | Nguyen Tuan Khang Phan <nguyen.tuan.khang.phan@ericsson.com> | 2020-02-14 14:16:21 -0500 |
commit | 8b5547da463789631721a23919d0270c95ca8f50 (patch) | |
tree | c155cc5477a72698a5a411c6a3b2b8f99937f442 /src/main/resources/Documentation/config.md | |
parent | 3248582915e897c0d568160465a2ca905f38df3e (diff) |
Don't lose ref-updated events on plugin restart
When a ref-updated event is received, persist the event in the directory
defined by the replication.eventsDirectory. When the updated ref is
replicated deleted the persisted event.
If replication queue is non-empty and plugin gets stopped, ref updates
will not be replicated and, therefore, the persisted events will not get
deleted. When the plugin starts it will schedule replication for all
persisted events and delete them.
This change provides two benefits:
* no ref-updated events are lost on plugin restart
* eliminate need for the replicateOnStartup=true setting which schedules
replication of all refs for all projects and typically creates a humongous
replication queue on every plugin restart.
Change-Id: Ieacd084fabe703333241ffda11c8b6c78cced37a
(cherry picked from commit bdaea910694dd5a3474dbc051b298aaee9d77950)
Diffstat (limited to 'src/main/resources/Documentation/config.md')
-rw-r--r-- | src/main/resources/Documentation/config.md | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/resources/Documentation/config.md b/src/main/resources/Documentation/config.md index e70094c..81a0613 100644 --- a/src/main/resources/Documentation/config.md +++ b/src/main/resources/Documentation/config.md @@ -124,6 +124,17 @@ replication.maxRetries By default, pushes are retried indefinitely. +replication.eventsDirectory +: Directory where replication events are persisted + + When scheduling a replication, the replication event is persisted + under this directory. When the replication is done, the event is deleted. + If plugin is stopped before all scheduled replications are done, the + persisted events will not be deleted. When the plugin is started again, + it will trigger all replications found under this directory. + + When not set, defaults to the plugin's data directory. + remote.NAME.url : Address of the remote server to push to. Multiple URLs may be specified within a single remote block, listing different |