Skip to content
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

Increment pollingInterval everytime while waiting for resources #1699

Open
asn1809 opened this issue Dec 5, 2024 · 2 comments
Open

Increment pollingInterval everytime while waiting for resources #1699

asn1809 opened this issue Dec 5, 2024 · 2 comments

Comments

@asn1809
Copy link
Contributor

asn1809 commented Dec 5, 2024

While the check hooks are executed using recipe, the resource is expected to be available within timeout. Currently, the polling interval is 100ms, it needs to be increased exponentially till the timeout is reached. This will help reduce the polling with short intervals.

@nirs
Copy link
Member

nirs commented Dec 5, 2024

@asn1809 If we have a polling internal, it means that we have a blocking loop. In this case watching changes in object state is more efficient.

Another option to add a controller for the watched resources. It will watch the resources and will reconcile when a resource changes.

Can you link to the relevant code?

@asn1809
Copy link
Contributor Author

asn1809 commented Dec 6, 2024

@nirs, thanks for the inputs, I will explore for the Watch related option. In my earlier project I faced issues when using watch and moreover, here for hook execution, it needs to be synchronous and no further execution needs to done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants