Re: Distributed lock
Hi, If lock will be resides on node that hold the lock, how newly joined node will discover just locked lock instance by lock name to add itself in waiting queue? Who will be responsible for waiting queue handing? Does the queue should be transferred when owner has changed? And finally, how this will resolve the issue with lock-owner node failure? Who will be next owner? On Mon, Apr 2, 2018 at 10:54 AM, Green <15151803...@163.com> wrote: > Hi,Roman > Thank you for the reply. > I think i should change the value of cacheMode to replicated, it is more > safe. > why not cache the lock on the node who own the lock? If the node leaves > topology, it will has no effect on other nodes. > > Thanks > > > > -- > Sent from: http://apache-ignite-users.70518.x6.nabble.com/ > -- Best regards, Andrey V. Mashenkov
Re: Distributed lock
Hi,Roman Thank you for the reply. I think i should change the value of cacheMode to replicated, it is more safe. why not cache the lock on the node who own the lock? If the node leaves topology, it will has no effect on other nodes. Thanks -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: Distributed lock
Hi, Yes, you are right. Default backups count is zero by default. This way it is possible to lose some locks if one of the nodes leaves topology. You are able to set backups count in AtomicConfiguration: ... Best Regards, Roman -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Distributed lock
Hi I want to use reentrantLock of ignite. In the code, the default backups is zero in AtomicConfiguration. When a node leaves topology, some locks cached on this node will lost? Should i modify the configuration of atomicConfiguration? Thanks -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Re: How to apply the distributed lock on all the ignite remote instances
Hi, could you please describe in more details what do you want to achieve? If you want to aquire a distributed lock on some key you may use pessimistic transaction with REPEATEABLE_READ isolation level [1] on transactional cache. [1] https://apacheignite.readme.io/v1.7/docs/transactions#pessimistic-transactions -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-apply-the-distributed-lock-on-all-the-ignite-remote-instances-tp9123p9126.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.
How to apply the distributed lock on all the ignite remote instances
Hi I need to apply distributed lock while storing some KV using my own JobStore. Now I need to put the lock on the connected instances before writing some records on a cache. A few line code example will be very helpful to understand. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-apply-the-distributed-lock-on-all-the-ignite-remote-instances-tp9123.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.