Hi all, I just commit new modules, this one for the schedulers : flat file retention and a memcache one.
The idea with the retention modules are the capability to choose where you save your retention data (states and scheduling), and from where you load them. For a simple installation (no HA, one scheduler (but maybe numerous pollers, it's not a problem here)) you can choose the easy way : flat file save. But this way of retention is a huge problem with distributed schedulers (remember that the retention is for the schedulers only, the pollers just don't care about it) : you should rsync the file, install a NFS/OCFS/GFS filesystem, etc etc. Not easy. So for theses installations, you can choose to bypass this flat file retention save and use another one like the memcache based one. Memcache is a server that is easily setup in a Linux box for example and you can store in it key/value. Here it's the retention data that are save in it. So if a scheduler spare take the configuration, it can get all fresh states/scheduling for example. Memcache is just an example, for people that want a persistent solution (memcache is just in memory), you can hack the code and use redis or another key/value database (couchdb? :) ). The memcache module code at http://shinken.git.sourceforge.net/git/gitweb.cgi?p=shinken/shinken;a=blob;f=shinken/modules/memcache_retention_scheduler.py;h=4dfe5a2476f88deebe99bc6fcda8921ef7f3188e;hb=e3f87491d93cada718c35b102e3b4f470ae5780b is quite long because a good part of it is the standard retention load from data, but it will be factorize in the scheduler code. So now, do not fear to loose your retention information after a crash :) I added dummy modules so you can start to hack new one easily, like Nicolas did for the NSCA server :p And remember that if you want a git access, just ask for it so everyone can show your new cool module :) Jean ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel