Re: [QUESTION] Synchronizing across management servers

2015-01-27 Thread Mike Tutkowski
In addition to providing a locking mechanism across multiple instances of the management server, GlobalLock also let me change my logic so that my lock could be more fine grained (in this case, a different lock per cluster). On Tue, Jan 27, 2015 at 7:18 PM, Mike Tutkowski < mike.tutkow...@solidfir

Re: [QUESTION] Synchronizing across management servers

2015-01-27 Thread Mike Tutkowski
FYI: It appears this GlobalLock class is used pretty frequently in the codebase. I went ahead and replaced my synchronized logic with GlobalLock logic. On Tue, Jan 13, 2015 at 8:54 PM, Mike Tutkowski < mike.tutkow...@solidfire.com> wrote: > The use case is that I have access control lists on my S

Re: [QUESTION] Synchronizing across management servers

2015-01-13 Thread Mike Tutkowski
The use case is that I have access control lists on my SAN that I dynamically update as a given volume is attached to or detached from a VM in a cluster. Let's say multiple "attach" commands come in for VMs in the same cluster (I use one ACL per compute cluster). This leads to the storage framewor

Re: [QUESTION] Synchronizing across management servers

2015-01-13 Thread Nitin Mehta
Yes, it should do it for you. Please check for the references of this method and ensure there are other logic pieces using this. It might help if you can you give some context of of your use case ? Thanks, -Nitin On 13/01/15 4:12 PM, "Mike Tutkowski" wrote: >Hi, > >I have code in my plug-in tha