[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: syncrepl (refreshAndPersist) consumer cannot reconnect after provider



The default behavior of syncrepl consumer is to stop replication thread when
it cannot connect to the provider.

You can configure consumer to retry by specifying a syncrepl directive as
follows:

syncrepl
    ...
    retry="RetryInterval1 RetryNum1 RetryInterval2 RetryNum2 ... "
    ...

For example,

    retry="60 10 300 20"

lets syncrepl consumer retry every 60 seconds for the first 10 times
and then retry every 300 seconds for the next 20 times before stop retrying.

    retry="60 10 300 +"

Here, + means the second retry (with 300 sec interval) will continue until
success for the indefinite number of retries.

This syncrepl directive is yet to be documented in the admin guide.