<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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. <br><br>cat notifyscript.sh <br>#!/bin/bash<br>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<br>#/usr/sbin/csync2 -x >/dev/null 2>&1;<br><br><br>Thanks,<br><br>Brian Thompson<br>"Whatever it takes, I'll do it"<br>"Success is a matter of a few simple disciplines, practiced every day. Failure is a few errors in<br>judgment, repeated every day."<br>"To avoid criticism, do nothing, say nothing, be nothing."<br><br><br>--- On <b>Tue, 11/9/10, Lars Ellenberg <i><lars.ellenberg@linbit.com></i></b>
wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Lars Ellenberg <lars.ellenberg@linbit.com><br>Subject: Re: [Csync2] cpu usage csync2 high<br>To: csync2@lists.linbit.com<br>Date: Tuesday, November 9, 2010, 3:39 PM<br><br><div class="plainMail">On Tue, Nov 09, 2010 at 10:43:22AM -0800, B T wrote:<br>> with just csync installed it is using quite a bit of cpu resources.<br>> When it runs shoots to 60 or 70 percent. The server is not loaded yet<br>> but im afraid to put load on it with this kind if cpu usage. Is there<br>> anything I need to do? It is always spawning new process with new<br>> ids. I grep and try to kill as seen below. You can also see top<br>> command below just idle running at 38 percent cpu. I also have xinetd<br>> install and it setup as a service if you need to know that. <br>> <br>> etc#
ps -ef | grep csync2<br>> root 9288 556 54 13:35 ? 00:00:01 /usr/sbin/csync2 -x<br>> root 9290 7479 0 13:35 pts/0 00:00:00 grep --color=auto csync2<br>> root@tesweb01:/etc# kill 9288<br>> -bash: kill: (9288) - No such process<br>> root@tesweb01:/etc# ps -ef | grep csync2<br>> root 9295 556 57 13:35 ? 00:00:01 /usr/sbin/csync2 -x<br>> root 9297 7479 0 13:35 pts/0 00:00:00 grep --color=auto csync2<br>> root@tes:/etc# kill 9295 <br><br>I fear you have to disclose a bit more about your setup.<br>Who started that "csync2 -x"?<br>how frequently?<br>csync2 does usually not start itself...<br><br>> top<br>> PID
USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND <br>> 9217 root 20 0 31328 2356 1376 S 38 0.1 0:01.14 csync2 <br>> <br>> /etc/csync2.cfg<br>> # please see the REAMDE file how to configure csync2<br>> nossl * *;<br>> <br>> group tglwebgroup <br>> {<br>> host tesweb01;<br>> host tesweb02;<br>> <br>> key /etc/csync2_ssl_cert.key;<br>> <br>> include /etc/csync2.cfg;<br>> include /etc/apache2/;<br>> include /var/www/;<br>> include /var/log/apache2;<br>> exclude *.log;<br>> action<br>> {<br>> pattern /etc/apache2/apache2.conf;<br>> pattern /etc/apache2/httpd.conf;<br>>
pattern /etc/apache2/sites-available/*;<br>> <br>> exec "/usr/sbin/apache2ctl graceful";<br>> logfile "/var/log/csync2_action.log";<br>> do-local;<br>> }<br>> backup-directory /var/backups/csync2;<br>> backup-generations 3;<br>> auto none; #no automatic sync<br>> }<br>> <br><br>> _______________________________________________<br>> Csync2 mailing list<br>> <a ymailto="mailto:Csync2@lists.linbit.com" href="/mc/compose?to=Csync2@lists.linbit.com">Csync2@lists.linbit.com</a><br>> <a href="http://lists.linbit.com/mailman/listinfo/csync2" target="_blank">http://lists.linbit.com/mailman/listinfo/csync2</a><br><br><br>-- <br>: Lars Ellenberg<br>: LINBIT | Your Way to High Availability<br>: DRBD/HA support and consulting <a href="http://www.linbit.com" target="_blank">http://www.linbit.com</a><br><br>DRBD® and LINBIT® are registered trademarks of LINBIT,
Austria.<br>_______________________________________________<br>Csync2 mailing list<br><a ymailto="mailto:Csync2@lists.linbit.com" href="/mc/compose?to=Csync2@lists.linbit.com">Csync2@lists.linbit.com</a><br><a href="http://lists.linbit.com/mailman/listinfo/csync2" target="_blank">http://lists.linbit.com/mailman/listinfo/csync2</a><br></div></blockquote></td></tr></table>