|
Logger System 0.1.3
High-performance C++20 thread-safe logging system with asynchronous capabilities
|
Configuration for batch processor. More...
#include <batch_processor.h>

Public Member Functions | |
| config () noexcept | |
Public Attributes | |
| size_t | initial_batch_size {100} |
| Initial batch size. | |
| size_t | min_batch_size {10} |
| Minimum batch size. | |
| size_t | max_batch_size {1000} |
| Maximum batch size. | |
| std::chrono::milliseconds | max_wait_time {1000} |
| Maximum wait time. | |
| std::chrono::milliseconds | min_wait_time {10} |
| Minimum wait time. | |
| bool | enable_dynamic_sizing {true} |
| Enable dynamic batch sizing. | |
| bool | enable_back_pressure {true} |
| Enable back-pressure handling. | |
| double | size_increase_factor {1.5} |
| Factor for increasing batch size. | |
| double | size_decrease_factor {0.8} |
| Factor for decreasing batch size. | |
| size_t | back_pressure_threshold {5000} |
| Queue size threshold for back-pressure. | |
| std::chrono::microseconds | back_pressure_delay {100} |
| Delay when under back-pressure. | |
Configuration for batch processor.
Definition at line 41 of file batch_processor.h.
|
inlinenoexcept |
Definition at line 58 of file batch_processor.h.
| std::chrono::microseconds kcenon::logger::async::batch_processor::config::back_pressure_delay {100} |
Delay when under back-pressure.
Definition at line 56 of file batch_processor.h.
Referenced by kcenon::logger::async::batch_processor::handle_back_pressure().
| size_t kcenon::logger::async::batch_processor::config::back_pressure_threshold {5000} |
Queue size threshold for back-pressure.
Definition at line 55 of file batch_processor.h.
Referenced by kcenon::logger::async::batch_processor::handle_back_pressure().
| bool kcenon::logger::async::batch_processor::config::enable_back_pressure {true} |
Enable back-pressure handling.
Definition at line 50 of file batch_processor.h.
Referenced by kcenon::logger::async::high_performance_async_writer::config::config(), and kcenon::logger::async::batch_processor::process_loop_iteration().
| bool kcenon::logger::async::batch_processor::config::enable_dynamic_sizing {true} |
Enable dynamic batch sizing.
Definition at line 49 of file batch_processor.h.
Referenced by kcenon::logger::async::high_performance_async_writer::config::config(), and kcenon::logger::async::batch_processor::process_loop_iteration().
| size_t kcenon::logger::async::batch_processor::config::initial_batch_size {100} |
Initial batch size.
Definition at line 42 of file batch_processor.h.
Referenced by kcenon::logger::async::batch_processor::batch_processor(), and kcenon::logger::async::high_performance_async_writer::config::config().
| size_t kcenon::logger::async::batch_processor::config::max_batch_size {1000} |
Maximum batch size.
Definition at line 44 of file batch_processor.h.
Referenced by kcenon::logger::async::batch_processor::adjust_batch_size(), kcenon::logger::async::batch_processor::batch_processor(), and kcenon::logger::async::high_performance_async_writer::config::config().
| std::chrono::milliseconds kcenon::logger::async::batch_processor::config::max_wait_time {1000} |
Maximum wait time.
Definition at line 46 of file batch_processor.h.
Referenced by kcenon::logger::async::high_performance_async_writer::config::config().
| size_t kcenon::logger::async::batch_processor::config::min_batch_size {10} |
Minimum batch size.
Definition at line 43 of file batch_processor.h.
Referenced by kcenon::logger::async::batch_processor::adjust_batch_size(), kcenon::logger::async::batch_processor::batch_processor(), and kcenon::logger::async::high_performance_async_writer::config::config().
| std::chrono::milliseconds kcenon::logger::async::batch_processor::config::min_wait_time {10} |
| double kcenon::logger::async::batch_processor::config::size_decrease_factor {0.8} |
Factor for decreasing batch size.
Definition at line 53 of file batch_processor.h.
Referenced by kcenon::logger::async::batch_processor::adjust_batch_size().
| double kcenon::logger::async::batch_processor::config::size_increase_factor {1.5} |
Factor for increasing batch size.
Definition at line 52 of file batch_processor.h.
Referenced by kcenon::logger::async::batch_processor::adjust_batch_size().