File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -246,6 +246,7 @@ struct flb_config {
246246 int storage_metrics ; /* enable/disable storage metrics */
247247 int storage_checksum ; /* checksum enabled */
248248 int storage_max_chunks_up ; /* max number of chunks 'up' in memory */
249+ char * storage_max_chunk_size ; /* maximum chunk size in buffer */
249250 int storage_del_bad_chunks ; /* delete irrecoverable chunks */
250251 char * storage_bl_mem_limit ; /* storage backlog memory limit */
251252 int storage_bl_flush_on_shutdown ; /* enable/disable backlog chunks flush on shutdown */
@@ -412,6 +413,8 @@ enum conf_type {
412413#define FLB_CONF_STORAGE_METRICS "storage.metrics"
413414#define FLB_CONF_STORAGE_CHECKSUM "storage.checksum"
414415#define FLB_CONF_STORAGE_BL_MEM_LIMIT "storage.backlog.mem_limit"
416+ #define FLB_CONF_STORAGE_MAX_CHUNK_SIZE \
417+ "storage.max_chunk_size"
415418#define FLB_CONF_STORAGE_BL_FLUSH_ON_SHUTDOWN \
416419 "storage.backlog.flush_on_shutdown"
417420#define FLB_CONF_STORAGE_MAX_CHUNKS_UP "storage.max_chunks_up"
Original file line number Diff line number Diff line change @@ -152,6 +152,9 @@ struct flb_service_config service_configs[] = {
152152 {FLB_CONF_STORAGE_MAX_CHUNKS_UP ,
153153 FLB_CONF_TYPE_INT ,
154154 offsetof(struct flb_config , storage_max_chunks_up )},
155+ {FLB_CONF_STORAGE_MAX_CHUNK_SIZE ,
156+ FLB_CONF_TYPE_STR ,
157+ offsetof(struct flb_config , storage_max_chunk_size )},
155158 {FLB_CONF_STORAGE_DELETE_IRRECOVERABLE_CHUNKS ,
156159 FLB_CONF_TYPE_BOOL ,
157160 offsetof(struct flb_config , storage_del_bad_chunks )},
@@ -621,6 +624,9 @@ void flb_config_exit(struct flb_config *config)
621624 if (config -> storage_bl_mem_limit ) {
622625 flb_free (config -> storage_bl_mem_limit );
623626 }
627+ if (config -> storage_max_chunk_size ) {
628+ flb_free (config -> storage_max_chunk_size );
629+ }
624630 if (config -> storage_rejected_path ) {
625631 flb_free (config -> storage_rejected_path );
626632 }
You can’t perform that action at this time.
0 commit comments