Forum Discussion
hotrod_127503
Nimbostratus
Jan 04, 2005Best Practice for Sync Between Primary and Failover
I am writing an auto-registration service that will allow machines to add themselves to the Load Balancer. Due to the transactional nature of this process, I am never quite sure when everyone is registered. If a synch call is blocking to the point where I would have wait 2-10 seconds for the synch to complete before the transaction could complete. It would render the service unusable perfomance wise. Is the sych call non-blocking? Can I run it on the through a cron job on the LB without adversley affecting performance?
Thanks in advance,
Justin
38 Replies
Sort By
- Loc_Pham_101863Historic F5 AccountI'm not quite sure I understand what you're trying to do.
- hotrod_127503
Nimbostratus
Config sync'ing. I would like to have the two synched somehow. I know that there is a call from iControl that will do it. However, what I am working is transactional, so it must synch before moving on to another task if I am to use that mechanism for synchronization. If I waited for it or the timeout, that kind of latency would really make this service unusable. I suppose you have answered my question. I really need to find another way to synchronize. Can I use a cron job? Could I do it with a monitor? - Loc_Pham_101863Historic F5 AccountAlthough you can configure a cron job to run configsync in the background, in your transactional code elsewhere, you still won't have any feedback that the configsync process is successful or not (unless you don't care if the new configuration actually can load on the peer machine). As you may have known, configsync is an involved process in which configuration from the source box must be packaged up and transferred to the peer box, and the new configuration must be loaded successfully on the peer. If you have a large configuration set with 1000s of VSes, pools and servers..., this may take some time to finish. It's the reason configsync is not seen as something that is done on a regular basis. Even when new servers are added/removed from a LB pool, typically configsync should only be done when everything is stabilized. The CLI, GUI, and iControl all use the same mechanism to configsync, so your cron job (which will likely use a CLI command) will also take approx the same amount of time to finish.
- Billy_Tolcher_1
Nimbostratus
First off, I realize the age of this topic, but I had to respond. This is indeed my first post on devcentral. - Loc_Pham_101863Historic F5 AccountThe "auto-configsync" feature will not start configsync'ing right away when configuration changes. There's a timeout period for the last configuration change to become "stable" before this feature kicks in. This timeout will be a configurable parameter.
- Eray_27463
Nimbostratus
I have an Automated F5 Draining solution that would drain our servers. When I wrote this I assumed there was only 1 F5. But now I've realized in production environment, we would have 2 F5(1 Active and 1 standby). - To force a ConfigSync operation from one unit to another, you'll want to use the synchronize_configuration() method in the System::ConfigSync interface.
enum System::ConfigSync::SyncMode { SYNCMODE_BASIC = 0, // Synchronizes only basic configuration, such as /config/bigip.conf. SYNCMODE_ALL = 1 // Synchronizes all common files in /config, all common files in /etc, all common BIG/db keys, and any other information deemed necessary for a complete system configuration. } System::ConfigSync::synchronize_configuration( in SyncMode sync_flag );
- Eray_27463
Nimbostratus
Thanks for your answer. - Don_MacVittie_1Historic F5 AccountHi Eray,
Last Change (Self) Wed Mar 12 06:59:48 PDT 2008
- micah_64538
Nimbostratus
We are also trying to synchronize a HA pair after adding updating pools and getting a timeout error on the sync. Any help is appreciated.
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects