VictoriaMetrics/VictoriaMetrics#8704
- Checkout VictoriaMetrics repo
- Build binaries
make vmagent
make victoria-metrics
- Run storage:
./bin/victoria-metrics
- Run vmagent
./bin/vmagent -remoteWrite.url=http://0.0.0.0:8428/api/v1/write -maxConcurrentInserts=2 -insert.maxQueueDuration=10s
- Run load script with commented out client's timeout:
go run main.go
You should obeserve a lot of succesful writes and some rare warnings like:
2025-04-12T13:49:47.551Z warn VictoriaMetrics/app/vmagent/main.go:291 remoteAddr: "127.0.0.1:60319"; requestURI: /api/v1/write; cannot read compressed request in 10 seconds: cannot process insert request for 10.000 seconds because 2 concurrent insert requests are executed. Possible solutions: to reduce workload; to increase compute resources at the server; to increase -insert.maxQueueDuration; to increase -maxConcurrentInserts
- Uncomment timeout and run load script:
You should obeserve a lot of succesful writes and some rare warnings like:
2025-04-12T13:49:47.374Z warn VictoriaMetrics/app/vmagent/main.go:291 remoteAddr: "127.0.0.1:60308"; requestURI: /api/v1/write; cannot read compressed request in 10 seconds: unexpected EOF
2025-04-12T13:49:47.551Z warn VictoriaMetrics/app/vmagent/main.go:291 remoteAddr: "127.0.0.1:60319"; requestURI: /api/v1/write; cannot read compressed request in 10 seconds: cannot process insert request for 10.000 seconds because 2 concurrent insert requests are executed. Possible solutions: to reduce workload; to increase compute resources at the server; to increase -insert.maxQueueDuration; to increase -maxConcurrentInserts