<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/11/27 MORITA Kazutaka <span dir="ltr"><<a href="mailto:morita.kazutaka@gmail.com" target="_blank">morita.kazutaka@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">At Tue, 26 Nov 2013 16:38:01 +0800,<br>
<div class="im">Robin Dong wrote:<br>
><br>
> > Getting a distributed lock is an expensive operation and it can causes<br>
> > a severe performance problem if we do it for each object creation.<br>
> > Can we find another way?  Sheepdog is not designed to allow concurrent<br>
> > write access.<br>
> ><br>
><br>
> It will hurt performance if the object is very small, but for big object<br>
> (1GB,10GB,100GB), we only need to lock at "create object inode" moment,<br>
> after that, the object-uploading operation do not need the lock.<br>
><br>
> I have tested this zookeeper lock, it could lock/unlock 200 times per<br>
> second, which I think is not too slow even for small objects.<br>
<br>
</div>Can it scale when there are many containers who need distributed lock?<br></blockquote><div><br></div><div>Hi Kazutaka,</div><div><br></div><div>Zookeeper is scalable enough as many hadoop clusters use zookeeper as its lock server.</div>
<div>Even if there is too many containers (distributed locks) for one zookeeper cluster,</div><div>we can create multi zookeeperk clusters and dispatch these locks to them.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">

<br>
Is there any chance the distributed lock support corosync users?<br></blockquote><div><br></div><div>Of course we can implement a distributed lock on corosync£¨the present sample is dlm <a href="https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/High_Availability_Add-On_Overview/ch-dlm.html">https://access.redhat.com/site/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/High_Availability_Add-On_Overview/ch-dlm.html</a>).</div>
<div><br></div><div>Maybe we can add "->lock" for cluster framework in sheepdog and just implement "zookeeper ->lock" but leave "corosync ->lock" empty.</div><div>Will this be better?</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
Kazutaka<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>--<br>Best Regard<br>Robin Dong
</div></div>