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

Switch libcluster strategry from k8s to postgres #4506

Merged
merged 2 commits into from
Dec 17, 2024

Conversation

IvanIvanoff
Copy link
Member

@IvanIvanoff IvanIvanoff commented Dec 17, 2024

Changes

Switch from using k8s labels to using postgres to connect the nodes in a cluster.
Also add the sanbase-admin to the cluster, so Metric Registry updates from the admin can be propagated to the

This will allow the clustering to also work locally. To run 2 instances locally that are connected in a node, you can use the following shell aliases:

alias imps='iex --cookie mycookie --name sanbase --erl "-kernel shell_history enabled" -S mix phx.server'
alias imps2='export PORT=4001 && iex --cookie mycookie --name sanbase2 --erl "-kernel shell_history enabled" -S mix phx.server'

Ticket

Checklist:

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have tried to find clearer solution before commenting hard-to-understand parts of code
  • I have added tests that prove my fix is effective or that my feature works

@IvanIvanoff IvanIvanoff force-pushed the use-libcluster-postgres branch from 7e69ea0 to f4b0dbb Compare December 17, 2024 13:08
@IvanIvanoff IvanIvanoff requested a review from tspenov December 17, 2024 13:12
@IvanIvanoff IvanIvanoff force-pushed the use-libcluster-postgres branch 2 times, most recently from be4c808 to f608610 Compare December 17, 2024 13:39
@IvanIvanoff IvanIvanoff force-pushed the use-libcluster-postgres branch from f608610 to c5bbac4 Compare December 17, 2024 14:01
@IvanIvanoff IvanIvanoff merged commit be7d43e into master Dec 17, 2024
4 checks passed
@IvanIvanoff IvanIvanoff deleted the use-libcluster-postgres branch December 17, 2024 14:11
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.

1 participant