cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Tutkowski <mike.tutkow...@solidfire.com>
Subject Re: Distributed locking mechanism?
Date Mon, 23 Dec 2013 06:44:35 GMT
Yeah, at first I was thinking both simultaneous calls would succeed and two
accounts would be created (this is what happens when two volumes with the
same name are created because the volume ID is what really matters).

However, with accounts, the first will succeed and the others fail, which
can be used to control the flow in this situation.


On Sun, Dec 22, 2013 at 9:03 PM, Koushik Das <koushik.das@citrix.com> wrote:

> What is the account creation logic on Solidfire SAN if you try to create
> the same simultaneously? I am assuming there should be some unique
> constraint like account name/id etc. Try to see if this can be utilised so
> that one of the account creation call fails with appropriate
> error/exception.
>
> -Koushik
>
> On 23-Dec-2013, at 1:55 AM, Mike Tutkowski <mike.tutkowski@solidfire.com>
> wrote:
>
> > Hi,
> >
> > I was wondering how we control access to shared resources that are being
> > utilized by different management servers at the same time.
> >
> > For example:
> >
> > When a user attaches a volume (that's based on the SolidFire plug-in) to
> a
> > VM, my plug-in looks at the CloudStack account that is requesting the
> > operation. If this CloudStack account does not have a corresponding
> account
> > on the SolidFire SAN, I must create one (there is a 1:1 mapping between
> > CloudStack and SolidFire accounts).
> >
> > How can I protect against a situation where my plug-in is running in
> > multiple management servers and performing this kind of operation at the
> > same time (in other words, I don't want both instances of the plug-in to
> > see no SolidFire account and then they each end up creating one, which
> > breaks the 1:1 mapping between a CloudStack account and a SolidFire
> > account)?
> >
> > Thanks!
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the
> > cloud<http://solidfire.com/solution/overview/?video=play>
> > *™*
>
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the
cloud<http://solidfire.com/solution/overview/?video=play>
*™*

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message