Project

General

Profile

Actions

Feature #59727

open

The libradosstriper interface provides an optional parameter to avoid shared lock when reading data

Added by Snow Si 12 months ago. Updated 12 months ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Dev Interfaces
Target version:
% Done:

0%

Source:
Community (user)
Tags:
Backport:
Reviewed:
Affected Versions:
Component(RADOS):
librados
Pull request ID:

Description

The flow of the read operation of the current libradosstriper interface:
1. Lock (shared lock)
2. to read
3. Unlock

For the rados layer, the locking operation is a write operation. When the pg where the striper head object is located is in the deep-scrub period, if hundreds of concurrently read a libradosstriper object at the same time, a large number of slow requests will appear.

When the upper layer application can avoid read and write conflicts, the locking operation should be an optional parameter

Actions

Also available in: Atom PDF