- Increase samplesQueueCapacity.
- Improve docstring for the above.
- Accept a short waiting period for the ingest channel to become
ready. This should depend on the http timeout, but 100ms is probably
good enough to cushion bursts bigger than samplesQueueCapacity,
while it is unlikely that anybody ever will set an HTTP timeout
similarly short.
remoteTSDBUrl=flag.String("storage.remote.url","","The URL of the OpenTSDB instance to send samples to.")
remoteTSDBTimeout=flag.Duration("storage.remote.timeout",30*time.Second,"The timeout to use when sending samples to OpenTSDB.")
samplesQueueCapacity=flag.Int("storage.incoming-samples-queue-capacity",4096,"The capacity of the queue of samples to be stored.")
samplesQueueCapacity=flag.Int("storage.incoming-samples-queue-capacity",64*1024,"The capacity of the queue of samples to be stored. Note that each slot in the queue takes a whole slice of samples whose size depends on details of the scrape process.")
numMemoryChunks=flag.Int("storage.local.memory-chunks",1024*1024,"How many chunks to keep in memory. While the size of a chunk is 1kiB, the total memory usage will be significantly higher than this value * 1kiB. Furthermore, for various reasons, more chunks might have to be kept in memory temporarily.")