[Csync2] cpu usage csync2 high
briant97 at yahoo.com
Tue Nov 9 21:47:34 CET 2010
this scrip runs on startup...However I killed the inotifywait process....yet csync2 keep starting itself and inotify is not running. is it part of xinetd i don't think that makes it starup.
inotifywait -mrq --format %f -e close_write -e create -e delete -e move -e modify /etc /var/www /var/log/apache2 | while read file; do /usr/sbin/csync2 -x >/dev/null 2>&1; done
#/usr/sbin/csync2 -x >/dev/null 2>&1;
"Whatever it takes, I'll do it"
"Success is a matter of a few simple disciplines, practiced every day. Failure is a few errors in
judgment, repeated every day."
"To avoid criticism, do nothing, say nothing, be nothing."
--- On Tue, 11/9/10, Lars Ellenberg <lars.ellenberg at linbit.com> wrote:
From: Lars Ellenberg <lars.ellenberg at linbit.com>
Subject: Re: [Csync2] cpu usage csync2 high
To: csync2 at lists.linbit.com
Date: Tuesday, November 9, 2010, 3:39 PM
On Tue, Nov 09, 2010 at 10:43:22AM -0800, B T wrote:
> with just csync installed it is using quite a bit of cpu resources.
> When it runs shoots to 60 or 70 percent. The server is not loaded yet
> but im afraid to put load on it with this kind if cpu usage. Is there
> anything I need to do? It is always spawning new process with new
> ids. I grep and try to kill as seen below. You can also see top
> command below just idle running at 38 percent cpu. I also have xinetd
> install and it setup as a service if you need to know that.
> etc# ps -ef | grep csync2
> root 9288 556 54 13:35 ? 00:00:01 /usr/sbin/csync2 -x
> root 9290 7479 0 13:35 pts/0 00:00:00 grep --color=auto csync2
> root at tesweb01:/etc# kill 9288
> -bash: kill: (9288) - No such process
> root at tesweb01:/etc# ps -ef | grep csync2
> root 9295 556 57 13:35 ? 00:00:01 /usr/sbin/csync2 -x
> root 9297 7479 0 13:35 pts/0 00:00:00 grep --color=auto csync2
> root at tes:/etc# kill 9295
I fear you have to disclose a bit more about your setup.
Who started that "csync2 -x"?
csync2 does usually not start itself...
> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
> 9217 root 20 0 31328 2356 1376 S 38 0.1 0:01.14 csync2
> # please see the REAMDE file how to configure csync2
> nossl * *;
> group tglwebgroup
> host tesweb01;
> host tesweb02;
> key /etc/csync2_ssl_cert.key;
> include /etc/csync2.cfg;
> include /etc/apache2/;
> include /var/www/;
> include /var/log/apache2;
> exclude *.log;
> pattern /etc/apache2/apache2.conf;
> pattern /etc/apache2/httpd.conf;
> pattern /etc/apache2/sites-available/*;
> exec "/usr/sbin/apache2ctl graceful";
> logfile "/var/log/csync2_action.log";
> backup-directory /var/backups/csync2;
> backup-generations 3;
> auto none; #no automatic sync
> Csync2 mailing list
> Csync2 at lists.linbit.com
: 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.
Csync2 mailing list
Csync2 at lists.linbit.com
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Csync2