Skip to content

Local cluster setup#23

Merged
Satyam709 merged 7 commits into
mainfrom
local-cluster-setup
May 2, 2026
Merged

Local cluster setup#23
Satyam709 merged 7 commits into
mainfrom
local-cluster-setup

Conversation

@Satyam709

Copy link
Copy Markdown
Owner

This pull request introduces a new cluster orchestration script and adds support for a Raft advertise address in the metadata node configuration. The main goal is to make it easier to spin up local development clusters using Docker Compose and to improve Raft networking flexibility. The changes include a new script for generating and running a cluster, updates to the metadata node configuration to support a separate advertise address, and improved validation for Raft directories.

Cluster orchestration and local development:

  • Added a new script scripts/run-cluster.sh that generates a docker-compose.yml file for running a configurable number of metadata and storage nodes, with options for image prefixes, client config generation, and environment variable setup. This script simplifies local cluster setup for development and testing.

Metadata node configuration improvements:

  • Added a new environment variable and config field METADATA_RAFT_ADVERTISE/RaftAdvertise to allow specifying a separate Raft advertise address, improving support for containerized deployments and multi-host networking. [1] [2] [3]
  • Updated the Raft node startup logic in metadata/raft.go to use the advertise address if specified, both for binding and for cluster bootstrap, ensuring correct peer communication in Docker or multi-host setups. [1] [2]

Validation and build process:

  • Improved validation in NodeConfig.Validate() to ensure the Raft data directory exists, creating it if necessary and failing early if not possible.
  • Updated the Makefile to add a build-client target and include it in build-all, ensuring the client binary is built alongside other components.

@Satyam709 Satyam709 merged commit 3dc79f5 into main May 2, 2026
3 checks passed
@Satyam709 Satyam709 deleted the local-cluster-setup branch May 2, 2026 18:45
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