You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to set storage_driver_buffer_duration shorter than 1 minute? #1074
I'm running cadvisor-canary:latest build, sending data to InfluxDB, and trying to set -storage_driver_buffer_duration to a lower value than the default 1 minute, so I'd be able to chart current data from influx rather than having a delay. I thought that was working when I ran a release build in Nov-Dec with influx v0.8, setting -storage_driver_buffer_duration=2s.
The reason I'm now running canary is to have influx v0.9 support, since that's what I need. When I tried setting the duration to 2s, the actual delay I saw was 2 minutes. That seems to match the setting to 60*time.Secondin this code unless I'm misreading it. Trying a fractional value -storage_driver_buffer_duration=0.1 resulted in not seeing data in influxdb for several minutes (then i stopped waiting).
I'm now running with -storage_driver_buffer_duration=1m but would like a shorter delay.
This is the exact command line in my docker-compose file:
AFAIK, you can set that flag to a shorter duration. Is that not working for
you?
On Thu, Jan 21, 2016 at 9:41 PM, Daria Mehra [email protected]
wrote:
I'm running cadvisor-canary:latest build, sending data to InfluxDB, and
trying to set -storage_driver_buffer_duration to a lower value than the
default 1 minute, so I'd be able to chart current data from influx rather
than having a delay. I thought that was working when I ran a release build
in Nov-Dec (with influx v0.8, setting -storage_driver_buffer_duration=2s.
The reason I'm now running canary is to have influx v0.9 support, since
that's what I need. When I tried setting the duration to 2s, the actual
delay I saw was 2 minutes. That seems to match the setting to
60*time.Second in this code https://github.com/google/cadvisor/blob/master/storage/common_flags.go
unless I'm misreading it. Trying a fractional value
-storage_driver_buffer_duration=0.1 resulted in not seeing data in
influxdb for several minutes (then i stopped waiting).
I'm now running with -storage_driver_buffer_duration=1m but would like a
shorter delay.
This is the exact command line in my docker-compose file:
When I tried running again with -storage_driver_buffer_duration=2s on a newer canary build, it worked as expected, doing writes to influx every 2 seconds. I cannot explain the earlier behavior; closing this issue as not reproducible.
Activity
vishh commentedon Jan 23, 2016
AFAIK, you can set that flag to a shorter duration. Is that not working for
you?
On Thu, Jan 21, 2016 at 9:41 PM, Daria Mehra [email protected]
wrote:
dmehra commentedon Jan 23, 2016
Correct, when I set
-storage_driver_buffer_duration=2sthe actual delay is 2 minutes, not seconds.vishh commentedon Jan 23, 2016
Do the logs give any clues?
On Fri, Jan 22, 2016, 6:47 PM Daria Mehra [email protected] wrote:
dmehra commentedon Jan 27, 2016
When I tried running again with
-storage_driver_buffer_duration=2son a newer canary build, it worked as expected, doing writes to influx every 2 seconds. I cannot explain the earlier behavior; closing this issue as not reproducible.