<div dir="ltr"><br><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 3, 2015 at 8:41 AM Joshua Harlow <<a href="mailto:harlowja@outlook.com">harlowja@outlook.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Clint Byrum wrote:<br>
> Excerpts from Gorka Eguileor's message of 2015-08-02 15:49:46 -0700:<br>
>> On Fri, Jul 31, 2015 at 01:47:22AM -0700, Mike Perez wrote:<br>
>>> On Mon, Jul 27, 2015 at 12:35 PM, Gorka Eguileor<<a href="mailto:geguileo@redhat.com" target="_blank">geguileo@redhat.com</a>> wrote:<br>
>>>> I know we've all been looking at the HA Active-Active problem in Cinder<br>
>>>> and trying our best to figure out possible solutions to the different<br>
>>>> issues, and since current plan is going to take a while (because it<br>
>>>> requires that we finish first fixing Cinder-Nova interactions), I've been<br>
>>>> looking at alternatives that allow Active-Active configurations without<br>
>>>> needing to wait for those changes to take effect.<br>
>>>><br>
>>>> And I think I have found a possible solution, but since the HA A-A<br>
>>>> problem has a lot of moving parts I ended up upgrading my initial<br>
>>>> Etherpad notes to a post [1].<br>
>>>><br>
>>>> Even if we decide that this is not the way to go, which we'll probably<br>
>>>> do, I still think that the post brings a little clarity on all the<br>
>>>> moving parts of the problem, even some that are not reflected on our<br>
>>>> Etherpad [2], and it can help us not miss anything when deciding on a<br>
>>>> different solution.<br>
>>> Based on IRC conversations in the Cinder room and hearing people's<br>
>>> opinions in the spec reviews, I'm not convinced the complexity that a<br>
>>> distributed lock manager adds to Cinder for both developers and the<br>
>>> operators who ultimately are going to have to learn to maintain things<br>
>>> like Zoo Keeper as a result is worth it.<br>
>>><br>
>>> **Key point**: We're not scaling Cinder itself, it's about scaling to<br>
>>> avoid build up of operations from the storage backend solutions<br>
>>> themselves.<br>
>>><br>
>>> Whatever people think ZooKeeper "scaling level" is going to accomplish<br>
>>> is not even a question. We don't need it, because Cinder isn't as<br>
>>> complex as people are making it.<br>
>>><br>
>>> I'd like to think the Cinder team is a great in recognizing potential<br>
>>> cross project initiatives. Look at what Thang Pham has done with<br>
>>> Nova's version object solution. He made a generic solution into an<br>
>>> Oslo solution for all, and Cinder is using it. That was awesome, and<br>
>>> people really appreciated that there was a focus for other projects to<br>
>>> get better, not just Cinder.<br>
>>><br>
>>> Have people consider Ironic's hash ring solution? The project Akanda<br>
>>> is now adopting it [1], and I think it might have potential. I'd<br>
>>> appreciate it if interested parties could have this evaluated before<br>
>>> the Cinder midcycle sprint next week, to be ready for discussion.<br>
>>><br>
>>> [1] - <a href="https://review.openstack.org/#/c/195366/" rel="noreferrer" target="_blank">https://review.openstack.org/#/c/195366/</a><br>
>>><br>
>>> -- Mike Perez<br>
>> Hi all,<br>
>><br>
>> Since my original proposal was more complex that it needed be I have a<br>
>> new proposal of a simpler solution, and I describe how we can do it with<br>
>> or without a DLM since we don't seem to reach an agreement on that.<br>
>><br>
>> The solution description was more rushed than previous one so I may have<br>
>> missed some things.<br>
>><br>
>> <a href="http://gorka.eguileor.com/simpler-road-to-cinder-active-active/" rel="noreferrer" target="_blank">http://gorka.eguileor.com/simpler-road-to-cinder-active-active/</a><br>
>><br>
><br>
> I like the idea of keeping it simpler Gorka. :)<br>
><br>
> Note that this is punting back to "use the database for coordination",<br>
> which is what most projects have done thus far, and has a number of<br>
> advantages and disadvantages.<br>
><br>
> Note that the stale-lock problem was solved in an interesting way in Heat:<br>
> each engine process gets an "instance-of-engine" uuid that adds to the<br>
> topic queues it listens to. If it holds a lock, it records this UUID in<br>
> the owner field. When somebody wants to steal the lock (due to timeout)<br>
> they send to this queue, and if there's no response, the lock is stolen.<br>
><br>
> Anyway, I think what might make more sense than copying that directly,<br>
> is implementing "Use the database and oslo.messaging to build a DLM"<br>
> as a tooz backend. This way as the negative aspects of that approach<br>
> impact an operator, they can pick a tooz driver that satisfies their<br>
> needs, or even write one to their specific backend needs.<br>
<br>
Oh jeez, using 'the database and oslo.messaging to build a DLM' scares<br>
me :-/<br>
<br>
There are already N + 1 DLM like-systems out there (and more every day<br>
if u consider the list at<br>
<a href="https://raftconsensus.github.io/#implementations" rel="noreferrer" target="_blank">https://raftconsensus.github.io/#implementations</a>) so I'd really rather<br>
use one that is proven to work by academia vs make a frankenstein one.<br><br></blockquote><div><br></div><div>Joshua,</div><div><br></div><div>As has been said on this thread, some projects (eg, Ironic) are already using a consistent hash ring backed by a database to meet the requirements they have. Could those requirements also be met with some other tech? Yes. Would that provide additional functionality or some other benefits? Maybe. But that's not what this thread was about.</div><div><br></div><div>Distributed hash rings are a well understood technique, as are databases. There's no need to be insulting by calling not-your-favorite-technology-of-the-day a frankenstein one.</div><div><br></div><div>The topic here, which I've been eagerly following, is whether or not Cinder needs to use a DLM *at all*. Until that is addressed, discussing specific DLM or distributed KVS is not necessary.</div><div><br></div><div>Thanks,</div><div>-D</div></div></div>