Forum Discussion
Is Autoscaling possible with F5?
In our environment, we would want to auto scale the existing number of servers by adding new servers to Pool and removing some servers from pool dynamically. Is there a way to achieve this with the help of F5 APIs or else what is the best way to achieve this case.
Hi rajashree,
you could either use an external system / tool / script to setup/remove pool members via BIG-IP REST API or you could implement a local iCall script which fetches pool member information from an external system (e.g. a simple config file) and then changes the configuration as needed.
BIG-IP REST-API ressources:
https://devcentral.f5.com/icontrolrest
iCall ressources:
https://devcentral.f5.com/icall
Note: On the last F5-Agility I even get into touch with a guy which has extended his BIG-IP to listen to a private Slack channel. If he post some JSON snippets into his channel the F5 will listen to it and implement the JSON embedded configuration changes and then post the result into the channel. So only sky is the limit when it comes to BIG-IP automation... ;-)
Cheers, Kai
- Jad_Tabbara__J1Cirrostratus
Hi
You could use F5 API to do this.
You can try the following to add/delete new Pool Member "new_pool_member" to Pool "pool_name"
Add: curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X POST https://x.x.x.x/mgmt/tm/ltm/pool/pool_name/members -d '{"name":"new_pool_member:80", "address":"1.1.1.1", "partition":"Common"}' Delete: curl -sk -u 'admin:admin' -H "Content-Type: application/json" -X DELETE https://x.x.x.x/mgmt/tm/ltm/pool/pool_name/members/~Common~new_pool_member -d '{"name":"new_pool_member:80", "address":"1.1.1.1"}'
Waiting for you feedback
Regards
Recent Discussions
Related Content
* 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