forked from apache/horaedb
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-standalone-static-routing.toml
More file actions
64 lines (53 loc) · 1.31 KB
/
Copy pathexample-standalone-static-routing.toml
File metadata and controls
64 lines (53 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
bind_addr = "0.0.0.0"
http_port = 5000
grpc_port = 8831
log_level = "info"
[runtime]
read_thread_num = 4
write_thread_num = 4
background_thread_num = 4
[analytic]
wal_path = "/tmp/ceresdb/"
write_group_worker_num = 4
replay_batch_size = 500
max_replay_tables_per_batch = 1024
write_group_command_channel_cap = 1024
[analytic.storage]
type = "Local"
data_path = "/tmp/ceresdb/"
[analytic.compaction_config]
schedule_channel_len = 4
schedule_interval = "30m"
max_ongoing_tasks = 4
# Route&Shard: public
[[static_route.topology.schema_shards]]
schema = 'public'
[[static_route.topology.schema_shards.shard_views]]
shard_id = 0
[static_route.topology.schema_shards.shard_views.endpoint]
addr = '127.0.0.1'
port = 8831
# Route&Shard: test
[[static_route.topology.schema_shards]]
schema = 'test'
[[static_route.topology.schema_shards.shard_views]]
shard_id = 0
[static_route.topology.schema_shards.shard_views.endpoint]
addr = '127.0.0.1'
port = 8831
[[static_route.topology.schema_shards.shard_views]]
shard_id = 1
[static_route.topology.schema_shards.shard_views.endpoint]
addr = '127.0.0.2'
port = 8831
# Route rules: test
[[static_route.rules.prefix_rules]]
schema = 'test'
prefix = 'BIZ'
shard = 0
[[static_route.rules.hash_rules]]
schema = 'test'
shards = [ 1 ]
[limiter]
write_block_list = ['mytable1']
read_block_list = ['mytable1']