Created
July 3, 2021 08:06
-
-
Save f41gh7/56ed4a10d455a9a66b44f28e36c268f6 to your computer and use it in GitHub Desktop.
cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.5' | |
services: | |
vminsert: | |
image: victoriametrics/vminsert:v1.60.0-cluster | |
command: | |
- '--storageNode=vmstorage-0:8400' | |
- '--storageNode=vmstorage-1:8400' | |
- '--storageNode=vmstorage-2:8400' | |
- '--storageNode=vmstorage-3:8400' | |
- '--storageNode=vmstorage-4:8400' | |
- '-memory.allowedBytes=2024MB' | |
environment: | |
GOMAXPROCS: "2" | |
ports: | |
- 8480-8490:8480 | |
networks: | |
- vm_net | |
restart: always | |
deploy: | |
resources: | |
limits: | |
cpus: '0.5' | |
memory: 4024M | |
vmselect: | |
image: victoriametrics/vmselect:v1.60.0-cluster | |
command: | |
- '--storageNode=vmstorage-0:8401' | |
- '--storageNode=vmstorage-1:8401' | |
- '--storageNode=vmstorage-2:8401' | |
- '--storageNode=vmstorage-3:8401' | |
- '--storageNode=vmstorage-4:8401' | |
ports: | |
- 8491-8500:8481 | |
networks: | |
- vm_net | |
restart: always | |
deploy: | |
resources: | |
limits: | |
cpus: '4' | |
memory: 4024M | |
vmstorage-0: | |
container_name: vmstorage-0 | |
image: victoriametrics/vmstorage:v1.60.0-cluster | |
command: | |
- '--storageDataPath=/storage' | |
- '-memory.allowedBytes=1024MB' | |
environment: | |
GOMAXPROCS: "2" | |
volumes: | |
- vmstorage-0:/storage | |
networks: | |
- vm_net | |
restart: always | |
deploy: | |
resources: | |
limits: | |
cpus: '2.0' | |
memory: 1024M | |
vmstorage-1: | |
container_name: vmstorage-1 | |
image: victoriametrics/vmstorage:v1.60.0-cluster | |
command: | |
- '--storageDataPath=/storage' | |
- '-memory.allowedBytes=1024MB' | |
environment: | |
GOMAXPROCS: "2" | |
volumes: | |
- vmstorage-1:/storage | |
networks: | |
- vm_net | |
restart: always | |
deploy: | |
resources: | |
limits: | |
cpus: '2.0' | |
memory: 1024M | |
vmstorage-2: | |
container_name: vmstorage-2 | |
image: victoriametrics/vmstorage:v1.60.0-cluster | |
command: | |
- '--storageDataPath=/storage' | |
- '-memory.allowedBytes=1024MB' | |
environment: | |
GOMAXPROCS: "1" | |
volumes: | |
- vmstorage-2:/storage | |
networks: | |
- vm_net | |
restart: always | |
deploy: | |
resources: | |
limits: | |
cpus: '2.0' | |
memory: 1024M | |
vmstorage-3: | |
container_name: vmstorage-3 | |
image: victoriametrics/vmstorage:v1.60.0-cluster | |
command: | |
- '--storageDataPath=/storage' | |
- '-memory.allowedBytes=1024MB' | |
environment: | |
GOMAXPROCS: "2" | |
volumes: | |
- vmstorage-3:/storage | |
networks: | |
- vm_net | |
restart: always | |
deploy: | |
resources: | |
limits: | |
cpus: '2.0' | |
memory: 1024M | |
vmstorage-4: | |
container_name: vmstorage-4 | |
image: victoriametrics/vmstorage:v1.60.0-cluster | |
command: | |
- '--storageDataPath=/storage' | |
- '-memory.allowedBytes=1024MB' | |
environment: | |
GOMAXPROCS: "2" | |
volumes: | |
- vmstorage-4:/storage | |
networks: | |
- vm_net | |
restart: always | |
deploy: | |
resources: | |
limits: | |
cpus: '2.0' | |
memory: 1024M | |
vmagent: | |
container_name: vmagent | |
image: victoriametrics/victoria-metrics:v1.60.0 | |
command: | |
- '--promscrape.config=/opt/configs/static_cluster_compose.yml' | |
- '--selfScrapeInterval=5s' | |
volumes: | |
- /home/f41gh7/go_pro/VictoriaMetrics/testdata:/opt/configs | |
networks: | |
- vm_net | |
restart: always | |
ports: | |
- 8428:8428 | |
deploy: | |
resources: | |
limits: | |
cpus: '1.0' | |
memory: 1024M | |
volumes: | |
vmstorage-0: {} | |
vmstorage-1: {} | |
vmstorage-2: {} | |
vmstorage-3: {} | |
vmstorage-4: {} | |
networks: | |
vm_net: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment