For highly loaded environment

* Add queued_chunk_flush_interva to configure consecutive chunk flush interval
* Use random value when calculate the retry wait