Skip to content

Update query counts for stream queries from vtgate#6057

Merged
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:vtgate-stream-query-counts
Apr 13, 2020
Merged

Update query counts for stream queries from vtgate#6057
sougou merged 1 commit intovitessio:masterfrom
tinyspeck:vtgate-stream-query-counts

Conversation

@arka-g
Copy link
Copy Markdown
Collaborator

@arka-g arka-g commented Apr 12, 2020

Description

We use the QueriesProcessedByTable metric to get visibility into the QPS per table. Currently, this metric does not get incremented in the stream query path. This PR handles that by incrementing query counts in the StreamExecute API.

Testing

Manually tested by uploading the build to a vtgate and sent some olap mode queries via
set workload='olap';

Signed-off-by: Arka Ganguli arkaganguli1@gmail.com

Signed-off-by: Arka Ganguli <arkaganguli1@gmail.com>
@arka-g arka-g force-pushed the vtgate-stream-query-counts branch from a6cc774 to db90916 Compare April 12, 2020 23:33
@arka-g arka-g marked this pull request as ready for review April 13, 2020 16:07
@arka-g arka-g requested a review from sougou as a code owner April 13, 2020 16:07
Copy link
Copy Markdown
Member

@rafael rafael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sougou sougou merged commit ffb2b89 into vitessio:master Apr 13, 2020
ajm188 pushed a commit to tinyspeck/vitess that referenced this pull request Apr 28, 2020
…ounts

Update query counts for stream queries from vtgate
zmagg pushed a commit to tinyspeck/vitess that referenced this pull request Apr 29, 2020
…ounts

Update query counts for stream queries from vtgate
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

Successfully merging this pull request may close these issues.

3 participants