[Csync2] Running multiple processes
Lars Ellenberg
lars.ellenberg at linbit.com
Thu May 27 14:21:10 CEST 2010
On Wed, May 26, 2010 at 11:05:25AM -0700, Aaron Porter wrote:
> I'd like to be able to run multiple simultaneous csync2's from a
> single host, and cursory review didn't how any reason why I shouldn't.
So sqlite contention has caused you some pain.
Thanks for suggesting your patch,
I'll have a closer look later, and will comment on your approach.
Meanwhile, please have a look at the patch series posted to this list by
Ard van Breemen. Maybe you can reuse some of his work, and extend it
with your needs.
http://projects.kwaak.net/twiki/bin/view/CSync2/WebHome
I have some of those merged already,
but not yet pushed back into public SVN.
Should do that sometime soon.
> Anything wrong with this approach? I also moved the lock file into
> /var/run, saving state in /etc offends my coworkers.
NACK.
This is not a "lock file", it actually is a sentinel,
more like a (temporary) configuration choice.
It should have been named "/etc/csync2.disable" or some such.
It belongs there, and will typically not exist.
Nothing is "saving state" there.
The admin may chose to create that file if need be.
csync2 only checks for existence of that file,
and exits, if it exists.
--
: Lars Ellenberg
: LINBIT | Your Way to High Availability
: DRBD/HA support and consulting http://www.linbit.com
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.
More information about the Csync2
mailing list