You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by "flca267 (via GitHub)" <gi...@apache.org> on 2023/04/03 10:34:29 UTC

[GitHub] [apisix] flca267 opened a new issue, #9230: As a user, i want new nodes from kubernetes discovery has lower weight with other nodes

flca267 opened a new issue, #9230:
URL: https://github.com/apache/apisix/issues/9230

   ### Description
   
   As a user, i want new nodes from kubernetes discovery has lower weight with other nodes in several minutes.
   Now a new node from kubernetes discovery has the same default weight with other existing nodes. Some service's newly instance may need several minutes to "warmup". If the new node has the same weight with others, it may under low performance during the "warmup" period. 
   The kubernetes discovery's nodes() method fetch nodes from a lrucache, so add a timer to set new weight ? Or is there any better way to do this?


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

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


Re: [I] As a user, i want new nodes from kubernetes discovery has lower weight with other nodes [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed issue #9230: As a user, i want new nodes from kubernetes discovery has lower weight with other nodes
URL: https://github.com/apache/apisix/issues/9230


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


Re: [I] As a user, i want new nodes from kubernetes discovery has lower weight with other nodes [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9230:
URL: https://github.com/apache/apisix/issues/9230#issuecomment-2014750346

   This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.


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


Re: [I] As a user, i want new nodes from kubernetes discovery has lower weight with other nodes [apisix]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #9230:
URL: https://github.com/apache/apisix/issues/9230#issuecomment-2039398908

   This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.


-- 
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] zhixiongdu027 commented on issue #9230: As a user, i want new nodes from kubernetes discovery has lower weight with other nodes

Posted by "zhixiongdu027 (via GitHub)" <gi...@apache.org>.
zhixiongdu027 commented on issue #9230:
URL: https://github.com/apache/apisix/issues/9230#issuecomment-1495232717

          By default, kubernetes records all pod ips in the endpoints resource without discrimination, rather than sorting them by startup time.
   
          In order to achieve your needs, you should develop a kubernetes operator that identifies the weight for each pod in the endpoint resource, The weights are then read and applied by discovery
   
          Another way is to use the kubernetes probe function to delay adding pod ip to endpoints, and use sidecar "warmup" during the delay
   


-- 
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] chenwenjun-github commented on issue #9230: As a user, i want new nodes from kubernetes discovery has lower weight with other nodes

Posted by "chenwenjun-github (via GitHub)" <gi...@apache.org>.
chenwenjun-github commented on issue #9230:
URL: https://github.com/apache/apisix/issues/9230#issuecomment-1499904154

   > 
   
   I have the same need, now I just use the kubernetes probe function to delay adding pod ip to endpoints, and in sidecar use proxy_mirror plugin to warmup, it work when protocol is http, but my protocol is grpc, proxy_mirror don't support grpc


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