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

Manage pool of flavors instead of destroying immediately after use #1

Open
itsjoekent opened this issue May 20, 2018 · 0 comments
Open

Comments

@itsjoekent
Copy link
Member

  • Define via environment variables how many flavors can be executed at once.
  • Maintain a stack of flavors, push flavors up to the top of the stack when they get hit. If a flavor reaches the bottom of the stack, destroy it.
  • Provide an asynchronous interface for the proxy module to find out what port a flavor is using

Open Questions

  • Concurrency, at what point do we spin up more instances of a flavor?
  • If we have a max of 10 active flavors, and all 10 of those are in the middle of a request, and an 11th request comes in, what should we do? (Queue the spin up?)
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