-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[vt/discovery] Add region context in GetAggregateStats - v2 #4476
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
Oh. There are conflicts resolve. |
2110a4c
to
d51a7b9
Compare
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
* This change allows to have constant time resolution of aggregates per region Signed-off-by: Rafael Chacon <[email protected]>
…ct def Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
Signed-off-by: Rafael Chacon <[email protected]>
d51a7b9
to
0217138
Compare
Signed-off-by: Rafael Chacon <[email protected]>
Description
GetAggregateStats
#4459.