Forum: CFEngine Help Subject: Re: Integer splayclass equivalent Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,26915,26973#msg-26973
Actually, my first soution was to use "-D FROM_CRON" and then to "should I do stuff or not" based on that (with splayclass). But just the startup time of cf-agent (the cron job runs cf-agent and both updates the policy and restarts the agent) was long enough to cause an adverse impact in response time on some of the web servers running in VMs; starting 50+ of those simultaneously on a system with less than 50 CPUs just doesn't work out so well. Most of the time, the expire time hasn't passed on the promises because the normal runs will have already checked both of them. But cf-promises was still eating an inordinate (IMHO) amount of time. Upgrading from 3.2.x to 3.4.x has reduced execution time *significantly*, though (from around 1.5 minutes to around 3-5 seconds), so this is less of a problem now. But it's still not ideal. I'm probably just going to pre-calculate an offset for machines and put that in a file, using getfields or something to get the desired offset for the current host. I should note that, since I'm checking if cf-execd is running, launching the check from cf-execd directly is probably not the best approach. ;) I do schedule everything else in CFEngine, so really I just have the one cron job. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine