<div dir="ltr">Thanks Christian you have been a good help !<div><br></div><div style>Paras.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, May 11, 2013 at 3:14 AM, Christian Schwede <span dir="ltr"><<a href="mailto:info@cschwede.de" target="_blank">info@cschwede.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Paras,<br>
<br>
Am 08.05.13 22:02, schrieb Paras pradhan:<br>
<div class="im">> Thanks Christian. How do we keep track of the usage? For example with 5<br>
> nodes i.e 40TB. How do we know how much space has been consumed out of<br>
> this 40TB?<br>
<br>
</div>well, that depends on the used authentication scheme. If you are using<br>
swauth and don't have thousands of users, this gist might help you:<br>
<br>
<a href="https://gist.github.com/cschwede/5559268" target="_blank">https://gist.github.com/cschwede/5559268</a><br>
<br>
It reports the used bytes for every account and the total size. Please<br>
note that the returned account list is not sorted.<br>
<br>
On the other side you can simply monitor all of your disks, sum up all<br>
used byte values and divide by the number of replicas (3).<br>
<br>
You might also use account_quotas, which blocks further write requests<br>
if the quota on an account is exceeded. It is especially useful for<br>
smaller private storage clusters.<br>
<br>
<a href="http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.account_quotas" target="_blank">http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.account_quotas</a><br>

<br>
<br>
Christian<br>
<div class="im"><br>
<br>
><br>
> Paras.<br>
><br>
><br>
><br>
> On Wed, May 8, 2013 at 2:44 PM, Christian Schwede <<a href="mailto:info@cschwede.de">info@cschwede.de</a><br>
</div><div class="im">> <mailto:<a href="mailto:info@cschwede.de">info@cschwede.de</a>>> wrote:<br>
><br>
>     Am 08.05.13 21:18, schrieb Paras pradhan:<br>
>     > I have a three nodes swift cluster. I can see the objects being<br>
>     > replicated to all three nodes.  Each node has 12 2TB disks. Since I<br>
>     > have 3 replicas the usable space is only 24TB ?<br>
><br>
>     Yes, that's correct.<br>
><br>
>     > How this will scale up if we add two more storage nodes of the same<br>
>     > capacity?<br>
><br>
>     5 * 12 * 2 / 3: ~ 40TB usable capacity.<br>
><br>
>     > Also, is there any tool to monitor the usage, health of the whole<br>
>     > cluster?<br>
><br>
>     To detect failed drives you might have a look at<br>
>     <a href="http://docs.openstack.org/developer/swift/admin_guide.html#detecting-failed-drives" target="_blank">http://docs.openstack.org/developer/swift/admin_guide.html#detecting-failed-drives</a><br>
><br>
>     For Swift-related monitoring please refer to<br>
>     <a href="http://docs.openstack.org/trunk/openstack-object-storage/admin/content/ch_introduction-to-openstack-object-storage-monitoring.html" target="_blank">http://docs.openstack.org/trunk/openstack-object-storage/admin/content/ch_introduction-to-openstack-object-storage-monitoring.html</a><br>

><br>
>     For general node monitoring you can use your preferred tool (Nagios,<br>
>     Icinga, Shinken, RHQ, Hyperic...).<br>
><br>
>     _______________________________________________<br>
>     Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>     Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
</div>>     <mailto:<a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a>><br>
<div class="HOEnZb"><div class="h5">>     Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
>     More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div>