Hi Maxim,
> This patch has at least two problems I see right now:
>
> 1. It doesn't handle backup peers.
You are right, fixed version attached.
> 2. It does extra unneeded work on each request.
This is done on purpose. This patch is part of patch distributed with
ngx_supervisord which enables you to start/stop backend servers on demand.
But I agree that it could be optimized for mainstream release with something
like peers->none;
Best regards,
Piotr Sikora < piotr.sikora@frickle.com >
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Attachments:
open |
download -
ngx_round_robin_fix_v2.patch
(551 bytes)