[vt/discovery] Add region context in GetAggregateStats#4459
Closed
rafael wants to merge 4 commits intovitessio:masterfrom
Closed
[vt/discovery] Add region context in GetAggregateStats#4459rafael wants to merge 4 commits intovitessio:masterfrom
GetAggregateStats#4459rafael wants to merge 4 commits intovitessio:masterfrom
Conversation
added 3 commits
December 15, 2018 12:18
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>
Member
Author
|
@alainjobart you know in more depth this part of the codebase. May I get your feedback on this? @inexplicable could you take a look too please? You might also have some extra context here. |
Contributor
|
This should probably be a separate and more detailed write-up. But I think we l2vtgate is now obsolete. The reason is because there are now service-mesh tools like envoy that can perform the same work generically. I believe this also obsoletes the need for aggregate stats, although I need to read through all the use cases. |
This was referenced Dec 17, 2018
Member
Author
|
@sougou - created PR with this fix that also removes l2vtgates. |
Member
Author
|
Closing this in favor of #4476 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
While testing a multi-cell setup using the regions feature, I discovered that there was a bug in the original implementation.
As part of that PR healthy
tablet_statswas modified to take the region into consideration. However, this was not the case for the aggregates. This has the side effect that the resolver was not being able to find tablets that are in a different cell, but same region.My first idea was to change the aggregates to not be by cell but by region, but that creates some complications as these aggregates are used as part of
TargetStatsListenerinterface which broadcast changes of targets. At the moment,l2vtgatesrely on this interface.I tried different approaches and right now I'm leaning towards adding
aggregatesPerRegiontotablet_stats_cacheand change the implementation ofGetAggregateStatsso it takes region into consideration when looking for aggregates stats.I was pondering if it would make sense to make the Target aware of the region, but that seems like a very invasive change.
Tests
GetAggregateStats... I added some benchmarks to make sure these changes do not introduce a regression in the resolver.TODO