-
Notifications
You must be signed in to change notification settings - Fork 2
/
compose-tservers-tenant3.yml
113 lines (106 loc) · 3.35 KB
/
compose-tservers-tenant3.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
version: '3.9'
networks:
yb-dbnet:
name: yb-dbnet
volumes:
vol_yb_tenant3_1:
name: vol_yb_tenant3_1
vol_yb_tenant3_2:
name: vol_yb_tenant3_2
vol_yb_tenant3_3:
name: vol_yb_tenant3_3
services:
envoy-yb-tenan3:
image: ${ENVOY_IMAGE}
restart: unless-stopped
container_name: envoy-yb-tenant3
command: /usr/local/bin/envoy -c /etc/envoy/envoy-yb-tenant3.yaml #-l debug
ports:
- 35435:35432
volumes:
- type: bind
source: ./etc/envoy/envoy-yb-tenant3.yaml
target: /etc/envoy/envoy-yb-tenant3.yaml
networks:
- yb-dbnet
yb-tserver-tenant3-1:
image: ${YB_IMAGE}
container_name: yb-tserver-tenant3-1
networks:
- yb-dbnet
volumes:
- vol_yb_tenant3_1:${YB_MOUNT_PREFIX}/tserver:rw
command: [ "/docker-entrypoint.sh", "/home/${YB_USER}/bin/yb-tserver",
"--callhome_enabled=false",
"--fs_data_dirs=${YB_MOUNT_PREFIX}/tserver",
"--enable_ysql",
"--ysql_enable_auth",
"--logtostderr",
"--rpc_bind_addresses=yb-tserver-tenant3-1:9100",
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=tenant3",
"--placement_zone=tenant3a",
"--stop_on_parent_termination",
"--undefok=stop_on_parent_termination",
"${YB_EXT_FLAGS}"]
environment:
CONTAINER_WITHOUT_DSH: "true"
deploy:
resources:
reservations:
memory: "${YB_RESOURCES_MEM_RESERVATION_TSERVER}"
yb-tserver-tenant3-2:
image: ${YB_IMAGE}
container_name: yb-tserver-tenant3-2
networks:
- yb-dbnet
volumes:
- vol_yb_tenant3_2:${YB_MOUNT_PREFIX}/tserver:rw
command: [ "/docker-entrypoint.sh", "/home/${YB_USER}/bin/yb-tserver",
"--callhome_enabled=false",
"--fs_data_dirs=${YB_MOUNT_PREFIX}/tserver",
"--enable_ysql",
"--ysql_enable_auth",
"--logtostderr",
"--rpc_bind_addresses=yb-tserver-tenant3-2:9100",
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=tenant3",
"--placement_zone=tenant3a",
"--stop_on_parent_termination",
"--undefok=stop_on_parent_termination",
"${YB_EXT_FLAGS}"]
environment:
CONTAINER_WITHOUT_DSH: "true"
deploy:
resources:
reservations:
memory: "${YB_RESOURCES_MEM_RESERVATION_TSERVER}"
yb-tserver-tenant3-3:
image: ${YB_IMAGE}
container_name: yb-tserver-tenant3-3
networks:
- yb-dbnet
volumes:
- vol_yb_tenant3_3:${YB_MOUNT_PREFIX}/tserver:rw
command: [ "/docker-entrypoint.sh", "/home/${YB_USER}/bin/yb-tserver",
"--callhome_enabled=false",
"--fs_data_dirs=${YB_MOUNT_PREFIX}/tserver",
"--enable_ysql",
"--ysql_enable_auth",
"--logtostderr",
"--rpc_bind_addresses=yb-tserver-tenant3-3:9100",
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=tenant3",
"--placement_zone=tenant3a",
"--stop_on_parent_termination",
"--undefok=stop_on_parent_termination",
"${YB_EXT_FLAGS}"]
environment:
CONTAINER_WITHOUT_DSH: "true"
deploy:
resources:
reservations:
memory: "${YB_RESOURCES_MEM_RESERVATION_TSERVER}"