How do I manually sync my main node with my standby nodes?
Deskpro HA allows you to manually run a sync from your main node across to all your standby nodes or specifiy a sync to a specific cluster. You also have the option to specifiy if you want to only sync the cluster configuration or the helpdesk attachements.
if a node is already in the process of running a sync a manually run sync to that node will fail until the current sync is complete.
To run a full cluster sync:
opc cluster sync copy
This will run a full sync, this is the same sync task that is ran automatically by the HA service. The sync verifies each node, checks the config then sync's the attachements.
To run a full sync on a specific node you will need the node Id, you can get this from running a cluster list
opc cluster node list copy
To run a full sync on a specific node the command is:
opc cluster sync --node copy
Using the above screenshot, if we ran a full sync on the standby node 192.168.100.37 the command would be:
opc cluster sync node 69b9e3f8-48e2-46c3-83a7-15cf4065d7e6 copy
This will then confirm that only the specified node has been sync'd, with the non-specified nodes being skipped.
To run a config only sync:
opc cluster sync --config-only copy
This sync will check and update the node configurations if needed, this takes a very short time to run.
To run a config sync on a specific node you need to add the node Id to the end of the command:
opc cluster sync --config-only --node copy
To run a attachements only sync:
opc cluster sync --attachements-only copy
This sync can take time depending on the size of the Deskpro helpdesk attachements.
To run an attachement sync on a specific node you need to add the node Id to the end of the command:
opc cluster sync --attachements-only --node copy
Please log in or register to submit a comment.