Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is Distributed Lock Server

What is Distributed Lock Service (or Server)? When it needs to be used?

like image 487
asyncwait Avatar asked Nov 13 '09 08:11

asyncwait


People also ask

What is lock server?

A lock server is a special process that sequentially performs all lock and unlock functions of a given protocol. The main advantage of using lock servers is that they can run cache hot (which is explained in the context of our platform in Sec.

What is the role of distributed lock manager?

A distributed lock manager (DLM) is a software component provided by your platform vendor. The DLM maintains a list of system resources and provides locking mechanisms to control allocation and modification of Oracle resources. DLM resources are logical concepts, structures of data.

What is distributed lock in Redis?

The simplest way to use Redis to lock a resource is to create a key in an instance. The key is usually created with a limited time to live, using the Redis expires feature, so that eventually it will get released (property 2 in our list). When the client needs to release the resource, it deletes the key.


1 Answers

Often called a Distributed Lock Manager, it's a way for distributed applications to control access to shared resources. A typical example would be a cluster of computers that present what seems to be a single unified file system, even though behind the scenes they are sharing a collection of file systems. Machines in the cluster would need a (distributed) lock in order to make changes to a file, to prevent race conditions.

like image 129
Chris Welsh Avatar answered Oct 09 '22 12:10

Chris Welsh