Is there any way to run GlusterFS in a replicated mode, but with the ability to dynamically scale the volume up and down?

Say you have 3 servers all running glusterd. your Gluster volume would have to be setup with replica 3

gluster volume create test-volume replica 3 192.168.0.150:/test-volume
192.168.0.151:/test-volume 192.168.0.152:/test-volume

You would then mount it as say \mnt\gfs_test

What happens when I want to add 2 more servers to the storage pool and then also use them in this volume? Is there any easy way to expand the volume AND increase that replica count to 5?

My end goal is to run this on EC2 instances, say 3 Apache front ends, with the webroot setup on the gluster volume mount. My concern is that if I ever need to spin up a server, I would want the server to not only be an additional Apache front end, but also another server in the gluster file system, adding to fault tolerance as well as possibly giving a slight boost in read speed.

Maybe there are better options that would fit the bill here?

Thanks.

link|improve this question
The only work around I can think of at this time would be to use GlusterFS's migrate / delete / add brick features. However, I would have to initially setup a very high replica / brick count (say 8) which would all initially be stored on the first primary server. Once a new server is spawned, you use the migrate brick function to migrate one of those bricks to the new server. Rince and repeat as servers are spun up and down. – ChrisV Jun 28 '11 at 17:38
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.