AnykeyNL / OCI-AutoScale

Automatic Scaling for OCI BM Database Cloud Service (Schedule based)
Universal Permissive License v1.0
113 stars 67 forks source link

Not able to change the shape of Flexible Load Balancer #37

Closed adeangelis01 closed 8 months ago

adeangelis01 commented 8 months ago

Hello,

I am trying to lower a load balancer from 1000 mbps and when I specify a lower value in the load balancers tag, it does not update the load balancer.

When I run the command, I get the following output: python3 /home/opc/OCI-AutoScale/AutoScaleALL.py -a Down -ip

Checking test-lb (LoadBalancer) CurentState: ACTIVE...

When I run the command the following command I get: python3 AutoScaleALL.py -ip

Checking test-lb (LoadBalancer) CurentState: ACTIVE...

Thank you.

AnykeyNL commented 8 months ago

The current script only supports the older dynamic shape, not the flex shape.

I can add support for the flex shape. Do you want to control the min, max or both values?

Please do keep in mind adjusting the loadbalancer can cause some lost connections: All existing connections to this load balancer will be reset during the update process and may take up to a minute, leading to potential connection loss.

AnykeyNL commented 8 months ago

Just updated the script to support the flex load balancer. The number specified in the schedule will be the new Max Bandwidth for the Flex Load Balancer. Let me know if this works for you.

adeangelis01 commented 8 months ago

It works! Thank you so much!!