Skip to content

Receive: Fixing auto-configuration of --receive.local-endpoint#2937

Merged
brancz merged 2 commits intothanos-io:masterfrom
jrepp:fix-receive-local-endpoint
Jul 27, 2020
Merged

Receive: Fixing auto-configuration of --receive.local-endpoint#2937
brancz merged 2 commits intothanos-io:masterfrom
jrepp:fix-receive-local-endpoint

Conversation

@jrepp
Copy link
Copy Markdown
Contributor

@jrepp jrepp commented Jul 24, 2020

  • I added CHANGELOG entry for this change.

Changes

Updated code that configures the local endpoint if --receive.local-endpoint is not specified.

Verification

Tested on a 3 node cluster in GKE using a StatefulSet deployment. In this case the node upon startup will use local hostname which includes the StatefulSet pod index, e.g: thanos-receive-us-west2-1. The GRPC port is appended and this lines up with the hash ring configuration. All nodes in hash-ring then begin to correctly participate in replication of time series.

jrepp added 2 commits July 24, 2020 17:57
Signed-off-by: Jacob Repp <jacobrepp@gmail.com>
Signed-off-by: Jacob Repp <jacobrepp@gmail.com>
@jrepp jrepp force-pushed the fix-receive-local-endpoint branch from cafd742 to 57bcdf2 Compare July 25, 2020 00:57
Copy link
Copy Markdown
Member

@brancz brancz left a comment

Choose a reason for hiding this comment

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

Thank you! lgtm

@brancz brancz merged commit a64884b into thanos-io:master Jul 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants