Skip to content

feat: integrate cluster mode with server#32

Merged
leiysky merged 9 commits intoscopedb:mainfrom
leiysky:feat/cluster
Apr 20, 2025
Merged

feat: integrate cluster mode with server#32
leiysky merged 9 commits intoscopedb:mainfrom
leiysky:feat/cluster

Conversation

@leiysky
Copy link
Collaborator

@leiysky leiysky commented Apr 20, 2025

This PR integrate cluster with server.

Now we can launch a cluster by specify a initial_peer_addrs config item to bootstrap, which can be a DNS name to utilize service discovery.

Here's an example of 3 nodes cluster, which works perfectly on my PC.
image

@leiysky leiysky mentioned this pull request Apr 19, 2025
let server_addr = format!("http://{}/", state.server_state.server_advertise_addr());
let addr = state
.server_state
.listen_addr()
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be advertise addr here? Since it's what the client should use.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

There is some issues with the inferred advertise addr if the host network is complicated.

@leiysky leiysky merged commit f23f002 into scopedb:main Apr 20, 2025
3 checks passed
@leiysky leiysky deleted the feat/cluster branch April 20, 2025 12:22
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

Comments