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
- For CONFIGSYNC_BASIC, that maps to the CLI command "bigpipe config sync min" which will issue a save to /config/bigip.conf and then a copy of that bigip.conf file to the secondary system.
- micah_64538
Nimbostratus
I'm leaning away from it being a timeout issue with the sync process between the 2 devices. Running it from the command line results in times between 21 to 26 seconds. - micah_64538
Nimbostratus
FastCGI: comm with server "/usr/local/www/iControl/iControlPortal.cgi" aborted: idle timeout (300 sec) - orangepeelbeef_
Nimbostratus
I have the same exact problem using the perl soaplite code. if i set the timeout to 500 i get a 500 error from the bigip, else I get a SSL Read timeout.sub syncConfiguration() { print "Syncronizing Config to Backup\n"; my ($syncFlag, $quiet) = (@_); my $success = 0; if ( "" eq $syncFlag ) { &usage("sync"); } $soap_response = $cfgsync->synchronize_configuration ( SOAP::Data->name(sync_flag => $syncFlag) ); if ( $soap_response->fault ) { if ( 1 != $quiet ) { print $soap_response->faultcode, " ", $soap_response->faultstring, "\n"; } } else { $success = 1; if ( 1 != $quiet ) { print "Configuration synchronized successfully!\n"; } } return $success; }
- orangepeelbeef_
Nimbostratus
no solution? - This looks like it's going to have to be a question from Product Support. The iControl Portal is running under FastCGI and it looks like the idle timeout that is configured for it is too small. FastCGI will monitor it's processes and kill them off if the run past the idle_timeout. I cannot recommend making system changes officially as they will likely get overwritten next time you upgrade. It's best to get this into the support queue to get it checked out by PD.
- orangepeelbeef_
Nimbostratus
I tweaked the value, and it didn't seem to make any difference. I'm still getting SSL timeouts. When I run it from the commandline or through the web gui it takes 20-30 seconds to configsync. Also, after I attempt to run it via script i run a ps on the bigip and see the configsync still running./usr/sbin/fcgi- HOSTNAME=bigip1.evri.com SHELL=/bin/bash TERM=xterm HISTSIZE=1000 SSH_CLIENT=10.75.4.2 59899 22 REMOTEROLE=0 SSH_TTY=/dev/pts/0 USER=root LS_COLORS=no=00:fi=00:di=00;34:ln=00;36:pi=40;33:so= 9092 ? S 0:00 | \_ /usr/local/www/iControl/iControlPortal.cgi 9108 ? S 0:00 | \_ /bin/bigpipe config sync min FCGI_ROLE=RESPONDER HTTPS=on SSL_VERSION_INTERFACE=mod_ssl/2.0.58 SSL_VERSION_LIBRARY=OpenSSL/0.9.7l SSL_PROTOCOL=TLSv1 SSL_CIPHER=DHE-RSA-AES256-SHA SSL_CIPHER_EXPORT=f 9138 ? S 0:00 | \_ /usr/local/bin/SOAPCSClient --source /var/tmp/__sync_local__.ucs --destination __sync_remote__.ucs SSL_SERVER_A_KEY=rsaEncryption SSL_CLIENT_VERIFY=NONE SSL_SESSION_ID=47EE2A3A198BDDBD8185740E59
- micah_64538
Nimbostratus
I seem to be able to reproduce the same behavior on at least 4 separate devices. Please post back to the thread if support comes up with anything, or if there is any info I can provide. - Ciro_Deng_14211
Nimbostratus
Hi all, I meet with exactly the same problem with you in BigIP6900 OS 9.4. Waiting for solution from F5!!! - hellhammer_3588
Nimbostratus
We also met this problem. The script we are using was working well in old platform: BIGIP6400, 9.3.1. Now we met this error when we tried to run the script on BIGIP6900, 9.4.6.
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