HomeMogDBMogDB StackUqbar
v5.0

Documentation:v5.0

Supported Versions:

Other Versions:

OCK SCRLock Accelerate Distributed Lock

Availability

This feature is available since MogDB 5.0.0.

Introduction

Use SCRLock to provide distributed locking capabilities and improve distributed locking performance.

Benefits

With the increase in data size and data nodes, acquiring distributed locks between nodes requires consuming many events, which affects the client-to-end database experience. Using the SCRLock feature, we can significantly reduce the distributed locking remote latency and provide fairness to prevent the phenomenon of node starvation.

Description

MogDB resource pooling uses a passive mode distributed lock based on the TCP protocol, which has the disadvantages of high network latency and complex locking process, which affects the performance of the business to acquire locks. SCRLock provides an active mode distributed lock based on the RDMA protocol, which accelerates the network through RDMA to improve the efficiency of acquiring locks, and the active mode also brings the natural advantage of a simple process; SCRLock provides lock fairness, which prevents the phenomenon of starvation in the cluster; SCRLock also provides the ability to locally cache locks, reducing the frequency of lock acquisition at the remote end, thus reducing latency. SCRLock also provides local lock caching capability to reduce the frequency of remote lock acquisition, thus reducing latency.

Enhancements

None

Constraints

The database server must use the CX5 NIC.

Dependencies

Primary/Standby shared storage feature.

Copyright © 2011-2024 www.enmotech.com All rights reserved.