developing elasticity based on network load
For example, if the incoming/outgoing network traffic goes beyond 70% for more than 30 minutes, create another Linode instance from a saved image. (Linode provides Network traffic rate in (two hour average) which is not quick enough for my scenario)
I'm guessing it's a combination of developing/nagios/linode-API. I just want to know what is the best practice.
1 Reply
Step 2) Teach Nagios or whatever does your monitoring to monitor whatever metric you want to use for deciding when to scale. I'd highly recommend not using network bandwidth, given that in almost all cases that's a super indirect way to detect this. You'd probably be way better off tracking your app server's response times or how many requests it's queuing up or the length of time a request sits between coming in and being handled or some such. But whatever you pick, teach nagios to monitor it.
Step 3) Tell Nagios to run the command from step 1 when it detects the condition from step 2
- Les