-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcompose-tservers-shared.yml
143 lines (136 loc) · 5.51 KB
/
compose-tservers-shared.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
135
136
137
138
139
140
141
142
143
version: '3.9'
networks:
yb-dbnet:
name: yb-dbnet
volumes:
vol_yb_shared_1:
name: vol_yb_shared_1
vol_yb_shared_2:
name: vol_yb_shared_2
vol_yb_shared_3:
name: vol_yb_shared_3
services:
envoy-yb-shared:
image: ${ENVOY_IMAGE}
restart: unless-stopped
container_name: envoy-yb-shared
command: ["/usr/local/bin/envoy", "-c", "/etc/envoy/envoy-yb-shared.yaml"] #-l debug
ports:
- 35432:35432
volumes:
- type: bind
source: ./etc/envoy/envoy-yb-shared.yaml
target: /etc/envoy/envoy-yb-shared.yaml
networks:
- yb-dbnet
yb-tserver-shared-1:
image: ${YB_IMAGE}
container_name: yb-tserver-shared-1
networks:
- yb-dbnet
ports:
- 9100:9100
volumes:
- vol_yb_shared_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-shared-1:9100",
"--server_broadcast_addresses=yb-tserver-shared-1:9100,127.0.0.1:9100", # 127.0.0.1 address used for connecting from the host
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=base1",
"--placement_zone=base1a",
"--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-shared-2:
image: ${YB_IMAGE}
container_name: yb-tserver-shared-2
networks:
- yb-dbnet
ports:
- 9101:9100
volumes:
- vol_yb_shared_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-shared-2:9100",
"--server_broadcast_addresses=yb-tserver-shared-2:9100,127.0.0.1:9101", # 127.0.0.1 address used for connecting from the host
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=base1",
"--placement_zone=base1a",
"--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-shared-3:
image: ${YB_IMAGE}
container_name: yb-tserver-shared-3
networks:
- yb-dbnet
ports:
- 9102:9100
volumes:
- vol_yb_shared_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-shared-3:9100",
"--server_broadcast_addresses=yb-tserver-shared-3:9100,127.0.0.1:9102", # 127.0.0.1 address used for connecting from the host
"--tserver_master_addrs=yb-master-n1:7100,yb-master-n2:7100,yb-master-n3:7100",
"--placement_cloud=docker",
"--placement_region=base1",
"--placement_zone=base1a",
"--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"