[Csync2] cpu usage csync2 high
Lars Ellenberg
lars.ellenberg at linbit.com
Tue Nov 9 21:39:27 CET 2010
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"?
how frequently?
csync2 does usually not start itself...
> top
> 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
>
> /etc/csync2.cfg
> # 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;
> action
> {
> 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";
> do-local;
> }
> backup-directory /var/backups/csync2;
> backup-generations 3;
> auto none; #no automatic sync
> }
>
> _______________________________________________
> Csync2 mailing list
> Csync2 at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/csync2
--
: 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