-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 (#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 <matejgera@gmail.com> * Adjust existing proxy.Client implementations - Adjust (and slightly refactor) endpoint set client - Adjust test implementations Signed-off-by: Matej Gera <matejgera@gmail.com> * 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 <matejgera@gmail.com> * Add receive to interactive test Signed-off-by: Matej Gera <matejgera@gmail.com> * Remove old MultiTSDB code Signed-off-by: Matej Gera <matejgera@gmail.com> * Fix imports Signed-off-by: Matej Gera <matejgera@gmail.com> * Fix formatting Signed-off-by: Matej Gera <matejgera@gmail.com> * Remove forgotten dead code Signed-off-by: Matej Gera <matejgera@gmail.com> * Remove store type and adjust Addr method instead Signed-off-by: Matej Gera <matejgera@gmail.com> * Disable timeout in receiver proxy Signed-off-by: Matej Gera <matejgera@gmail.com> * 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 #5717 Fixes #5552. Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com> * Use lazy retrieval strategy for receive proxy Signed-off-by: Matej Gera <matejgera@gmail.com> Signed-off-by: Matej Gera <matejgera@gmail.com> Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com> Co-authored-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
- 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.