Open pieterjanpintens opened 2 years ago
Looking at the code it seems that log entries are bundled per tag before sending them out. Would it make sense to set a limit on the number of entries in each send operation and split the entries over multiple send operations when needed? I think this allows to limit the outgoing message size.
We are seeing these errors like this in our logs from fluentd.
Our setup is a batch like system that processes big log files from s3. Out config is like this. We tried to set the buffer_chunk_limit low but it does not help.
Looking futher down the line it seems that you can specify a channel option on grcp channel: _GRPC_ARG_MAX_SEND_MESSAGELENGTH. Reading about it I wonder if setting this option would solve this problem? It currently is not exposed to the fluentd config. By default it is set to -1? Not sure if grcp would split the message or if it would just turn the server error into a client error...
We are looking for guidance on how we should proceed