-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initial replication works but hamonitor doesn't sync after that #41
Comments
Hello @vtacquet sorry by the very big delayed answer. The hamonitor process presupposes the cluster already synced and it detects when the slave is down , take note about the period in downtime and sync once the slave has recovered. But it needs to know in starting time that data is synced. If not you need to sync data playing syncflux manually as you did. |
I also have this issue. If the databases are not in sync the -hamonitor will bring them back into sync, but not keep them synced...no updates into the master are transferred to the slave. from this point the slave never gets any updates... @toni-moreno I see your comment above... cant hamonitor on detecting that the slave is available again, trigger a resync? |
@mgf909 hamonitor mode trigger resync just after the slave have been recovered and only for the period of time while slave was down. In the meanwhile you need influxdb-srelay behind 2 nodes sending replicated data to both nodes. |
@toni-moreno -Ok i see. I guess i can just periodically do a - "copy" from the slave to the master... -HAMonitor was just so close to being perfect as it continues to run in a loop. |
after the initial replication "hamonitor" just does a cluster check and doesn't copy data anymore (there is no error)
when I start a syncflux with "copy" action manually (while hamonitor is running in the background), the data (after the initial replication) gets synced again, but since this is manual I have to do this every time
shouldn't that sync be done by hamonitor process ?
The text was updated successfully, but these errors were encountered: