Forum Discussion

rajashree_27907's avatar
rajashree_27907
Icon for Nimbostratus rankNimbostratus
Sep 05, 2017

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.

 

2 Replies

  • 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

  • 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