Openstack Octavia - How to Load balance Web Applications

asked 2020-08-18 09:38:11 -0600

kums gravatar image

I am trying to fire up Octavia Load balancer to balance user requests over 5 servers running a web application. I have been searching for a tutorial on this as the OpenStack API does not give a detailed guideline.

A brief background to my current OpenStack setup. We have OpenStack installed using juju and Octavia was installed also using juju, this link https://jaas.ai/octavia/15 and this is the overlay bundle used https://github.com/openstack-charmers/openstack-bundles/blob/master/stable/overlays/loadbalancer-octavia.yaml (https://github.com/openstack-charmers...). After this installation, to bring Octavia up is my problem. I followed this tutorial https://docs.openstack.org/octavia/latest/install/install-ubuntu.html (https://docs.openstack.org/octavia/la...), but it seems to be doing what the juju commands did, so I am at a loss to how I am supposed to start up an Octavia instance.

Can someone point me to a resource that explains this or guide me through it?

Thank you.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2020-08-18 10:57:13 -0600

johnsom gravatar image

Hi there, glad to have you trying out Octavia.

The document you are looking for is the load balancing cookbook: https://docs.openstack.org/octavia/la...

It is included in our end-user section of the Octavia documentation here: https://docs.openstack.org/octavia/la...

Michael

edit flag offensive delete link more

Comments

Hi, thank you for your response.

kums gravatar imagekums ( 2020-08-24 09:25:32 -0600 )edit

Hi @johnsom , thank you for your response.

I am now at a stage where I need some clarifications, please. I want to create clusters of a virtual machine, I saw that Senlin has its own kind of load balancing, am I right? From what I have read, Octavia can be used for many separate

kums gravatar imagekums ( 2020-08-24 09:26:12 -0600 )edit

virtual machines but when it comes to clusters, then the Senlin load balancing option is what to use.

My experimental setup will look somewhat like this, 2 to 3 clusters having a minimum of 5 nodes (virtual machines), each cluster will have a load balancer balancing load to nodes in the cluster,

kums gravatar imagekums ( 2020-08-24 09:27:18 -0600 )edit

then a general load balancer that will redirect requests to a different cluster.

Does this sound doable/worthwhile?

Thank you.

kums gravatar imagekums ( 2020-08-24 09:27:34 -0600 )edit

To my knowledge Senlin does not provide network load balancing, but it does have a load-balancing policy that configures Octavia for a cluster. See https://docs.openstack.org/senlin/lat... for information on that policy.

johnsom gravatar imagejohnsom ( 2020-08-31 16:26:03 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2020-08-18 09:38:11 -0600

Seen: 54 times

Last updated: Aug 18