hnlq715 edited a comment on issue #3211: URL: https://github.com/apache/apisix/issues/3211#issuecomment-760578226
@ElvinEfendi Very insightful, thanks @moonming @membphis Reviewing [nginx's random implemention](https://github.com/nginx/nginx/blob/1e92a0a4cef98902aed35d7b402a6a402951aba4/src/http/modules/ngx_http_upstream_random_module.c#L188), which supports sharing data between worker processes by shared memory. And [this article from nginx org](https://www.nginx.com/blog/nginx-power-of-two-choices-load-balancing-algorithm/) demonstrates p2c configured with upstream zone. Maybe it's more wiser to use the shared dict to share data between worker processes, although with some performance lose. ---------------------------------------------------------------- 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: us...@infra.apache.org