octavia distribution Algorithm

asked 2019-12-03 12:58:36 -0500

kums gravatar image

Can someone please point me to the distribution algorithm octavia uses to distribute loads on virtual machine. I am aware of the fact that most of the load balancers use the round-robin algorithm but I haven't seen what type of algorithm Octavia uses.

Also, how do I extend some functionalities of Octavia, does it accept external scripts that can modify it's behaviour?

Thank you all.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-12-06 11:17:38 -0500

johnsom gravatar image

Hi!

This is covered in our API documentation under the "Create Pool" section: https://docs.openstack.org/api-ref/lo...

Note that features, such as session persistence, are configured in addition to the load balancer algorithm.

Octavia currently supports the following load balancing algorithms: LEAST_CONNECTIONS, ROUND_ROBIN, SOURCE_IP, and SOURCE_IP_PORT

Much of the functionality of the load balancer is available via the API. It does not accept scripts to modify it's behavior from end users. Operators can may proprietary changes to the images and configuration files if they need to. Some drivers may accept scripts as part of the "flavor" definition.

edit flag offensive delete link more

Comments

@johnsom, thank you very much for your response. Is there a reference for each of the algorithm's behaviour?

kums gravatar imagekums ( 2019-12-06 16:24:05 -0500 )edit

We have not written the "guide" yet that would define these in more depth, but they are similar to HAProxy's definition here: http://cbonte.github.io/haproxy-dconv...

johnsom gravatar imagejohnsom ( 2020-01-13 07:55:42 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2019-12-03 12:58:36 -0500

Seen: 78 times

Last updated: Dec 06 '19