wklken opened a new issue, #9803:
URL: https://github.com/apache/apisix/issues/9803

   ### Description
   
   we do a benchmark and find out it will take a lot of time in the json encode 
of `file-logger`. 
   
   and other loggers like `http-logger` are using batch_processor
   
   so, we add a `batch_processor`(batch_max_size 1000 and inactive_timeout  5s) 
in the `file-logger` and the qps is greatly improved. 5500 to 13000. the log 
seems ok.
   
   I'm not so familiar with the batch_processor_manager, and no sure is there 
any risk to use it with the `write_file_data`.
   
   Hence, my concern is whether it is safe to add a batch_processor for the 
file-logger? 
   
   
   ### Environment
   
   - APISIX version (run `apisix version`): 3.2.1
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to