Skip to content

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

Merged
sougou merged 8 commits intovitessio:masterfrom
tinyspeck:add-region-context-aggr-stats-remove-l2vtgates
Dec 21, 2018
Merged

[vt/discovery] Add region context in GetAggregateStats - v2#4476
sougou merged 8 commits intovitessio:masterfrom
tinyspeck:add-region-context-aggr-stats-remove-l2vtgates

Conversation

@rafael
Copy link
Copy Markdown
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
Copy Markdown
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 :).

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

sougou commented Dec 21, 2018

Oh. There are conflicts resolve.

@rafael rafael force-pushed the add-region-context-aggr-stats-remove-l2vtgates branch from 2110a4c to d51a7b9 Compare December 21, 2018 06:43
Rafael Chacon added 7 commits December 20, 2018 22:46
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