我有这样的配置:
upstream my_custom_upstream {
server container-1:8000 weight=99;
server container-2:8001 weight=1;
}
location = /my_url {
uwsgi_pass my_custom_upstream;
...
}
现在我只更改运行container-2
daphne
,基于asgi而不再基于uwsgi。在uwsgi上保持container-1和container-2与asgi的99-1比例,如何在不同的协议下保持相同的行为?