RavinderReddyF5 / terraform-provider-bigip-version0.12

Terraform resources that can configure F5 BIGIP products
Mozilla Public License 2.0
0 stars 0 forks source link

[CLOSED] Feature request: Updating ratio for a node (pool-member) #194

Open RavinderReddyF5 opened 4 years ago

RavinderReddyF5 commented 4 years ago

Issue by mayurikini Wednesday Oct 09, 2019 at 17:51 GMT Originally opened as https://github.com/terraform-providers/terraform-provider-bigip/issues/163


I have a pool with load_balancing_mode as ratio-member. I am able to set this via terraform. I have 2 nodes as pool members, and I want 1 node to have 99% of the traffic and the other to have 1%. I don't see an option to set ratio for a node. I would like to have ratio as an option.

I do see dynamic_ratio, but I am not sure if dynamic_ratio and ratio in big_ip are same. If I update the dynamic_ratio of the nodes, I am not able to see that change in bigip. I don't see a field called dynamic ratio in bigip.

Let me know id I need to provide any more info. Versions: Terraform v0.12.7 + provider.bigip v0.12.4 P.S I am new to terraform and big_ip concepts, I am following docs in https://www.terraform.io/docs/providers/bigip/, so correct me if I am wrong. :)

RavinderReddyF5 commented 4 years ago

Comment by RavinderReddyF5 Thursday Oct 10, 2019 at 09:50 GMT


@mayurikini please find below document for overview on ratio based load balancing method: https://support.f5.com/csp/article/K01052782

and also noticed we didnot have attribute for ratio setting on nodes in our resource files. creating internal JIRA Ticket to fix this issue[TER-123]

RavinderReddyF5 commented 4 years ago

Comment by mayurikini Friday Oct 11, 2019 at 14:41 GMT


@RavinderReddyF5 Do we have an estimated date for getting ratio setting on nodes?

RavinderReddyF5 commented 4 years ago

Comment by RavinderReddyF5 Monday Oct 14, 2019 at 08:57 GMT


@mayurikini Will provide fix in couple of days.

RavinderReddyF5 commented 4 years ago

Comment by RavinderReddyF5 Friday Oct 25, 2019 at 11:20 GMT


@mayurikini Fix for this issue Merged with PR https://github.com/terraform-providers/terraform-provider-bigip/pull/174

Please verify and let us know

RavinderReddyF5 commented 4 years ago

Comment by mayurikini Monday Oct 28, 2019 at 15:52 GMT


@RavinderReddyF5 I updated the ratio value for a node and while applying I could see the following in commandline:

Terraform will perform the following actions:
   bigip_ltm_node.node[1] will be created
  + resource "bigip_ltm_node" "node" {
      + address          = "********"
      + connection_limit = 0
      + dynamic_ratio    = (known after apply)
      + id               = (known after apply)
      + monitor          = "default"
      + name             = "/Common/XYZ"
      + rate_limit       = "disabled"
      + ratio            = 11
    }

In bigip, I did see the update for the node's ratio, but I don't see this update in pool > member ( My pool's load_balancing_mode is "ratio-node"). Here the ratio value is still 1. Is this expected? image image

RavinderReddyF5 commented 4 years ago

Comment by RavinderReddyF5 Monday Oct 28, 2019 at 18:01 GMT


@mayurikini we also noticed similar behaviour while adding ratio manually, this is nothing to do with terraform resource module, we are checking this behaviour with bigip team. can you please confirm this is reflecting by running some traffic test scenario.

RavinderReddyF5 commented 4 years ago

Comment by mayurikini Wednesday Oct 30, 2019 at 19:37 GMT


@RavinderReddyF5 I did some load testing and looks like it is working as expected. I had kept ratio to be 9:1 for the pool members. image First row is the pool, second and third row are the pool members.

RavinderReddyF5 commented 4 years ago

Comment by RavinderReddyF5 Thursday Nov 21, 2019 at 05:46 GMT


Closing this Issue as fix already available