-
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
Removed Querier duplicate labels checks & made sure store will be not blocked for older Queriers. #1636
Conversation
Seems reasonable for the time being. 👍 |
This should work. PTAL @metalmatze @brancz @GiedriusS @povilasv @jojohappy if you have time. It is quite big ): I build |
… blocked for older Queriers. Changes: * Cleaned up the code a bit. * Ensured proper locks. * thanos_store_nodes_grpc_connections is not per store type and external labels. thanos_store_node_info is marked as deprecated. * Added (optional, but enabled by default) compatibility label to store GW Info method with flag to disable it. Store only adds it if there is any labelset to advertise. * Disabled any strict deduplication in external labels detection; just warning! * More tests; compatibility tests for query pre 0.8.0 and new store GW. * Remove compatibility label if spotted. Fixes #1632 Signed-off-by: Bartek Plotka <[email protected]>
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.
Amazing! LGTM! Just a nit.
// Remove in next minor release. | ||
metricDesc2: prometheus.NewDesc( | ||
"thanos_store_node_info", | ||
"Deprecated, use thanos_store_node_info instead.", |
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.
"Deprecated, use thanos_store_node_info instead.", | |
"Deprecated, use thanos_store_nodes_grpc_connections instead.", |
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.
ups (:
… blocked for older Queriers. (#1636) Changes: * Cleaned up the code a bit. * Ensured proper locks. * thanos_store_nodes_grpc_connections is not per store type and external labels. thanos_store_node_info is marked as deprecated. * Added (optional, but enabled by default) compatibility label to store GW Info method with flag to disable it. Store only adds it if there is any labelset to advertise. * Disabled any strict deduplication in external labels detection; just warning! * More tests; compatibility tests for query pre 0.8.0 and new store GW. * Remove compatibility label if spotted. Fixes #1632 Signed-off-by: Bartek Plotka <[email protected]> Signed-off-by: Giedrius Statkevičius <[email protected]>
Current idea is to remove duplication for now as it's tricky to make it right and we aim to unblock v0.8.0. Ticket to consider it back: #1635
Changes:
@thanos_compatibility_store_type" = "store"
. ) with flag to disable it. Store only adds it if there is any labelset to advertise.Fixes #1632
Signed-off-by: Bartek Plotka [email protected]