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

[vt/discovery] Add region context in GetAggregateStats - v2 #4476

Conversation

rafael
Copy link
Member

@rafael rafael commented Dec 19, 2018

Description

@rafael rafael requested a review from sougou as a code owner December 19, 2018 22:20
@rafael rafael changed the title [vt/discovery] Add region context in GetAggregateStats [vt/discovery] Add region context in GetAggregateStats - v2 Dec 19, 2018
Copy link
Contributor

@sougou sougou left a comment

Choose a reason for hiding this comment

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

Very nice work 👍 . Let's wait for one day cool-down before we merge. I'm feeling jittery too :).

@@ -27,9 +27,6 @@ import (
// routing of queries.
// - discovery.TabletStatsCache will implement the discovery part of the
// interface, and discoverygateway will have the QueryService.
// - hybridgateway will also implement this interface: for each l2vtgate pool,
// it will establish a StreamHealth connection, and store the returned
// health stats.
type TargetStats interface {
Copy link
Contributor

Choose a reason for hiding this comment

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

I believe this is also essentially obsolete. Let's look at getting rid of this at the next iteration.
Essentially, we should get rid of AggregateStats. We should only have a map[cell]*TabletStatsCache that vtgate directly pulls and populates from the tablets it's connected to.

Copy link
Member Author

Choose a reason for hiding this comment

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

That makes sense. Sounds good.

@sougou
Copy link
Contributor

sougou commented Dec 21, 2018

Oh. There are conflicts resolve.

Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
* This change allows to have constant time resolution of aggregates per region

Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
…ct def

Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
@rafael rafael force-pushed the add-region-context-aggr-stats-remove-l2vtgates branch from d51a7b9 to 0217138 Compare December 21, 2018 06:54
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
@sougou sougou merged commit 1cf2530 into vitessio:master Dec 21, 2018
@rafael rafael deleted the add-region-context-aggr-stats-remove-l2vtgates branch December 21, 2018 18:16
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.

2 participants