{"__v":3,"_id":"55d3b645f77e6d0d00b1b281","category":{"__v":1,"_id":"55d3b645f77e6d0d00b1b277","pages":["55d3b645f77e6d0d00b1b27e","55d3b645f77e6d0d00b1b27f","55d3b645f77e6d0d00b1b280","55d3b645f77e6d0d00b1b281","55d3b645f77e6d0d00b1b282"],"project":"55c505b41469ad2500fa2ab7","version":"55d3b644f77e6d0d00b1b273","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-10T18:44:21.139Z","from_sync":false,"order":4,"slug":"actions","title":"Actions"},"parentDoc":null,"project":"55c505b41469ad2500fa2ab7","user":"55c50f4a7c199a2f00665cbf","version":{"__v":6,"_id":"55d3b644f77e6d0d00b1b273","project":"55c505b41469ad2500fa2ab7","createdAt":"2015-08-18T22:48:36.632Z","releaseDate":"2015-08-18T22:48:36.632Z","categories":["55d3b645f77e6d0d00b1b274","55d3b645f77e6d0d00b1b275","55d3b645f77e6d0d00b1b276","55d3b645f77e6d0d00b1b277","55d3b645f77e6d0d00b1b278","55d3b645f77e6d0d00b1b279","55d3b645f77e6d0d00b1b27a","55d3b645f77e6d0d00b1b27b","55d3b645f77e6d0d00b1b27c","55d3b645f77e6d0d00b1b27d","55d7c2939510f00d007ec6fe","56fac9925df15a20002972a2","56fb2f7668e1d30e00a0b672","583498d411e8af2500f6b334","58e52a180ab7b03b00f4a97a"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-10T23:08:46.082Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":3,"body":"Most of the clouds provide CLIs from which you can execute a command or two and fix the application or scale it as per needs. Neptune can execute these CLI commands for you in response to any of the supported triggers. We are surprised to see our customers using the CLI actions in ways that we didn't expect.\n\nFor example:\n 1. Increase the number of Heroku Dynos based on your worker queue size or throughput\n 2. Restart your Heroku app when Pingdom/Route 53 reports that your application is down\n 3. Autoscale AWS resources using AWS CLI in response to alerts coming from other monitoring tools like NewRelic, Datadog\n 4. Take a periodic backup of Databases hosted on Azure/AWS\n 5. Restart Heroku Dynos in response to Librato memory alerts\n\nPlease let us know if you have any other interesting use cases and we will support them for you.","excerpt":"","slug":"cli-actions","type":"basic","title":"CLI Actions"}
Most of the clouds provide CLIs from which you can execute a command or two and fix the application or scale it as per needs. Neptune can execute these CLI commands for you in response to any of the supported triggers. We are surprised to see our customers using the CLI actions in ways that we didn't expect. For example: 1. Increase the number of Heroku Dynos based on your worker queue size or throughput 2. Restart your Heroku app when Pingdom/Route 53 reports that your application is down 3. Autoscale AWS resources using AWS CLI in response to alerts coming from other monitoring tools like NewRelic, Datadog 4. Take a periodic backup of Databases hosted on Azure/AWS 5. Restart Heroku Dynos in response to Librato memory alerts Please let us know if you have any other interesting use cases and we will support them for you.