<div dir="ltr">Hi there.<div><br></div><div>I had a web server instance, hosted in Digital Ocean cloud now. CentOS 6 x86_64. There is a low disk space on this instance and I want to move static files to glusterfs pool. I plan to dynamically add new instances when will be a need for it. For example, buying new instance, add it into glusterfs pool, thats it, we automatically had more disk space for static files.</div><div><br></div><div>A new schema first consists of two servers (bricks), one of them is current web server.</div><div>Assume that current static files directory is /var/www/static. What i want to do:</div><div><br></div><div>On current server stop all http and database services.. then</div><div>mv /var/www/static /var/www/static-brick</div><div><br></div><div>Then combine current_server:/var/www/static-brick with new_server:/glusterfs-brick-on-root-partition into one glusterfs vol0 (in distributed mode). Pay attention that I want to create one brick from current static files directory, that already filled with files.<br></div><div><br></div><div>Then on current server: mount current_server:/vol0 /var/www/static</div><div><br></div><div>A new glusterfs volume that filled up with current static files and allow distribution to new server after old server will be fill.</div><div><br></div><div>Some questions in that scheme:</div><div>Because my instances are on Digital Ocean, I cannot allocate separate volumes to bricks. Just create directory and point glusterfs to it as a brick. How I must limit glusterfs with writing new files into brick to avoid overfill root partition on the instance? For example, I want to stop writing on old server when 10 Gb free space will be achieved? After that all new files must be written to new server. And again, when new server reaches some limit, I buying new server, include it into gluster pool and continue work with more disk space?</div></div>