erickguan commented on issue #5330:
URL: https://github.com/apache/opendal/issues/5330#issuecomment-2992180479

   One such use case is for pre-forking servers running multiple worker 
processes. Many Python and Ruby webservers are pre-fork servers, e.g., 
Gunicorn, Puma for saving memory. A typical timeline for such servers:
   1. A web server runs as a master process, loading web application into 
memory.
   2. The master process forks itself, utilizing Copy-on-Write to save memory 
for child worker processes.
   
   There is also a "refork" server which reaps worker processes and forks a 
warm worker process. When working with third-party libraries, web application 
developers have to releases resources during fork, e.g.,
   
   - tokio resources
   - locks and mutex
   - file descriptors
   
   Another question is if it's wrong to open an `Operator` while forking. A 
service's existing caches, listers and async tasks are useless to another 
process.


-- 
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: commits-unsubscr...@opendal.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to