sshniro opened a new issue #1494:
URL: https://github.com/apache/incubator-apisix/issues/1494


   ### Issue description
   Currently, if a logger that uses a batch processor becomes inactive, it is 
kept in the memory. It would be good if we can identity stale objects from the 
log buffer and remove them periodically.
   
   ```lua
   local buffers = {}
   
   function _M.log(conf)
   timer_at(30 mins, remove_stale_objects, conf)
   end
   
   local function remove_stale_objects(conf)
   -- Check if any elements in buffers have zeon elements in the queue
   -- remove the buffer element from the table
   end
   ```
   
   
[Discussion](https://github.com/apache/incubator-apisix/pull/1358/files#r412775244)


----------------------------------------------------------------
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.

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


Reply via email to