Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
trace: apply patch 07.
Signed-off-by: Phillip Whelan <[email protected]>
  • Loading branch information
pwhelan committed Jul 17, 2023
commit 93c1b9c4550706f050811f24fb859d05afb76bdd
2 changes: 1 addition & 1 deletion src/flb_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ pthread_key_t libco_in_param_key;
* awaiting to be consumed.
*/

#define FLB_INPUT_RING_BUFFER_SIZE (sizeof(void *) * 1024)
#define FLB_INPUT_RING_BUFFER_SIZE (sizeof(void *) * 1024 * 1024)
#define FLB_INPUT_RING_BUFFER_WINDOW (5)


Expand Down
7 changes: 5 additions & 2 deletions src/flb_plugin_proxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
/* Proxies */
#include "proxy/go/go.h"

#define PROXY_CALLBACK_TIME 1 /* 1 seconds */
#define PROXY_CALLBACK_TIME 0 /* 1 seconds */
#define PROXY_CALLBACK_TIME_NANOSECS 1000 /* 1000 ns */

static void proxy_cb_flush(struct flb_event_chunk *event_chunk,
struct flb_output_flush *out_flush,
Expand Down Expand Up @@ -146,9 +147,11 @@ static int flb_proxy_input_cb_init(struct flb_input_instance *ins,
flb_input_set_context(ins, ctx);

/* Collect upon data available on timer */
/* This will be changed through a different mechanism of deferring
the buffer write to the ingest directly a msgpack buffer to the ring buffer */
ret = flb_input_set_collector_time(ins,
flb_proxy_input_cb_collect,
PROXY_CALLBACK_TIME, 0,
PROXY_CALLBACK_TIME, PROXY_CALLBACK_TIME_NANOSECS,
config);

if (ret == -1) {
Expand Down