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/07/20 09:07:45 UTC

[GitHub] [apisix] edisonwd opened a new issue #4634: 上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

edisonwd opened a new issue #4634:
URL: https://github.com/apache/apisix/issues/4634


   ### Issue description
   ![image](https://user-images.githubusercontent.com/25941671/126293333-1376b96b-24b4-4c02-855c-2d2b10789f30.png)
   
   默认情况下 k8s 通过 servicename 找到后端对应的podip ,再轮询选择一个podip,这样的话在 apisix 中指定的负载均衡算法还会生效吗?
   ### Environment
   
   * apisix version (cmd: `apisix version`): 2.6
   * apisix-dashboard version, if have: 2.6
   
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] edisonwd closed issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] edisonwd removed a comment on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

Posted by GitBox <gi...@apache.org>.
edisonwd removed a comment on issue #4634:
URL: https://github.com/apache/apisix/issues/4634#issuecomment-883324285


   如果要使用这里的负载均衡算法,目标节点写 podip 吗?有很多 pod ,重新调度后 podip 会发生变化,这里应该怎么指定目标节点?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] edisonwd commented on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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






-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   > > @edisonwd As you just configure the FQDN or Service ClusterIP, there is only one node in the APISIX Upstream, so any load balancing algorithms are meaningless here.
   > > 如果要使用这里的负载均衡算法,目标节点写 podip 吗?有很多 pod ,重新调度后 podip 会发生变化,这里应该怎么指定目标节点?
   
   Welcome to use Apache APISIX Ingress Controller https://github.com/apache/apisix-ingress-controller. It's not easy to adjust the Kubernetes Service Discovery just by APISIX.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] sandy420 edited a comment on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   我配置了多个上游节点,现在upstream负载不均衡,有人知道是哪里的问题吗?这是每个节点的被分配的请求监控,请各位大佬给点整改思路!
   ![image](https://user-images.githubusercontent.com/10955441/134310367-d7c8b202-f082-4fbb-af46-b9e8ced891ff.png)
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   @edisonwd As you just configure the FQDN or Service ClusterIP, there is only one node in the APISIX Upstream, so any load balancing algorithms are meaningless here.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] sandy420 commented on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   我配置了多少上游节点,现在upstream负载不均衡,有人知道是哪里的问题吗?这是每个节点的被分配的请求监控
   ![lALPDgQ9y7MgOv7Mus0CdA_628_186](https://user-images.githubusercontent.com/10955441/134310089-922805a0-5562-45b4-8162-b2eacfb94c15.png)
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] sandy420 edited a comment on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   我配置了多个上游节点,现在upstream负载不均衡,有人知道是哪里的问题吗?这是每个节点的被分配的请求监控
   ![image](https://user-images.githubusercontent.com/10955441/134310367-d7c8b202-f082-4fbb-af46-b9e8ced891ff.png)
   


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] edisonwd commented on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   > > > @edisonwd As you just configure the FQDN or Service ClusterIP, there is only one node in the APISIX Upstream, so any load balancing algorithms are meaningless here.
   > > > 如果要使用这里的负载均衡算法,目标节点写 podip 吗?有很多 pod ,重新调度后 podip 会发生变化,这里应该怎么指定目标节点?
   > 
   > Welcome to use Apache APISIX Ingress Controller https://github.com/apache/apisix-ingress-controller. It's not easy to adjust the Kubernetes Service Discovery just by APISIX.
   
   如果配置ingress 的域名,它使用是 ingress 的负载均衡算法,这里的负载均衡依然不会生效吧。这里只有在配置多个目标节点的情况下才会使用这里的负载均衡算法对吧?


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tzssangglass commented on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   > 这里只有在配置多个目标节点的情况下才会使用这里的负载均衡算法对吧?
   
   yes.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [apisix] tokers commented on issue #4634: request help:上游服务中的目标节点设置为 k8s 的 servicename 时指定的负载均衡算法会失效吗?

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


   @edisonwd As you just configure the FQDN or Service ClusterIP, there is only one node in the APISIX Upstream, so any load balancing algorithms are meaningless here.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org