Skip to content

Commit 3c9e817

Browse files
authored
chore: update ports in example config to default (#18165)
* chore: update ports in example config to default * z * z * z * z * z
1 parent 71c25f5 commit 3c9e817

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

scripts/distribution/configs/databend-meta.toml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
# Usage:
22
# databend-meta -c databend-meta.toml
33

4-
admin_api_address = "0.0.0.0:28101"
4+
admin_api_address = "0.0.0.0:28002"
55
grpc_api_address = "0.0.0.0:9191"
6+
# NOTE: change this to the ip address reachable from databend-query.
67
# databend-query fetch this address to update its databend-meta endpoints list,
78
# in case databend-meta cluster changes.
89
grpc_api_advertise_host = "127.0.0.1"
@@ -17,12 +18,16 @@ dir = "/var/log/databend"
1718
[raft_config]
1819
id = 1
1920
raft_dir = "/var/lib/databend/raft"
20-
raft_api_port = 28103
21+
raft_api_port = 28004
2122

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

2729
# Start up mode: single node cluster
2830
single = true
31+
32+
# Start up mode: join a cluster
33+
# join = ["127.0.0.1:28104"]

scripts/distribution/configs/databend-query.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ max_active_sessions = 256
66
shutdown_wait_timeout_ms = 5000
77

88
# Internal flight rpc for cluster communication.
9-
flight_api_address = "0.0.0.0:9091"
9+
flight_api_address = "0.0.0.0:9090"
1010

1111
# Admin REST API.
1212
admin_api_address = "0.0.0.0:8080"
@@ -42,13 +42,13 @@ table_engine_memory_enabled = true
4242
# [[query.users]]
4343
# name = "databend"
4444
# auth_type = "double_sha1_password"
45-
# # echo -n "databend" | sha1sum | cut -d' ' -f1 | xxd -r -p | sha1sum
45+
# # to generate auth_string: echo -n "databend" | sha1sum | cut -d' ' -f1 | xxd -r -p | sha1sum
4646
# auth_string = "3081f32caef285c232d066033c89a78d88a6d8a5"
4747

4848
# [[query.users]]
4949
# name = "datafuselabs"
5050
# auth_type = "sha256_password"
51-
# # echo -n "datafuselabs" | sha256sum
51+
# # to generate auth_string: echo -n "datafuselabs" | sha256sum
5252
# auth_string = "6db1a2f5da402b43c066fcadcbf78f04260b3236d9035e44dd463f21e29e6f3b"
5353

5454

0 commit comments

Comments
 (0)