You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/05/19 14:51:34 UTC

[GitHub] [apisix] gxthrj opened a new issue #4276: discuss: Suggest to add a downgrade strategy to the chash load balancing strategy

gxthrj opened a new issue #4276:
URL: https://github.com/apache/apisix/issues/4276


   ### Issue description
   
   Now when upstream chooses chash load balancing, and specify the key, such as
   
   ```yaml
     loadbalancer:
       type: chash
       hashOn: cookie
       key: "X-Foo"
   ```
   
   If the request does not contain any cookies, all traffic will visit a single node and will not be sent to other nodes.
   
   In such a scenario, downgrading the load balancing strategy to polling seems to be a more reasonable solution.
   
   What do you think?
   
   


-- 
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:
users@infra.apache.org



[GitHub] [apisix] spacewander commented on issue #4276: discuss: Suggest to add a downgrade strategy to the chash load balancing strategy

Posted by GitBox <gi...@apache.org>.
spacewander commented on issue #4276:
URL: https://github.com/apache/apisix/issues/4276#issuecomment-844618673


   Already have.
   
   https://github.com/apache/apisix/blob/master/docs/en/latest/admin-api.md#upstream
   
   > If the specified hash_on and key can not fetch values, it will be fetch remote_addr by default.


-- 
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:
users@infra.apache.org



[GitHub] [apisix] spacewander closed issue #4276: discuss: Suggest to add a downgrade strategy to the chash load balancing strategy

Posted by GitBox <gi...@apache.org>.
spacewander closed issue #4276:
URL: https://github.com/apache/apisix/issues/4276


   


-- 
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:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #4276: discuss: Suggest to add a downgrade strategy to the chash load balancing strategy

Posted by GitBox <gi...@apache.org>.
tzssangglass commented on issue #4276:
URL: https://github.com/apache/apisix/issues/4276#issuecomment-844614040


   is a good way to go.
   I think we can also specify a fallback key, which is defined as a key that must exist in the request, such as ip, etc. 
   When the `hashOn` key does not exist, the fallback key is used.


-- 
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:
users@infra.apache.org



[GitHub] [apisix] tokers edited a comment on issue #4276: discuss: Suggest to add a downgrade strategy to the chash load balancing strategy

Posted by GitBox <gi...@apache.org>.
tokers edited a comment on issue #4276:
URL: https://github.com/apache/apisix/issues/4276#issuecomment-844613202


   I think fallback strategy is required, or malicious users can leverage this drawback and send deliberated requests, which makes one of the backend endpoints under high overhead.


-- 
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:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4276: discuss: Suggest to add a downgrade strategy to the chash load balancing strategy

Posted by GitBox <gi...@apache.org>.
tokers commented on issue #4276:
URL: https://github.com/apache/apisix/issues/4276#issuecomment-844613202


   I think fallback strategy is required, or malicious users can leverage this drawback and send deliberated requests, which makes one of the backend endpoint under high overhead.


-- 
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:
users@infra.apache.org