Ask Your Question
0

HA setup for placement api on ocata release

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

nakul_redhat gravatar image

Hello,

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
1

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

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

Hi,

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
  bind 192.168.100.10:8780
  http-request del-header X-Forwarded-Proto
  server controller 192.168.100.244:8780 check inter 2000 rise 2 fall 5
  server controller2 192.168.100.186:8780 check inter 2000 rise 2 fall 5

Regards

edit flag offensive delete link more
0

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

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

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

Seen: 451 times

Last updated: Dec 20 '18