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

Feature Request: include information in VTGate LogStats that can indicate if a scatter is happening #15896

Open
maxenglander opened this issue May 8, 2024 · 0 comments
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature) Type: Feature Request

Comments

@maxenglander
Copy link
Collaborator

Feature Description

A common request among users of the Vitess clusters my organization operates is to know when queries are resulting in scatters.

vtgate/logstats.LogStats has a ShardQueries field, which is great, but not all multi-shard queries are scatters.

Possible ways this could be handled:

  • Add a numeric ScatterQueries field to LogStats incremented when a query scatters.
  • Add a more generic Opcode field to LogStats set to Scatter when the engine opcode is such.

Use Case(s)

For some users, an unintentional scatter may be the result of improper schema or query design, and they would like to know about them so they can adjust their schema or queries.

@maxenglander maxenglander added Type: Feature Request Needs Triage This issue needs to be correctly labelled and triaged Type: Enhancement Logical improvement (somewhere between a bug and feature) Component: Query Serving and removed Needs Triage This issue needs to be correctly labelled and triaged labels May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Query Serving Type: Enhancement Logical improvement (somewhere between a bug and feature) Type: Feature Request
Projects
None yet
Development

No branches or pull requests

1 participant