ideawu / ssdb

SSDB - A fast NoSQL database, an alternative to Redis
http://ssdb.io/
BSD 3-Clause "New" or "Revised" License
8.19k stars 1.4k forks source link

high request wait time (aka "w" in log.txt) #1334

Open saveriocastellano opened 4 years ago

saveriocastellano commented 4 years ago

hello, I'm running a ssdb server with a high load and many writes per second, checking the logs I see typical lines that look like the one below, with a high wait time (133ms in thi case) and instead process time is always low (lower than 1ms).

2020-02-22 20:13:18.171 [DEBUG] worker.cpp(42): w:133.067,p:0.012, req: hincr stats:casino:{5}:gran:2:count:2616 debit_mobile 90, resp: ok 20432608470

Can you please explain me what could be the reasons why wait time is always high and process time always low?