mirror of
https://github.com/zeek/zeek.git
synced 2025-10-15 04:58:21 +00:00
Allow tuning Broker log batching via scripts
Via redefining "Broker::log_batch_size" or "Broker::log_batch_interval"
This commit is contained in:
parent
312713810f
commit
cb6b9a1f1a
6 changed files with 29 additions and 17 deletions
|
@ -353,7 +353,7 @@ private:
|
|||
double last_flush;
|
||||
size_t message_count;
|
||||
|
||||
size_t Flush(broker::endpoint& endpoint);
|
||||
size_t Flush(broker::endpoint& endpoint, size_t batch_size);
|
||||
};
|
||||
|
||||
// Data stores
|
||||
|
@ -385,6 +385,8 @@ private:
|
|||
int peer_count;
|
||||
int times_processed_without_idle;
|
||||
|
||||
size_t log_batch_size;
|
||||
double log_batch_interval;
|
||||
Func* log_topic_func;
|
||||
VectorType* vector_of_data_type;
|
||||
EnumType* log_id_type;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue