Second Swift Proxy Node

asked 2014-10-09 11:58:14 -0600

sambol gravatar image

I'm adding a second proxy node to my Swift cluster, and I have a few questions. I installed the swift-proxy service, adjusted memcached.conf (-l PROXY_LOCAL_NET_IP_new_node), and added memcache_servers = PROXY_LOCAL_NET_IP_old_node:11211, PROXY_LOCAL_NET_IP_new_node:11211 to the proxy-server.conf files on both proxy nodes. Is it enough now to copy {account,container,object}.ring.gz and {account,container,object}.builder to the new proxy node or do I need to create new rings and add the nodes to each ring?

What about the endpoint in Keystone? Do I leave it pointing at only the first proxy node?

Thank you...

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-10-09 12:26:19 -0600

mpetason gravatar image

You'll need to setup a VIP or something if you are going to use multiple nodes. You can load balance between the two. I would recommend HAproxy, setup a VIP, use the VIP for keystone as the endpoint. That way you are using both of them instead of just one.

I believe you can copy the information over to the new Proxy since they are both accessing the same thing, however I haven't had as much experience with it.

edit flag offensive delete link more


Can you explain why a VIP is necessary? Just curious. Have a dedicated node for HAProxy.

sambol gravatar imagesambol ( 2014-10-09 15:18:03 -0600 )edit

I was recommending the VIP so you can have a single IP address for the keystone endpoints. Also, you could build in logic to move the VIP if a node goes down so you have redundancy.

mpetason gravatar imagempetason ( 2014-10-09 15:26:12 -0600 )edit

Okay, thanks! I'd be fine using the IP of the node too?

sambol gravatar imagesambol ( 2014-10-09 15:33:54 -0600 )edit

You don't want two endpoints for the same service. Basically the endpoint in the keystone service catalog is what is going to be used by Horizon/other services as a way into the API. That's why you would be better off with a VIP load balancing between the two proxy servers.

mpetason gravatar imagempetason ( 2014-10-09 15:39:01 -0600 )edit

Right, but why can't the Keystone endpoint be the IP of the HAProxy node? Maybe I was confusing earlier: I have two Swift proxy nodes but only one HAProxy node.

sambol gravatar imagesambol ( 2014-10-09 15:44:32 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-10-09 11:58:14 -0600

Seen: 332 times

Last updated: Oct 09 '14