Skip to content

Commit 508ba41

Browse files
committed
fix addr
1 parent 089e238 commit 508ba41

4 files changed

Lines changed: 12 additions & 9 deletions

File tree

docker-compose-gravity-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
version: '3.2'
22
services:
33
source-db:
4-
image: mysql:5.7.18
4+
image: mysql:5.7
55
container_name: source-db-test
66
environment:
77
- MYSQL_ALLOW_EMPTY_PASSWORD=yes
@@ -71,8 +71,8 @@ services:
7171
- ./integration_test/config/pd.toml:/pd.toml:ro
7272
command:
7373
- --name=pd
74-
- --client-urls=http://0.0.0.0:2379
75-
- --peer-urls=http://0.0.0.0:2380
74+
- --client-urls=http://pd:2379
75+
- --peer-urls=http://pd:2380
7676
- --advertise-client-urls=http://pd:2379
7777
- --advertise-peer-urls=http://pd:2380
7878
- --initial-cluster=pd=http://pd:2380
@@ -85,7 +85,7 @@ services:
8585
volumes:
8686
- ./integration_test/config/tikv.toml:/tikv.toml:ro
8787
command:
88-
- --addr=0.0.0.0:20160
88+
- --addr=tikv:20160
8989
- --advertise-addr=tikv:20160
9090
- --data-dir=/data/tikv
9191
- --pd=pd:2379
@@ -100,7 +100,7 @@ services:
100100
- ./integration_test/config/pump.toml:/pump.toml:ro
101101
command:
102102
- /pump
103-
- --addr=0.0.0.0:8250
103+
- --addr=pump:8250
104104
- --advertise-addr=pump:8250
105105
- --data-dir=/data/pump
106106
- --node-id=pump
@@ -116,7 +116,7 @@ services:
116116
- ./integration_test/config/drainer.toml:/drainer.toml:ro
117117
command:
118118
- /drainer
119-
- --addr=0.0.0.0:8249
119+
- --addr=drainer:8249
120120
- --data-dir=/data/data.drainer
121121
- --pd-urls=http://pd:2379
122122
- --config=/drainer.toml

integration_test/config/pd.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ level = "error"
5050
# prometheus client push interval, set "0s" to disable prometheus.
5151
interval = "15s"
5252
# prometheus pushgateway address, leaves it empty will disable prometheus.
53-
address = "pushgateway:9091"
53+
# address = "pushgateway:9091"
54+
address = ""
5455

5556
[schedule]
5657
max-merge-region-size = 0

integration_test/config/tidb.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ report-status = true
107107
status-port = 10080
108108

109109
# Prometheus pushgateway address, leaves it empty will disable prometheus push.
110-
metrics-addr = "pushgateway:9091"
110+
# metrics-addr = "pushgateway:9091"
111+
metrics-addr = ""
111112

112113
# Prometheus client push interval in second, set \"0\" to disable prometheus push.
113114
metrics-interval = 15

integration_test/config/tikv.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ log-level = "error"
109109
# the Prometheus client push interval. Setting the value to 0s stops Prometheus client from pushing.
110110
# interval = "15s"
111111
# the Prometheus pushgateway address. Leaving it empty stops Prometheus client from pushing.
112-
address = "pushgateway:9091"
112+
# address = "pushgateway:9091"
113+
address = ""
113114
# the Prometheus client push job name. Note: A node id will automatically append, e.g., "tikv_1".
114115
# job = "tikv"
115116

0 commit comments

Comments
 (0)