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

Observability enhancement #987

Open
ekexium opened this issue Sep 21, 2023 · 0 comments
Open

Observability enhancement #987

ekexium opened this issue Sep 21, 2023 · 0 comments

Comments

@ekexium
Copy link
Contributor

ekexium commented Sep 21, 2023

There are some questions that are often asked but hard to answer:

  • Error
    • Why does this "region is unavailable" error happen?
    • How does my stale read request fail?
  • Latency
  • QPS
    • Does the change in QPS result from retrying requests?
    • What are the sources of certain requests of interest? For example, do they come from DDL? Analyze? Other internal SQL? What are the concrete SQLs?

We need more metrics and logs to answer them.

There are 3 levels of request

  • Original "request", a call of Scanner.getData , handleSingleBatch, kv snapshot get,batchGetSingleRegion,..
  • Region request, a request sent to SendReqCtx
  • Lower-level request, a request sent to sendRequest

Metrics

Logs

Slow logs

Info and Warn Logs

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

1 participant