I have a application that sends out jobs to around 100 machines, and those jobs running on each machine will request files from the server. The files are anything from bytes to Gb. When too many machines request data, the server hits the limit of what it can output and the jobs end up running slowly as they are waiting on data and this is causing problems.
So I need to measure the load on my samba server so can I stop handing out jobs when the server is at the limit of what it can handle.
I need unix command that returns a single number that represents the load of the server _above_ the limit of what it can handle - i.e. the number of requests in the queue. I want the server to run at capacity, but not queue up too many requests. The throttle must be done by my serving app as denying clients files is not an option. If this number is high, no jobs will be handed out.
Server is running Fedora Core 4