forked from thanos-io/thanos
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Receiver: Use proxy store for MultiTSDB (thanos-io#5552)
* Introduce store type - This commit introduces StoreType and end replaces / expands the Addr() method to be StoreInfo() method. This method returns information on whether the store is local (case of MultiTSDB) or remote. If store is remote, we also return it's address in the StoreInfo() method - Adjust relevant parts of code in proxy - Adjust proxy tests Signed-off-by: Matej Gera <[email protected]> * Adjust existing proxy.Client implementations - Adjust (and slightly refactor) endpoint set client - Adjust test implementations Signed-off-by: Matej Gera <[email protected]> * Introduce local client implementation of proxy.Client interface - Introduces new type in MultiTSDB - Introduce method to obtain client for a tenant. This client leverages the server-as-client store client implementation. - Adjust tests Signed-off-by: Matej Gera <[email protected]> * Add receive to interactive test Signed-off-by: Matej Gera <[email protected]> * Remove old MultiTSDB code Signed-off-by: Matej Gera <[email protected]> * Fix imports Signed-off-by: Matej Gera <[email protected]> * Fix formatting Signed-off-by: Matej Gera <[email protected]> * Remove forgotten dead code Signed-off-by: Matej Gera <[email protected]> * Remove store type and adjust Addr method instead Signed-off-by: Matej Gera <[email protected]> * Disable timeout in receiver proxy Signed-off-by: Matej Gera <[email protected]> * store: fix nil panic in proxy heap With lazy proxying we need to wait for at least one response before we can build a heap properly. Closes thanos-io#5717 Fixes thanos-io#5552. Signed-off-by: Giedrius Statkevičius <[email protected]> * Use lazy retrieval strategy for receive proxy Signed-off-by: Matej Gera <[email protected]> Signed-off-by: Matej Gera <[email protected]> Signed-off-by: Giedrius Statkevičius <[email protected]> Co-authored-by: Giedrius Statkevičius <[email protected]> Signed-off-by: utukj <[email protected]>
- Loading branch information
Showing
13 changed files
with
212 additions
and
830 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.