Ask Your Question
1

Adding nodes to swift

asked 2013-07-27 02:38:40 -0600

anonymous user

Anonymous

If I add a new node of storage,it need to rebalance the ring and restart the swift thread.I want to know that whether this process can make the upload or download file from swift error?

If adding nodes can make the upload or download error,how can I solve the issue?Or how can I add the nodes without restarting swift thread(dynamic adding nodes )/

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2013-07-28 00:09:58 -0600

clayg gravatar image

You don't need to restart the servers for them to pick up the new ring, they'll check for changes and reload them every so often automatically:

https://github.com/openstack/swift/blob/master/swift/common/ring/ring.py#L124

On a related note swift wsgi servers handle SIGHUP to signal a soft restart. The parent process will restart and spawn new workers to accept new connections while the rest of the workers will finish servicing existing connections before terminating.

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

Stats

Asked: 2013-07-27 02:38:40 -0600

Seen: 149 times

Last updated: Jul 28 '13