cubicdaiya / ngx_dynamic_upstream

Dynamic upstream for nginx
Other
501 stars 108 forks source link

Question about module? #22

Closed xluffy closed 7 years ago

xluffy commented 7 years ago

Have I a question? ngx_dynamic_upstream modify on memory, so it's very fast. What has happened when backend instance handling a lot of connections. When backend instance execute the request and complete it, how to response to the user?

sunyq commented 7 years ago

UP

xluffy commented 7 years ago

@sunyq hi, I think I discover the answer. I think it works same nginx -s reload, an old worker process will handle old requests. And when an old request is complete at backend server, it's response to old worker process, an old worker process is a response to the user and old worker is shutdown.

But i can't verify it, ref http://nginx.org/en/docs/beginners_guide.html#control