Add DB commit latency samples
Former-commit-id: 557ea8d285045496105e3330f0007e02aa4359d7
This commit is contained in:
parent
589448bdf0
commit
cebc1b7e48
@ -2403,9 +2403,13 @@ void beforeSleep(struct aeEventLoop *eventLoop) {
|
||||
|
||||
int aof_state = g_pserver->aof_state;
|
||||
aeReleaseLock();
|
||||
|
||||
mstime_t commit_latency;
|
||||
latencyStartMonitor(commit_latency);
|
||||
for (redisDb *db : vecdb)
|
||||
db->commitChanges();
|
||||
|
||||
latencyEndMonitor(commit_latency);
|
||||
latencyAddSampleIfNeeded("storage-commit", commit_latency);
|
||||
|
||||
handleClientsWithPendingWrites(iel, aof_state);
|
||||
if (serverTL->gcEpoch != 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user