Ask Your Question

what should I do if a swift's node is full

asked 2014-11-07 19:10:51 -0600

lorrie gravatar image

Hi, I have a question about using Swift when a node is full.

Currently I installed a swift server using SAIO. I split 4 nodes on the local stoage, let's call it Hard_drive_1. Now Hard_drive_1 is almost full so I add Hard_drive_2 to it and create one node on that. I add it to the ring and rebalance it, it works fine. I have tested by uploading some files and see the used space of Hard disk 2 is increasing, which means there are really files being written to it.

But my question is, it looks like the uploading also keep writing to Hard Disk 1, which is almost full.

So I want to know, what will happen if it Hard disk 1 is really full? will swift automatically notice that and then only write data to Hard Disk2?

Because if it still keeps writing to a full disk, it will cause the writing failure for sure.


edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-11-09 00:11:51 -0600

lorrie gravatar image

Thanks for your help! Can you please tell more about how to configure it?

edit flag offensive delete link more

answered 2014-11-08 23:38:10 -0600

SamYaple gravatar image

updated 2014-11-09 00:58:29 -0600

I believe you are seeing slow syncing. It won't just dump everything from one disk to another. It has a maximum number of partitions it will move per hour (that is configurable).

You should adjust that.

Besides adjusting that value, you could set the balance way off so everything is almost garunteed to hard drive 2, but you will then need to reblance again later as everything will start transfering to hard disk 2. and that will fill up.


To answer your question, when building the ring files you need to specify the "min_part_hours" paramater. For you and your situation, you can safely set this to 0 while it balances. It may chew up your disk bandwidth for a few minutes but then youll be alright.

edit flag offensive delete link more


updated my answer.

SamYaple gravatar imageSamYaple ( 2014-11-09 00:58:39 -0600 )edit

Thank you very much! I will try it.

lorrie gravatar imagelorrie ( 2014-11-09 17:19:36 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-11-07 19:10:51 -0600

Seen: 257 times

Last updated: Nov 09 '14