Re: Multithreading in cricket
Adams, Russell L. <RLAdams <at> Kelsey-Seybold.com>
2005-11-07 20:33:07 GMT
I've written SNMP collectors before that use Parallel::ForkManager,
and its been absolutely fantastic!
Is there any reason we couldn't integrate something like that in?
Ie: One fork per host to collect from (prevent RRDTool database
collisions), up to a maximum number of child processes.
Russell
On Mon, Nov 07, 2005 at 01:52:54AM -0500, Ed Ravin wrote:
> On Mon, Nov 07, 2005 at 11:33:25AM +0530, arunprasath santhanakrishnan wrote:
> > Now i want to use cricket for monitoring more number of network
> > elements. I am running cricket every 5 minutes as a cron job. I am doubtful
> > it could exceed the time limit of 5 minutes if i add more and more number
> > of network elements to be monitord using cricket. I want all the collection
> > process to be completed within 4 minutes.
> >
> > Is there any remedy for this?
>
> Break up your Cricket cron job into multiple jobs that collect
> different parts of your tree. Use the "subtree sets" feature to
> control which parts of the tree are run by each job.
>
> Since most of the time in a Cricket run is spent waiting for SNMP
> responses, they can run in parallel quite nicely.
>
> Another strategy is to use multiple computers, and rsync/NFS/whatever
> to get the RRD files to the web server for display.
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by:
> Tame your development challenges with Apache's Geronimo App Server. Download
> it for free - -and be entered to win a 42" plasma tv or your very own
> Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
> _______________________________________________
> cricket-users mailing list
> cricket-users <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/cricket-users
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php