queue_config:
capacity: 4000 # default = 500
max_shards: 500 # default = 1000
min_shards: 50 # default = 1
max_samples_per_send: 256 # default = 100
# batch_send_deadline: 5s # default = 5s
# min_backoff: 30ms # default = 30ms
# max_backoff: 100ms # default = 100ms
I then tried a similar configuration with an ingested samples rate of 400k samples / s, the change in configuration was to change max_shards to 750. However, while the remote write rate fluctuates between 200k/s and 450k/s, metrics I saw from the remote write destination show that the metrics are falling behind. The number of shards staying at the max number of 750 also indicate that Prometheus is falling behind since it is trying to send at its maximum throughput but can't keep up.
queue_config:
capacity: 4000 # default = 500
max_shards: 750 # default = 1000
min_shards: 50 # default = 1
max_samples_per_send: 256 # default = 100
# batch_send_deadline: 5s # default = 5s
# min_backoff: 30ms # default = 30ms
# max_backoff: 100ms # default = 100ms
--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/08184f0e-2f3c-4651-96c8-4cff6421d8ab%40googlegroups.com.
Hi YY,Which Prometheus version do you use? Try upgrading to the latest version (at least v2.12.0, but v2.13.1 is better), since previous versions had not very good resharding logic for remote_write, which could hurt performance - see https://github.com/prometheus/prometheus/pull/5763 .Also I'd recommend increasing max_samples_per_send to 10000 and reducing max_shards to 100 for your setup.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/08184f0e-2f3c-4651-96c8-4cff6421d8ab%40googlegroups.com.
--Best Regards,
Aliaksandr
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/50398ee1-c318-488c-b932-9d9f74123186%40googlegroups.com.