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

Clustering controller #214

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Clustering controller #214

wants to merge 3 commits into from

Conversation

tpaschalis
Copy link
Owner

PR Description

Which issue(s) this PR fixes

Notes to the Reviewer

PR Checklist

  • CHANGELOG updated
  • Documentation added
  • Tests updated

Signed-off-by: Paschalis Tsilias <[email protected]>
We introduce a couple of new command-line flag that can start the Agent
in clustered mode and communicate with other peers. When the cluster
state changes (nodes entering or exiting the cluster_ the cluster status
is reported.

$ AGENT_MODE=flow ./build/grafana-agent run ~/river-configs/clustering_targets.river --server.http.listen-addr 127.0.0.1:12345 --cluster.enabled --cluster.join-address 127.0.0.1:12345
2023/04/07 14:59:29 [DEBUG] memberlist: Failed to join 127.0.0.1:12345: Post "http://127.0.0.1:12345/api/v1/ckit/transport/stream": dial tcp 127.0.0.1:12345: connect: connection refused
ts=2023-04-07T11:59:29.894721Z level=info msg="peers changed" new_peers=cf2700c5-9f9a-4201-86d7-0eb8945d8ea2
ts=2023-04-07T11:59:29.894909Z level=info msg="now listening for http traffic" addr=127.0.0.1:12345
...
2023/04/07 14:59:37 [DEBUG] memberlist: Stream connection from=127.0.0.1:49581
...
ts=2023-04-07T11:59:37.066109Z level=info msg="peers changed" new_peers=cf2700c5-9f9a-4201-86d7-0eb8945d8ea2,da90adb9-1490-4fd5-923a-4e2321d70465
...
ts=2023-04-07T12:00:07.601119Z level=info msg="peers changed" new_peers=6cce026b-6550-4c97-aca0-7835009a13f4,cf2700c5-9f9a-4201-86d7-0eb8945d8ea2,da90adb9-1490-4fd5-923a-4e2321d70465

Signed-off-by: Paschalis Tsilias <[email protected]>
Copy link

github-actions bot commented Mar 8, 2024

This PR has not had any activity in the past 30 days, so the needs-attention label has been added to it.
If you do not have enough time to follow up on this PR or you think it's no longer relevant, consider closing it.
The needs-attention label signals to maintainers that something has fallen through the cracks. No action is needed by you; your PR will be kept open and you do not have to respond to this comment. The label will be removed the next time this job runs if there is new activity.
Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant