Forum Discussion

mcassidygamma's avatar
mcassidygamma
Icon for Nimbostratus rankNimbostratus
Jan 25, 2021

Dynamic load balancing using HTTP monitors

I'm trying to improve the load balancing we have for one of our HTTP applications.

We've recently implemented the micro-profile health check which gives different endpoints for liveness, readyness and wellness.

 

I essentially want to have 3 different states for a pool member:

  1. Active
  2. Active (no new sessions)
  3. Inactive

 

And to set these based on the outcomes from the various different HTTP monitors. If the wellness endpoint returns a negative response a member moves from status 1 to status 2. Any users with with an existing session will still send requests to the member, but a member in status 1 is required for any new sessions.

 

I'm wondering if ratio based load balancing, or priority groups is the way to do this, but I'm not sure if the prioriroty group or ratio values can be set dynamitcly from the outcome of an http monitor.

 

Is this actually something that is achievable?

 

Thanks in advance