目前用于测试的配置如下:
split_clients $remote_addr $upstream {
5% appversion2;
* appversion1;
}
upstream appversion1 {
# ...
}
upstream appversion2 {
# ...
}
server {
listen 80;
location / {
proxy_pass http://$upstream;
}
}
是否可以在split_clients
中执行脚本,以便在其中执行卷曲?