Skip to content
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

Open
vtacquet opened this issue Aug 11, 2020 · 4 comments
Open

initial replication works but hamonitor doesn't sync after that #41

vtacquet opened this issue Aug 11, 2020 · 4 comments

Comments

@vtacquet
Copy link

after the initial replication "hamonitor" just does a cluster check and doesn't copy data anymore (there is no error)
hamonitor

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
copy

shouldn't that sync be done by hamonitor process ?

@toni-moreno
Copy link
Owner

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.

@mgf909
Copy link

mgf909 commented Sep 17, 2020

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.
image

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?

@toni-moreno
Copy link
Owner

@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.

@mgf909
Copy link

mgf909 commented Sep 18, 2020

@toni-moreno -Ok i see.
My use case is a little bit different i guess to how this was designed. My slave is running on a boat computer ( logging engine/navigation metrics ) and once back at the marina, i want it to reconnect to the master and send all updates.
I dont really want to have to setup the srelay components.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants