Forum Discussion
ajay1986
Aug 14, 2024Nimbostratus
Load balancing between node pools
I have 2 nodes configured under pool , with least connection , the requirement is to send traffic for one of the pool members and after 3 hour stop sending traffic to the first one and switch to the...
ajay1986
Aug 16, 2024Nimbostratus
Thanks for the reply Philippe , it would be great if you can help with ansible script.
- Philippe_CLOUPAug 21, 2024Employee
Hi ajay1986, here after an example of Ansible Playbook that can be used to do the equivalent config change (look specially at the "priority group" values in the items list of pool members
--- - name: Create a VIP, pool and pool members hosts: all connection: local vars: provider: password: "MyPassword" server: 12.34.45.56 user: admin validate_certs: no server_port: 443 tasks: - name: Create a pool bigip_pool: provider: "{{ provider }}" lb_method: ratio-member name: web slow_ramp_time: 120 priority_group_activation: 1 delegate_to: localhost - name: Add members to pool bigip_pool_member: provider: "{{ provider }}" description: "webserver {{ item.name }}" host: "{{ item.host }}" name: "{{ item.name }}" priority_group: "{{ item.priority_group }}" pool: web port: 80 with_items: - host: 10.10.10.10 name: web01 priority_group: 10 - host: 10.10.10.20 name: web02 priority_group: 1 delegate_to: localhost
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