add option flush_interval for config sample