Repository navigation
INFO commandstats counts WAIT and WAITAOF, and times the connection commands (#388) - #568
Conversation
…ommands (kividbio#388) Follow-up to kividbio#533: the commands answered in the connection loop were recorded with 0 usec, and WAIT and WAITAOF not at all.
|
Thanks @matheussilvano, and sorry this sat for a while! Counting 1.
So for Redis the 300 ms wait adds nothing, and our 2. Rebase on master. It conflicts in
I did this rebase locally to test it (not pushed): with the Hot path: fine.
(Fat LTO as shipped, average of two runs each. With LTO off, GET 1 KB moved +2.5% in two of three runs. That's codegen-unit noise from touching One more thing, not for this PR: we count a rejected call in So: needs the |
|
Landed as #817, built on your commit (it's in master's history under your name, and the changelog thanks you). We added the two review items ourselves: WAIT/WAITAOF are timed without the blocked time (Redis records ~2 usec for a 500 ms WAIT), and they count once inside MULTI/EXEC. Thanks @matheussilvano! |
Follow-up to #533, as suggested there. Refs #388.
WAITandWAITAOF, answered in the same match, are now counted likeWATCH,HELLOand the rest.startedis read before the match andusecis what they took (forWAITandWAITAOF, the time they waited, as Redis counts a blocked command).HELLOtimes itself the same way. Both I/O models.Tests:
commandstats_count_the_connection_commands(tests/parity.rs) now also checkswait(one call, one with the wrong arity) andwaitaof; it fails without the change.cargo fmt --check,cargo clippy --all-targets -- -D warnings(with and withoutlua,tls),--test parityand--test uringpass. The test does not assert the timing: the calls it makes return at once, sousecwould be flaky to check. CLA already signed.