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

Parallelise the request to the vcenters #7

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

fwiesel
Copy link
Member

@fwiesel fwiesel commented Jul 16, 2021

Main motivation is to hide the latency when testing locally over VPN, but might also slightly improve the scalability in production.

fwiesel added 9 commits July 15, 2021 16:48
Previously the code was generated on the fly,
which couples the discovery tightly with the generation
This moves all the template/yaml to the phelm module.
Hopefully it is more encapsulated that way
This way, we manage a state per vcenter, and if a vcenter 'disappears',
we do not modify the state, unless the vcenter becomes empty
There is no need for a queue of the state,
and we can move the exception-handling in one place
Previously the poll loop contained more logic,
by moving it to different functions it is easier to parallelise
With the increased number of vcenters, getting the data from them
takes a increasingly longer time.
By parallelising this part, we can at least reduce the waiting time
for I/O
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.

1 participant