Ask Your Question

How to configure proxy servers when using round robin DNS?

asked 2011-04-08 20:36:48 -0500

dderuijter gravatar image

In the Swift documentation ( ( ) there is an explanation how to add proxies but the accompanying configuration example assumes that a load balancer is used. If instead I want to use round robin DNS how does that affect the configuration of each individual /etc/swift/proxy-server.conf file?

Step 1) "Update the list of memcache servers": I assume this instruction applies to round robin DNS as well. Step 2) "Change the default_cluster_url to point to the load balanced url". Does each proxy-server.conf file retain just its own IP address in the URL when using round robin DNS? Step 3) "accounts with the new default_swift_cluster URL": If an account refers to a particular proxy and you have many, how do you balance these accounts when you add another one? And what happens if one proxy server goes down and a remote client subsequently picks another proxy server (using round robin DNS)? How will that work if the storage URL for that account still refers to the downed proxy server?


edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2011-04-22 17:58:11 -0500

dderuijter gravatar image

I tried this and it works like a champ...

edit flag offensive delete link more

answered 2011-04-11 15:13:37 -0500

gholt gravatar image

I haven't done any round robin dns testing, but things theoretically should be fine.

You don't want to use host names for your memcache server list or you'd be doing a lot of lookups. You should know the exact list of memcache servers and their ips anyway, so it shouldn't be a problem to do this just as you would in a load balancer configuration.

The default_cluster_url would indeed contain the round robin dns host name.

When an account is created, the storage url saved would contain the round robin dns name. If you added or removed proxies from your round robin dns, the storage url wouldn't change.

Each proxy would have no idea (nor would it care) how a request got routed to it, it would just try to take care of it.

edit flag offensive delete link more

answered 2011-04-22 17:57:32 -0500

dderuijter gravatar image

Thanks gholt, that solved my question.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2011-04-08 20:36:48 -0500

Seen: 624 times

Last updated: Apr 22 '11