Wed Mar 16 18:57:24 PST 2005
- Previous message: [Slony1-commit] By cbbrowne: Change the SUBSCRIBE_SET event so that it starts by
- Next message: [Slony1-commit] By smsimms: Add an option to only kill watchdogs, not slons.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Log Message: ----------- Vary the sleep_seconds by up to 50% in either direction. This will help prevent watchdog processes from all firing at the same time. Modified Files: -------------- slony1-engine/tools/altperl: slon_watchdog.pl (r1.10 -> r1.11) -------------- next part -------------- Index: slon_watchdog.pl =================================================================== RCS file: /usr/local/cvsroot/slony1/slony1-engine/tools/altperl/slon_watchdog.pl,v retrieving revision 1.10 retrieving revision 1.11 diff -Ltools/altperl/slon_watchdog.pl -Ltools/altperl/slon_watchdog.pl -u -w -r1.10 -r1.11 --- tools/altperl/slon_watchdog.pl +++ tools/altperl/slon_watchdog.pl @@ -59,8 +59,8 @@ system "date >> $LOGDIR/slon_watchdog.log"; print LOG "Found slon daemon running for the $CLUSTER_NAME cluster, PID $pid\n"; print LOG "Looks Ok\n"; - print LOG "Sleeping for $sleep seconds\n"; + print LOG "Sleeping for $sleep +/- " . int($sleep/2) . " seconds\n"; } close(PSOUT); - sleep $sleep; + sleep $sleep + (rand($sleep) - $sleep/2); }
- Previous message: [Slony1-commit] By cbbrowne: Change the SUBSCRIBE_SET event so that it starts by
- Next message: [Slony1-commit] By smsimms: Add an option to only kill watchdogs, not slons.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Slony1-commit mailing list