[Openstack] Load balacing using haproxy for Swift and proxy servers

dhanesh1212121212 dhanesh1212 at gmail.com
Mon Oct 13 10:29:22 UTC 2014


Hi All,

Set up: Swift + proxy

3 Stoarge Node + 2 Proxy Nodes ( Configuration Completed tested working )

1 Load Balancer  ( Ha proxy )    ( Lot of confusion While Configuring,
Nothing seems to be working Donno which URL to put inside ha proxy )

Reason for confusion:

1. For two proxy two mysql installation with keystone is required or node?
( please explain ).

2. If with one keystone Installation how will add entries in haproxy.cfg

Entries i put inside haproxy.cfg

global
 chroot  /var/lib/haproxy
 daemon
 group  haproxy
 log  192.168.0.225 local0
 maxconn  4000
 pidfile  /var/run/haproxy.pid
 user  haproxy

defaults
 log  global
 maxconn  8000
 mode http
 option  redispatch
 retries  3
 timeout  http-request 10s
 timeout  queue 1m
 timeout  connect 10s
 timeout  client 1m
 timeout  server 1m
 timeout  check 10s

listen stats *:1936
    stats enable
    stats uri /
    stats hide-version
    stats auth admin:admin

listen keystone_admin_cluster
 bind 192.168.0.225:35357
 balance roundrobin
 option  tcpka
 option  httpchk
 option  tcplog
 server control01 192.168.0.205:35357 check inter 2000 rise 2 fall 5
 server control02 192.168.0.206:35357 check inter 2000 rise 2 fall 5

listen keystone_public_internal_cluster
 bind 192.168.0.225:5000
 balance  roundrobin
 option  tcpka
 option  httpchk
 option  tcplog
 server control01 192.168.0.205:5000 check inter 2000 rise 2 fall 5
 server control02 192.168.0.206:5000 check inter 2000 rise 2 fall 5

listen swift_proxy_cluster
  bind 192.168.0.225:8080
  balance  roundrobin
  option  tcplog
  option  tcpka
  server swiftproxy01 192.168.0.205:8080 check inter 2000 rise 2 fall 5
  server swiftproxy02 192.168.0.206:8080 check inter 2000 rise 2 fall 5

Admin URL : OS_AUTH_URL=http://192.168.0.225:35357/v2.0 ( 192.168.0.225 is
Load Balancing machine)

when i executed the below command its showing 401 error.
 raise exceptions.from_response(resp, method, url)
keystoneclient.openstack.common.apiclient.exceptions.Unauthorized: The
request you have made requires authentication. (HTTP 401)




Can somebody quickly guide me on this.


Regards,
Dhanesh M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20141013/b34d850c/attachment.html>


More information about the Openstack mailing list