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

Using Kubernetes Informer to refactor code for scheduler's events #118

Merged
merged 4 commits into from
Feb 22, 2024

Conversation

gemblerz
Copy link
Collaborator

The scheduler spun up a Go process to manage execution of a Plugin. Each of the process held a connection to Kubernetes cluster using Kubernetes Watch class. The connection often closed by the default "time-to-alive", which was a few minutes. To improve the connectivity and reduce the number of connection, Kubernetes Informer is implemented. Internally, the nodescheduler.go handles Kubernetes events from the Informer.

Additionally, scheduler events that are sent to the cloud to inform users about Plugin execution are improved. The events include when a Kubernetes Pod for Plugin is created and when the Pod container finishes pulling container image. This detailed messages will provide better understanding on what is actually happening in the node.

@gemblerz
Copy link
Collaborator Author

TODO: This PR will be merged after finishing the implementation on Kubernetes Event parsing.

@gemblerz gemblerz merged commit fa04def into develop Feb 22, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

1 participant