HA setup for placement api on ocata release

asked 2017-05-31 05:25:51 -0600

nakul_redhat gravatar image


I would like to know the HA setup for placement api to work on high availability enviornment by using HAproxy on two controller nodes.

I observed that file "/etc/httpd/conf.d/00-nova-placement-api.conf" is listening on port 8778 where as actual script "/usr/bin/nova-placement-api" is using default port as 8000.So i am bit confuse about entries in haproxy to deal with it.

Regards, Nakul

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2017-05-31 08:09:55 -0600

updated 2017-05-31 08:14:46 -0600


In Kolla we use port 8780 for placement-api, OSA also use same port and TripleO 8778. To make placemenent-api HA under HAproxy just need to bind the VIP for whatever port are you using for placement endpoint (This port may vary from deployments method).

An example config for placement-api in HAproxy:

listen placement_api
  http-request del-header X-Forwarded-Proto
  server controller check inter 2000 rise 2 fall 5
  server controller2 check inter 2000 rise 2 fall 5


edit flag offensive delete link more

answered 2018-12-20 06:27:34 -0600

cdent gravatar image

The port you use to host placement behind haproxy doesn't really matter. It doesn't have to even be a special port. It is perfectly fine to put it on port 80 or port 443 is there is nothing else running on the web server, or if a prefix (such as /placement) is being used.

What matters is what the haproxy exposes to the rest of the world and what is in the service catalog. Ideally the service in the catalog would not use non-standard HTTP ports but would instead either use prefixes or hostnames, e.g. things like:

  • https://cloud.example.com/placement
  • http://placement.cloud.example.com/
edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-05-31 05:25:51 -0600

Seen: 645 times

Last updated: Dec 20 '18