mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-03-21 15:45:01 +00:00
Updated docker-compose.yml (#1730)
* Updated docker-compose.yml Added one more Vmstorage to compose and pointed vmselect and vminsert to it. * Update prometheus.yml According to requested changes for new vmstorage * Update docker-compose Added port mapping * Updated docker-compose Set same ports for both storages * Update prometheus.yml Changed target for vmstorage1 * Updated docker compose Changed the flags for vmstorage1 * Update docker compose Changed flags for vmisert and vmselect to point to vmstorage1 * Update docker compose Made the vmstorage names uniform * Update prometheus.ymk * Update docker-compose.yml Removed additional flags as they are using default values. * Update prometheus.yml Put vmstorage targets under the same job * Update prometheus.yml Changed targets format * Update docker-compose.yml Set two different volumes for every vmstorage node * Update deployment/docker/prometheus.yml * Apply suggestions from code review Co-authored-by: Aliaksandr Valialkin <valyala@victoriametrics.com>
This commit is contained in:
parent
559dd996c4
commit
f7cb850f8d
2 changed files with 26 additions and 11 deletions
|
@ -30,37 +30,51 @@ services:
|
||||||
- ./../../dashboards/vmagent.json:/var/lib/grafana/dashboards/vmagent.json
|
- ./../../dashboards/vmagent.json:/var/lib/grafana/dashboards/vmagent.json
|
||||||
- ./../../dashboards/vmalert.json:/var/lib/grafana/dashboards/vmalert.json
|
- ./../../dashboards/vmalert.json:/var/lib/grafana/dashboards/vmalert.json
|
||||||
|
|
||||||
vmstorage:
|
vmstorage-1:
|
||||||
container_name: vmstorage
|
container_name: vmstorage-1
|
||||||
image: victoriametrics/vmstorage
|
image: victoriametrics/vmstorage
|
||||||
ports:
|
ports:
|
||||||
- 8482
|
- 8482
|
||||||
- 8400
|
- 8400
|
||||||
- 8401
|
- 8401
|
||||||
volumes:
|
volumes:
|
||||||
- strgdata:/storage
|
- strgdata-1:/storage
|
||||||
|
command:
|
||||||
|
- '--storageDataPath=/storage'
|
||||||
|
restart: always
|
||||||
|
vmstorage-2:
|
||||||
|
container_name: vmstorage-2
|
||||||
|
image: victoriametrics/vmstorage
|
||||||
|
ports:
|
||||||
|
- 8482
|
||||||
|
- 8400
|
||||||
|
- 8401
|
||||||
|
volumes:
|
||||||
|
- strgdata-2:/storage
|
||||||
command:
|
command:
|
||||||
- '--storageDataPath=/storage'
|
- '--storageDataPath=/storage'
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
vminsert:
|
vminsert:
|
||||||
container_name: vminsert
|
container_name: vminsert
|
||||||
image: victoriametrics/vminsert
|
image: victoriametrics/vminsert
|
||||||
depends_on:
|
depends_on:
|
||||||
- "vmstorage"
|
- "vmstorage-1"
|
||||||
|
- "vmstorage-2"
|
||||||
command:
|
command:
|
||||||
- '--storageNode=vmstorage:8400'
|
- '--storageNode=vmstorage-1:8400'
|
||||||
|
- '--storageNode=vmstorage-2:8400'
|
||||||
ports:
|
ports:
|
||||||
- 8480
|
- 8480
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
vmselect:
|
vmselect:
|
||||||
container_name: vmselect
|
container_name: vmselect
|
||||||
image: victoriametrics/vmselect
|
image: victoriametrics/vmselect
|
||||||
depends_on:
|
depends_on:
|
||||||
- "vmstorage"
|
- "vmstorage-1"
|
||||||
|
- "vmstorage-2"
|
||||||
command:
|
command:
|
||||||
- '--storageNode=vmstorage:8401'
|
- '--storageNode=vmstorage-1:8401'
|
||||||
|
- '--storageNode=vmstorage-2:8401'
|
||||||
ports:
|
ports:
|
||||||
- 8481:8481
|
- 8481:8481
|
||||||
restart: always
|
restart: always
|
||||||
|
@ -99,5 +113,6 @@ services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
vmagentdata: {}
|
vmagentdata: {}
|
||||||
strgdata: {}
|
strgdata-1: {}
|
||||||
|
strgdata-2: {}
|
||||||
grafanadata: {}
|
grafanadata: {}
|
||||||
|
|
|
@ -17,4 +17,4 @@ scrape_configs:
|
||||||
- targets: ['vmselect:8481']
|
- targets: ['vmselect:8481']
|
||||||
- job_name: 'vmstorage'
|
- job_name: 'vmstorage'
|
||||||
static_configs:
|
static_configs:
|
||||||
- targets: ['vmstorage:8482']
|
- targets: ['vmstorage-1:8482', 'vmstorage-2:8482']
|
||||||
|
|
Loading…
Reference in a new issue