Skip to content

chore: fix example config for metasrv #18169

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions scripts/distribution/configs/databend-meta.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ grpc_api_address = "0.0.0.0:9191"
# NOTE: change this to the ip address reachable from databend-query.
# databend-query fetch this address to update its databend-meta endpoints list,
# in case databend-meta cluster changes.
grpc_api_advertise_host = "127.0.0.1"
grpc_api_advertise_host = "localhost"

[log]

Expand All @@ -16,13 +16,14 @@ format = "text"
dir = "/var/log/databend"

[raft_config]
id = 1
# NOTE: change this to the id of the node.
id = 0
raft_dir = "/var/lib/databend/raft"
raft_api_port = 28004

# Assign raft_{listen|advertise}_host in test config.
# This allows you to catch a bug in unit tests when something goes wrong in raft meta nodes communication.
raft_listen_host = "127.0.0.1"
raft_listen_host = "0.0.0.0"
# NOTE: change this to the ip address or hostname reachable from other databend-meta nodes.
raft_advertise_host = "localhost"

Expand Down
Loading