Skip to content

Commit 5058a25

Browse files
committed
[template] modify mdsv2 topology config
1 parent 4afe02b commit 5058a25

File tree

6 files changed

+82
-29
lines changed

6 files changed

+82
-29
lines changed
File renamed without changes.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
kind: dingofs
2+
global:
3+
container_image: dingodatabase/dingofs:mdsv2-latest
4+
data_dir: ${home}/dingofs/data/${service_role}/${service_replica_sequence}
5+
log_dir: ${home}/dingofs/logs/${service_role}/${service_replica_sequence}
6+
raft_dir: ${home}/dingofs/raft/${service_role}/${service_replica_sequence}
7+
default_replica_num: 3
8+
restart_policy: no
9+
#source_core_dir: /mnt/vdb/lv0/core
10+
#target_core_dir: /mnt/vdb/lv0/core
11+
variable:
12+
home: /tmp
13+
machine1: server-host1
14+
machine2: server-host2
15+
machine3: server-host3
16+
17+
coordinator_services:
18+
config:
19+
container_image: dingodatabase/dingo-store:latest
20+
server.port: 6500
21+
raft.port: 7500
22+
#gflags.dingo_log_switch_scalar_speed_up_detail: false
23+
deploy:
24+
- host: ${machine1}
25+
- host: ${machine2}
26+
- host: ${machine3}
27+
28+
store_services:
29+
config:
30+
container_image: dingodatabase/dingo-store:latest
31+
server.port: 6600
32+
raft.port: 7600
33+
#gflags.dingo_log_switch_txn_detail: true
34+
deploy:
35+
- host: ${machine1}
36+
- host: ${machine2}
37+
- host: ${machine3}
38+
39+
mdsv2_services:
40+
config:
41+
server.port: 690${service_replica_sequence}
42+
#mds_log_level: DEBUG
43+
#mds_gc_delfile_enable: false
44+
#mds_gc_delslice_enable: false
45+
#mds_gc_filesession_enable: false
46+
#mds_compact_chunk_threshold_num: 100000
47+
deploy:
48+
- host: ${machine1}
49+
replicas: 3
50+
- host: ${machine2}
51+
replicas: 3
52+
- host: ${machine3}
53+
replicas: 3
54+
55+
executor_services:
56+
config:
57+
container_image: dingodatabase/dingo:latest
58+
port: 8765
59+
mysqlPort: 3307
60+
java.Xms: 2g
61+
java.Xmx: 2g
62+
java.SoftMaxHeapSize: 1g
63+
java.MaxDirectMemorySize: 256m
64+
deploy:
65+
- host: ${machine1}

configs/fs/cluster/topology-mdsv2-v1.yaml

Lines changed: 0 additions & 24 deletions
This file was deleted.

configs/fs/cluster/topology-mdsv2-v2.yaml renamed to configs/fs/cluster/topology-mdsv2.yaml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
kind: dingofs
22
global:
3-
container_image: dockerproxy.zetyun.cn/docker.io/dingodatabase/dingofs:mdsv2-226b854
3+
container_image: dingodatabase/dingofs:mdsv2-latest
44
data_dir: ${home}/dingofs/data/${service_role}
55
log_dir: ${home}/dingofs/logs/${service_role}
66
raft_dir: ${home}/dingofs/raft/${service_role}
@@ -13,7 +13,7 @@ global:
1313

1414
coordinator_services:
1515
config:
16-
container_image: dockerproxy.zetyun.cn/docker.io/dingodatabase/dingo-store:latest
16+
container_image: dingodatabase/dingo-store:latest
1717
server.port: 6500
1818
raft.port: 7500
1919
deploy:
@@ -23,7 +23,7 @@ coordinator_services:
2323

2424
store_services:
2525
config:
26-
container_image: dockerproxy.zetyun.cn/docker.io/dingodatabase/dingo-store:latest
26+
container_image: dingodatabase/dingo-store:latest
2727
server.port: 6600
2828
raft.port: 7600
2929
deploy:
@@ -37,4 +37,16 @@ mdsv2_services:
3737
deploy:
3838
- host: ${machine1}
3939
- host: ${machine2}
40-
- host: ${machine3}
40+
- host: ${machine3}
41+
42+
executor_services:
43+
config:
44+
container_image: dingodatabase/dingo:latest
45+
port: 8765
46+
mysqlPort: 3307
47+
java.Xms: 2g
48+
java.Xmx: 2g
49+
java.SoftMaxHeapSize: 1g
50+
java.MaxDirectMemorySize: 256m
51+
deploy:
52+
- host: ${machine1}

internal/configure/topology/dc_item.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const (
3939
REQUIRE_MAP
4040

4141
// default value
42-
DEFAULT_REPORT_USAGE = true
42+
DEFAULT_REPORT_USAGE = false
4343
DEFAULT_CURVEBS_CONTAINER_IMAGE = "opencurvedocker/curvebs:latest"
4444
DEFAULT_DINGOFS_CONTAINER_IMAGE = "dingodatabase/dingofs:latest"
4545
DEFAULT_ETCD_LISTEN_PEER_PORT = 2380

0 commit comments

Comments
 (0)