-
Notifications
You must be signed in to change notification settings - Fork 2.7k
add workerCount config and multiple worker supports for istio_gateway and istio_virtualservice #5473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
… and istio_virtualservice
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Welcome @sichenzhao! |
Hi @sichenzhao. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
I didn’t spend too much time on this, so my analyse could be incorrect, but I wanted to provide an overview of why the current implementation is slow and why proposed solution may not necessary provide performance benefits. Thank you for taking the time to improve the code. It's never easy—especially when the original version was written to simply work, without performance in mind. General feedbackWhile I agree that performance improvements are needed, the current approach feels somewhat naive—it's more of a brute-force solution: add more CPU to gain improvement. Instead, I’d encourage starting with:
The guiding principles should be:
My perspectiveYou may not fully agree with my view, but I’m approaching this from a different angle. I see several concerns with the current solution:
Regarding
|
just FYI #5458 (comment) |
@szuecs Thanks, replied it here. #5458 (comment) Hi @ivankatliarchuk I don't think the issue we are facing is about algorithm level complexity. If there're N number VirtualServices/Gateways resources, etc, we have to process all of them. It won't be that slow if it's pure computation.
Unfortunately this won't help for us. Because all Istio resources in the cluster we need to process. The alternative would be deploy multiple external dns and let each of them work on a subset of Istio resources. We decided that's a sub-optimal approach because it would require dev team to coordinate deployments of external dns with Istio CR generation, potentially even in different teams. Therefore we think it's better to make an OSS PR change so that others in the community managing large number of Istio resources with external dns can also benefit. Hope this helps! |
🤔 With an API server request for each VirtualService, then parallelizing R requests cross G gateways may flood this API server with G*R requests in //, no ? Wdyt about reducing the number of required API Server requests by treating them in batch instead of one by one ? |
By any chance, could you first do simple improvements? Step 1.
Step 2. And make sure to understand, that API calls are not only calls made to AWS API or any other provider, but internall kubernets calls are API calls. Step 3
Step 4
|
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What does it do ?
#5458
Motivation
#5458
More