Have you tried writing an independant daemon to do this?
Just send indexer SIGSTOPs whenever the load average goes above whatever,
then SIGCONTs whenever it drops again. This would have the added advantage
of being almost no resource usage, and the indexer would never need to
know...
But for reference, why use load average? It's usually a bad measure of
what's going on in a system, and unreliable as hell.
If you're running the db on the same box as the indexer, you may
accidentally throw the whole system out of kinter because an i/o bound DB
can increase the load average more than is entirely natural, so you'd get an
ugly cycle going on...
Depending on what the box is doing, if it's only a web server then why not
just look at Apache's resource usage?
And so on and so forth.
But anyway. No, I don't think indexer can do this?
Gary (-;
> -----Original Message-----
> From: Danil Lavrentyuk [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 8:21 AM
> To: [EMAIL PROTECTED]
> Subject: sleep when system is heavily loaded
>
> Hello!
>
> It would be good if I could say to mnoGoSearch indexer: "When system's
> load
> average is more then 2 go sleep for 30 seconds."
>
> ----------------
> Danil Lavrentyuk
> Communiware.net
> Programmer
>
> ___________________________________________
> If you want to unsubscribe send "unsubscribe general"
> to [EMAIL PROTECTED]
>
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]