Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monitoring slowlog in Corvus #146

Open
georgasa opened this issue Apr 19, 2019 · 1 comment
Open

monitoring slowlog in Corvus #146

georgasa opened this issue Apr 19, 2019 · 1 comment

Comments

@georgasa
Copy link

georgasa commented Apr 19, 2019

Hello,

When I set the slowlog-log-slower-than with big values like e.g. "24000", the slowlogs I get are also big e.g.

localhost:6380> config set slowlog-log-slower-than 24000
OK
localhost:6380> slowlog reset
OK
localhost:6380> slowlog get 2

    1. (integer) 12417746
    2. (integer) 1555674724
    3. (integer) 48043
    4. (integer) 50242
      ...
    1. (integer) 12417750
    2. (integer) 1555674724
    3. (integer) 47861
    4. (integer) 48369

In the same environment, when I set the slowlog-log-slower-than with small values "24", the slowlogs I get are also small and the big delays being displayed previously are disappeared:

localhost:6380> config set slowlog-log-slower-than 24
OK
localhost:6380> slowlog reset
OK
localhost:6380> slowlog get 2

    1. (integer) 12429661
    2. (integer) 1555675090
    3. (integer) 775
    4. (integer) 807
      ...
    1. (integer) 12429671
    2. (integer) 1555675090
    3. (integer) 282
    4. (integer) 318

So does Corvus understands the desired time unit (micro, mill, etc) from the config setting it so does display the result accordingly?

By the way, in my environment, the latencies are below 24ms so I can't interpret correctly the numbers like 282 and 318 ...

Thank you

@doyoubi
Copy link
Contributor

doyoubi commented Jun 21, 2019

The slowlog-log-slower-than and the two latency are in micro-seconds.

The reason that you saw different slowlogs after changing the configs is that the new logs are appended and the old ones get flushed away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants