Forum Discussion
Ameet_Patel_601
Nimbostratus
Oct 19, 2010External Monitor Causing CPU to Spike
Hello, We run a set of HTTP streaming servers behind an F5 Virtual Server/Pool. Due to the HTTP streaming specification, we have to send video in 30 seconds increments. As such we need a monitor on ...
hoolio
Cirrostratus
Oct 19, 2010Hi Ameet,
That looks pretty good. I don't see a lot that can be made much more efficient. Here are a few suggestions:
- comment out the TIME calculations if you're not debugging the monitor.
- consider not checking the current state before enabling/disabling the pool member--just enable/disable it
- replace the echoes with direct assignments:
NODE_PORT=`echo $2`
POOL_NAME=`echo $3`
POOL_NAME=`echo all`
NODE_PORT=$2
POOL_NAME=$3
POOL_NAME="all"
And after anything is sent to standard output, the script is killed. So I don't think the removal of the pidfile will ever happen. You could add a removal above the echo $output statement.
Aaron
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
