Skip to content
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

Expose Endpoint Info timeout parameter #5480

Merged
merged 7 commits into from
Aug 12, 2022

Conversation

yeya24
Copy link
Contributor

@yeya24 yeya24 commented Jul 8, 2022

Signed-off-by: Ben Ye ben.ye@bytedance.com

  • I added CHANGELOG entry for this change.
  • Change is not relevant to the end user.

Changes

Fixes #5450

Expose info timeout param so that users can configure it based on their use case use.

For our use case, we have Thanos Query at cloud control plane and Thanos Sidecars at edge across the world (like Asia, Africa, etc). Due to the physical location distance and network issues, 5 seconds timeout is not sufficient for all cases.

Verification

fpetkovski
fpetkovski previously approved these changes Jul 8, 2022
Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It makes sense to introduce this parameter, but I'm a bit wary of introducing new separate flags in face of work being done in #5340. I assume one of the results will be that we will have a comprehensive endpoint configuration, instead of having individual flags. I'm just wondering if this would not mean we introduce a new flag only to deprecate it couple of releases later, when the endpoint.config will potentially supersede it. Maybe having this as a hidden flag first would make sense and then move it to the endpoint config. But maybe @bwplotka, @saswatamcode or @SrushtiSapkale can give us more qualified answer!

@yeya24
Copy link
Contributor Author

yeya24 commented Jul 8, 2022

Good to know we have WIP work on that. If that's the case yeah definitely better than adding this new flag separately.

Copy link
Member

@GiedriusS GiedriusS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah... maybe let's make it hidden for now? 🤔

GiedriusS
GiedriusS previously approved these changes Jul 25, 2022
matej-g
matej-g previously approved these changes Jul 26, 2022
Ben Ye added 5 commits July 29, 2022 23:23
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
@yeya24 yeya24 dismissed stale reviews from matej-g and GiedriusS via f897724 July 30, 2022 06:27
Signed-off-by: Ben Ye <ben.ye@bytedance.com>
Copy link
Collaborator

@matej-g matej-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like one more conflict, should be good to go afterwards!

GiedriusS
GiedriusS previously approved these changes Aug 12, 2022
@GiedriusS GiedriusS merged commit cbe6657 into thanos-io:main Aug 12, 2022
GiedriusS added a commit to vinted/thanos that referenced this pull request Aug 25, 2022
* Expose Endpoint Info timeout parameter

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* fix test timeout

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* update doc and changelog

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* make it a hidden flag

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* rebase main

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

* fix tests

Signed-off-by: Ben Ye <ben.ye@bytedance.com>

Signed-off-by: Ben Ye <ben.ye@bytedance.com>
Co-authored-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thanos Querier/store gateway is failing to return just 2 months of data
4 participants