To be honest, Cfengine is not that lightweight to run it on default schedule on busy production servers, from my experience. My current approach to writing promises consists of defining relatively relaxed schedule (from 20 minutes to 1 hour and even more) while enforcing urgent changes via cf-runagent where it's needed.
2010/11/19 Daniel V. Klein <d...@lonewolf.com>: > Chris- > > I agree with Seva about hard classes. But this makes me ask: why are you so > erratically validating your promises? Why not every 5 minutes, which is the > default? Cfengine is lightweight, and does not load your system. But if you > have "expensive" promises, just change the "if_elapsed" value for those > specific promises... > > Here's what I have for my machines: > > body executor control > { > ns|fit_pc:: > # Use restricted schedule on slow processors > schedule => { "Min00", "Min15", "Min30", "Min45" }; > > !(ns|fit_fc):: > # Use default schedule on faster processors > schedule => { "Min00", "Min05", "Min10", "Min15", "Min20", "Min25", > "Min30", "Min35", "Min40", "Min45", "Min50", "Min55" }; > > } > > I never notice Cfengine is running, and I track my load averages with > Cricket... > > -Dan > > On Nov 19, 2010, at 9:14 AM, C R Ritson wrote: > >> It seems to me that I cannot arrange to validate promises regularly using >> classes defined elsewhere. Have I misunderstood something? In body executor >> control... >> >> schedule => { "Weekday.Morning.Q1", ... } >> >> fails to validate my promises when the class Weekday is defined in "bundle >> agent executor" or when I attempt to define it globally in "bundle common >> class". To get more frequent promise validation during the working day, I >> seem to have to resort to... >> >> schedule => { "(Monday|Friday).(Min00_05|Min40_45).(Hr08|Hr18)", ... } >> >> (the or-ed expressions have been shortened here). Is there a better way of >> doing this, or am I expected to achieve all this with "if_elapsed"? >> >> Chris Ritson (Computing Officer and School Safety Officer) >> >> Room 707, Claremont Tower, EMAIL: c.r.rit...@ncl.ac.uk >> School of Computing Science, PHONE: +44 191 222 8175 >> Newcastle University, FAX : +44 191 222 8232 >> Newcastle upon Tyne, UK NE1 7RU. WEB : http://www.cs.ncl.ac.uk/ >> >> >> _______________________________________________ >> Help-cfengine mailing list >> Help-cfengine@cfengine.org >> https://cfengine.org/mailman/listinfo/help-cfengine > > _______________________________________________ > Help-cfengine mailing list > Help-cfengine@cfengine.org > https://cfengine.org/mailman/listinfo/help-cfengine > -- SY, Seva Gluschenko. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine