hmthoo commented on issue #8117:
URL: https://github.com/apache/apisix/issues/8117#issuecomment-1290169097

   I have sovled this problem. If you want to add more than one nodes in 
`up_conf.nodes`,  you should add `prority` in it
   ```
       local up_conf = {
           type = "roundrobin",
           nodes = {
               {host = "192.168.100.92" , port = 8088 , weight = 10, prority = 
0},
               {host = "192.168.100.91" , port = 8088 , weight = 10, prority = 
0},
           }
       }
       core.log.warn(core.json.delay_encode(up_conf.nodes, true))
   
       local upstream_key = up_conf.type .. "#route_" .. matched_route.value.id
       upstream.set(ctx, upstream_key, ctx.conf_version, up_conf)
   ```
   @tzssangglass thanks


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to