Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upproposal: increase default value for `max_samples_per_send` #5166
Comments
This comment has been minimized.
This comment has been minimized.
Can you elaborate? I don't think we're seeing any issues like this with any of our Prometheus instances. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
Yeah, 100 seems a bit low. |
This comment has been minimized.
This comment has been minimized.
|
Another datapoint: Weaveworks customer config is set to 1000. @valyala a lot of those configs on GitHub also have |
This comment has been minimized.
This comment has been minimized.
|
Yeah, default |
simonpasquier
added
the
component/remote storage
label
Feb 21, 2019
bboreham
referenced a pull request that will
close
this issue
Feb 25, 2019
Open
Default to bigger remote_write sends #5267
This comment has been minimized.
This comment has been minimized.
beorn-
commented
Apr 17, 2019
•
|
The system CPU usage was quite high after adding a significant amount of metrics. We were about to scale the platform and we noticed the CPU system usage was high. After profiling the system we've noticed that the kernel was spending a very significant amount of time handling lookups in established TCP connections kernel hashtable. After checking things i've seen that in our setup we were pushing Load was through the roof (more than 30 on a 12 cores server) and rules evaluation time exploded( 30s instead of the usual milliseconds) We have ended up with
It now works fine with 2-3 load and very good rules evaluations time One problem still remains. it eats up more memory, if i'm not mistaken and the prometheus code is not really meant for big |
brian-brazil
referenced this issue
Apr 17, 2019
Open
Release 2.8+ remote storage doesn't work on ext4 bare metal, running RH7 #5424
This comment has been minimized.
This comment has been minimized.
beorn-
commented
Apr 17, 2019
•
|
About keep-alived connections @elwinar and I came up with elwinar@a153ee9 It seems to fix the issue. |
This comment has been minimized.
This comment has been minimized.
|
FYI “http pipelining” means something different to keep-alive, and is not relevant here. See https://en.m.wikipedia.org/wiki/HTTP_pipelining This doesn’t impact your suggestion; I just like to keep the terminology clear. |
This comment has been minimized.
This comment has been minimized.
beorn-
commented
Apr 17, 2019
|
I stand corrected. To avoid any unneeded confusion i have edited my past comments. Thanks @bboreham . |
valyala commentedJan 31, 2019
Proposal
Default value for
max_samples_per_send- 100 - is too low for any non-idle Prometheus setup withremote_writeenabled. It results in too frequent requests to remote storage if Prometheus scrapes more than a few hundred metrics per second. High requests' frequency wastes resources on both Prometheus and remote storage sides, so users have to increasemax_samples_per_sendafter the first attempt to write metrics to remote storage.It would be great if default value for
max_samples_per_sendis increased from 100 to 1000 or even 10K. This would simplifyremote_writeconfiguration for the majority of users.