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

Async deployment of manifests with kad #53

Merged
merged 6 commits into from
Nov 16, 2023

Conversation

vasilvas99
Copy link
Contributor

KAD right now loads each manifest, creates the container, waits for the creation to finish and starts the container (again waiting for the container to be brought up) before moving to the next one. This unnecessary since we don't care about start-up order.

This PR makes KAD truly async. Only sync part is the moment where the "/*.json" glob is resolved and then all found manifest are processed asynchronously using a join_all on the generated futures from the deploy() function.

This async behavior is even visible in the logs:
image

With this modification the initial deployment is much faster as slow-to-deploy containers are not bottle-necking the whole process

Copy link
Contributor

@stlachev stlachev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@stlachev stlachev merged commit 4c9963a into eclipse-leda:main Nov 16, 2023
1 check passed
@stlachev stlachev deleted the async-kad branch November 16, 2023 07:54
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.

2 participants