multiple proxy servers and keystone

Asked by serious

I am wondering if someone can help with setting up multiple swift proxy servers.

I followed the instructions from openstack grizzly for CentOS by doing
1) initial set up with additional swift proxy (one 192.168.119.154. the second one 192.168.119.155)
2) make changes of memcached so that it points to the ips of both swift proxy servers
3)copied the ring files to both swift proxy servers and storage nodes.
4)In keystone, I have a service tenant, I also have swift service with an endpoint for http://192.168.119.154.:8080/v1/AUTH_%(tenant_id)s for internal and public, and http://192.168.119.154:8080/v1 for admin url

If I am using round robin DNS, how can I set up, especially the endpoints and service in the keystone database?
If I am using HAProxy, how I can set up?

Thanks

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Object Storage (swift) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Mehmet Hacısalihoğlu (esedmehmet) said :
#1

if you use HAProxy, you must set haproxy.cfg as follows.
haproxy.conf location is /etc/haproxy/haproxy.cfg

global
        maxconn 4096
        user haproxy
        group haproxy
        daemon

defaults
        log global
        mode http
        option httplog
        option dontlognull
        retries 3
        option redispatch
        maxconn 2000
        contimeout 5000
        clitimeout 50000
        srvtimeout 50000

#Proxy Server
listen swift-cluster $LOAD_BALANCER_IP:8080
        mode http
        stats enable
        stats auth root:testpass
        balance roundrobin
        option httpchk HEAD /healthcheck HTTP/1.0
        option forwardfor
        option httpclose
        server proxy1 $PROXY_SERVER1_IP:8080 weight 5 check inter 2000
        server proxy2 $PROXY_SERVER2_IP:8080 weight 5 check inter 2000

 # Keystone
 listen dev-auth-public $KEYSTONE_IP:5000
        mode http
        balance source
        option httplog
        option httpclose
        option forwardfor
        server controller $KEYSTONE_IP:5000 check inter 2000

 listen dev-auth-admin $KEYSTONE_IP:35357
        mode http
        balance source
        option httplog
        option httpclose
        option forwardfor
        server controller $KEYSTONE_IP:35357 check inter 2000

Can you help with this problem?

Provide an answer of your own, or ask serious for more information if necessary.

To post a message you must log in.