Now that you can easily determine the length of the queue, you need a script to act on this data.
现在您可以很容易确定队列的长度,但是您还需要一个脚本来处理这个数据。
If the length of the queue is more than 20 and there are fewer than two extra job servers running, then a server is launched.
如果队列的长度超过20,而且现在运行的服务器少于2个,那么就需要启动一个服务器。
If you see an overflow counter (through the use of netstat -s), setting a maximum length of this queue can help fix the overflow.
如果您看到一个溢出计数器(通过使用netstat - s),那么设置这个队列的最大长度可以帮助修复这种溢出情况。
应用推荐