-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose-tservers-tenant1.yml
134 lines (127 loc) · 5.07 KB
/
compose-tservers-tenant1.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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
version: '3.9'
networks:
yb-dbnet:
name: yb-dbnet
volumes:
vol_yb_tenant1_1:
name: vol_yb_tenant1_1
vol_yb_tenant1_2:
name: vol_yb_tenant1_2
vol_yb_tenant1_3:
name: vol_yb_tenant1_3
services:
envoy-yb-tenant1:
image: ${ENVOY_IMAGE}
restart: unless-stopped
container_name: envoy-yb-tenant1
command: /usr/local/bin/envoy -c /etc/envoy/envoy-yb-tenant1.yaml #-l debug
ports:
- 35433:35432
volumes:
- type: bind
source: ./etc/envoy/envoy-yb-tenant1.yaml
target: /etc/envoy/envoy-yb-tenant1.yaml
networks:
- yb-dbnet
yb-tserver-tenant1-1:
image: ${YB_IMAGE}
container_name: yb-tserver-tenant1-1
networks:
- yb-dbnet
volumes:
- vol_yb_tenant1_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-tenant1-1:9100",
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=tenant1",
"--placement_zone=tenant1a",
"--stop_on_parent_termination",
"--undefok=stop_on_parent_termination",
"${YB_EXT_FLAGS}",
"--memory_limit_hard_bytes=${YB_MEMORY_LIMIT_HARD_BYTES_TSERVER}",
"--default_memory_limit_to_ram_ratio=${YB_MEMORY_DEFAULT_LIMIT_TO_RAM_RATIO_TSERVER}",
"--memory_limit_soft_percentage=${YB_MEMORY_LIMIT_SOFT_PERCENTAGE_TSERVER}",
"--memory_limit_warn_threshold_percentage=${YB_MEMORY_LIMIT_WARN_THRESHOLD_PERCENTAGE_TSERVER}",
"--mem_tracker_logging=${YB_MEM_TRACKER_LOGGING}",
"--mem_tracker_log_stack_trace=${YB_MEM_TRACKER_LOG_STACK_TRACE}",
"--mem_tracker_update_consumption_interval_us=${YB_MEM_TRACKER_UPDATE_CONSUMPTION_INTERVAL_US}"]
environment:
CONTAINER_WITHOUT_DSH: "true"
deploy:
resources:
reservations:
memory: "${YB_RESOURCES_MEM_RESERVATION_TSERVER}M"
yb-tserver-tenant1-2:
image: ${YB_IMAGE}
container_name: yb-tserver-tenant1-2
networks:
- yb-dbnet
volumes:
- vol_yb_tenant1_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-tenant1-2:9100",
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=tenant1",
"--placement_zone=tenant1a",
"--stop_on_parent_termination",
"--undefok=stop_on_parent_termination",
"${YB_EXT_FLAGS}",
"--memory_limit_hard_bytes=${YB_MEMORY_LIMIT_HARD_BYTES_TSERVER}",
"--default_memory_limit_to_ram_ratio=${YB_MEMORY_DEFAULT_LIMIT_TO_RAM_RATIO_TSERVER}",
"--memory_limit_soft_percentage=${YB_MEMORY_LIMIT_SOFT_PERCENTAGE_TSERVER}",
"--memory_limit_warn_threshold_percentage=${YB_MEMORY_LIMIT_WARN_THRESHOLD_PERCENTAGE_TSERVER}",
"--mem_tracker_logging=${YB_MEM_TRACKER_LOGGING}",
"--mem_tracker_log_stack_trace=${YB_MEM_TRACKER_LOG_STACK_TRACE}",
"--mem_tracker_update_consumption_interval_us=${YB_MEM_TRACKER_UPDATE_CONSUMPTION_INTERVAL_US}"]
environment:
CONTAINER_WITHOUT_DSH: "true"
deploy:
resources:
reservations:
memory: "${YB_RESOURCES_MEM_RESERVATION_TSERVER}M"
yb-tserver-tenant1-3:
image: ${YB_IMAGE}
container_name: yb-tserver-tenant1-3
networks:
- yb-dbnet
volumes:
- vol_yb_tenant1_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-tenant1-3:9100",
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=tenant1",
"--placement_zone=tenant1a",
"--stop_on_parent_termination",
"--undefok=stop_on_parent_termination",
"${YB_EXT_FLAGS}",
"--memory_limit_hard_bytes=${YB_MEMORY_LIMIT_HARD_BYTES_TSERVER}",
"--default_memory_limit_to_ram_ratio=${YB_MEMORY_DEFAULT_LIMIT_TO_RAM_RATIO_TSERVER}",
"--memory_limit_soft_percentage=${YB_MEMORY_LIMIT_SOFT_PERCENTAGE_TSERVER}",
"--memory_limit_warn_threshold_percentage=${YB_MEMORY_LIMIT_WARN_THRESHOLD_PERCENTAGE_TSERVER}",
"--mem_tracker_logging=${YB_MEM_TRACKER_LOGGING}",
"--mem_tracker_log_stack_trace=${YB_MEM_TRACKER_LOG_STACK_TRACE}",
"--mem_tracker_update_consumption_interval_us=${YB_MEM_TRACKER_UPDATE_CONSUMPTION_INTERVAL_US}"]
environment:
CONTAINER_WITHOUT_DSH: "true"
deploy:
resources:
reservations:
memory: "${YB_RESOURCES_MEM_RESERVATION_TSERVER}M"