help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Optimizing large copies


From: Martin, Jason H
Subject: RE: Optimizing large copies
Date: Thu, 22 Sep 2005 12:08:54 -0700

> Darryl Baker said: 
> Isn't this a job for rsync rather than cfengine? Right tool for the
right job.

I suppose one could do that, however it means forgoing the CFE security
model about copying files, and I haven't seen anything in the
documentation to indicate that it isn't built to handle large # of
files. The only warning is to make sure your file-descriptor limit is
high enough.  It'll also make it harder to support, what with some files
copied via 'copy' statements and some via another mechanism
(shellcommand or entirely external script). 

Thank you,
-Jason Martin
 
> -----Original Message-----
> From: help-cfengine-bounces+darryl.baker=gedas.com@gnu.org
> [mailto:help-cfengine-bounces+darryl.baker=gedas.com@gnu.org]O
> n Behalf Of Martin, Jason H
> Sent: Thursday, September 22, 2005 2:08 PM
> To: help-cfengine@gnu.org
> Subject: Optimizing large copies
> 
> 
> Hello, I am looking at using CFEngine to guarantee that all 
> of my application files are the same across a set of hosts. 
> This involves a few copy statements of directories that 
> totaled together include about 8000 files for nearly 400MB 
> (lots of small images, html's, xml's, and such). Disregarding 
> the initial copy, it is taking 12 minutes for the copy 
> statements to run, even if there are no files needing update. 
> I've tried it with type=checksum and the default type action, 
> and it makes little difference. (checkum = 12 minutes, mtime 
> = 13 minutes). I'd really prefer to use checksum anyway, as 
> I'd like CFE to detect if a change is made on the client (ex 
> user updates CFE central repository, does sync, updates 
> client, does sync, file should now be back to CFE version). 
> As a counter-example,an rsyc of the same data takes 7 seconds.
> 
> An example 'slow' copy statement:
> 
>    XYZserver::
>         /var/cfengine/sourcedir
>         dest=/$(dest_root)/.cfagent/repository/XYZserver
>         owner=$(theowner)
>         group=$(thegroup)
>         r=inf
>         purge=true
>         action=fix
>         server=$(policyhost)
>         type=checksum
>         mode=750
> 
> Can anyone suggest how to best address this? I'm tempted to 
> put time-class into the copy statement to only do the 
> copy/check once a day or on demand, however that just limits 
> the problem to certain hours.  If anyone has any suggestions 
> on how to improve the performance of this I would appreciate 
> hearing them.
> 
> Has anyone run CFE w/profiling to see where it is spending its time?
> 
> (Client is Solaris 9 / CFE 2.1.14, policyhost is Linux / CFE 2.1.15).




reply via email to

[Prev in Thread] Current Thread [Next in Thread]