<div dir="ltr">Thanks, Pete. I do not plan to wipe any data. I am phasing out the machines that are running the container service now in favor of a few hosts that have much faster disks.<br><br>Just out of curiosity, what would happen if the total partitions was something like 32768 but the total aggregate weight of all the disks in the cluster was less than this value? Does that cause a negative affect on the cluster or performance?<br>


<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Feb 28, 2014 at 9:19 PM, Pete Zaitcev <span dir="ltr"><<a href="mailto:zaitcev@redhat.com" target="_blank">zaitcev@redhat.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>On Fri, 28 Feb 2014 16:01:26 -0800<br>
Stephen Wood <<a href="mailto:smwood4@gmail.com" target="_blank">smwood4@gmail.com</a>> wrote:<br>
<br>
> When originally running swift-ring-builder container.builder create, I set<br>
> the partitions at 15 to give a total of 32768 partitions to split across 23<br>
> hosts with 12 disks each. Now I am replacing the container service on these<br>
> 23 hosts with 4 hosts that have 1 disk.<br>
<br>
</div>Are you going to re-run create, wiping all the customer data in<br>
the cluster?<br>
<br>
If you want to live-migrate, then you cannot change the partition<br>
power that you selected when you stood up the cluster, and we should<br>
not be having this conversation at all.<br>
<br>
If you want to build everything anew, then you can use the recommended<br>
formula from the Joe Arnold's book or a calculator like this:<br>
 <a href="http://rackerlabs.github.io/swift-ppc/" target="_blank">http://rackerlabs.github.io/swift-ppc/</a><br>
  (currently not working in my Firefox)<br>
<br>
For your SSD example that would be (100 * 1 * 4), rounded up is 512<br>
or power 9. However, I would really not want to use 9, but use 15<br>
instead. The reason is, the overhead is absolutely negligible for<br>
powers that small, but you can't change that number over the lifetime<br>
of the cluster. So, today you have 4 SSDs, tomorrow you have 20,<br>
then what?<br>
<div><br>
> Since I have 4 hosts with 1 disk each, do I calculate the weight of each of<br>
> these disks as 2^15 / 4 so that the same overall partition numbers are<br>
> available even though we're only using a handful of the disks?<br>
<br>
</div>Well, that sounds sane... Yes, if your original weights were about<br>
118, then adding a big SSD with a weight of 8100 will result in<br>
expected effect. I would still try and phase it in gradually still,<br>
just in case if nothing else, per this:<br>
 <a href="https://swiftstack.com/blog/2012/04/09/swift-capacity-management/" target="_blank">https://swiftstack.com/blog/2012/04/09/swift-capacity-management/</a><br>
<span><font color="#888888"><br>
-- Pete<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Stephen Wood<div><a href="http://www.heystephenwood.com" target="_blank">www.heystephenwood.com</a></div></div>
</div></div>