The invention relates to the technical field of distributed systems, and discloses a distributed lock control method and device,
computer equipment and a medium, and the method comprises the steps: when detecting that a target node in a
server cluster successfully obtains a target lock, inserting a target lock
record of the target node and a target expiration
record corresponding to the target lock
record in a lock registry; if the
expiration time of the target expiration record is reached, controlling a lock detection node in the
server cluster to inquire the target node, and determining whether the service logic of the target node is processed or not; if the
business logic processing of the target node is completed, releasing the target lock; if the
business logic of the target node is not completed, the
expiration time of the target expiration record is updated, it is ensured that the distributed lock is not released in advance due to lock
timeout caused by the fact that the task is not completed, the situation that the target node does not successfully complete the operation of releasing the target lock, and consequently
deadlock is caused is avoided as much as possible, and the reliability of the distributed lock is improved.