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

Reuse identical containers #44

Open
BenGalewsky opened this issue Jan 10, 2023 · 0 comments
Open

Reuse identical containers #44

BenGalewsky opened this issue Jan 10, 2023 · 0 comments

Comments

@BenGalewsky
Copy link
Contributor

As a container Service User I want to re-use identical containers so I can conserve resources

Assumptions

  1. FuncX web service will compute a hash of the container spec
  2. The hash will be done after some basic standardizations (sort the lists) - this will increase the likelihood of matching up identical containers
  3. The hash will be saved in the container table
  4. New container requests will have a hash computed. If the hash matches and the build status of that container is ready then just return the container UUID of the previous container request
  5. If no successful match is found, go ahead and pass the request on to the container service.

Acceptance Criteria

Given I have successfully build a container for a spec When I submit a container build request for a functionally identical spec Then the container service is not invoked And I receive the UUID of the previously built container

Given I have successfully build a container for a spec When I submit a container build request for a different spec Then the container service is invoked And I receive a new UUID for the new container

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

1 participant