Skip to content
This repository has been archived by the owner on Oct 11, 2021. It is now read-only.

Use pre-baked AMIs with installed packages and scripts #34

Open
villasv opened this issue Oct 29, 2017 · 5 comments
Open

Use pre-baked AMIs with installed packages and scripts #34

villasv opened this issue Oct 29, 2017 · 5 comments

Comments

@villasv
Copy link
Owner

villasv commented Oct 29, 2017

This would improve two aspects: initialization times and code reuse (worker, scheduler and interface can be identical images).

@villasv villasv added this to Todo in Turbine Board Nov 27, 2017
@villasv villasv moved this from Todo to Doing in Turbine Board Jan 3, 2018
@villasv
Copy link
Owner Author

villasv commented Jan 3, 2018

It is so tempting to dive into this. On the other hand, auto-scaling of Celery workers is not as shiny as in other domains like microservices. In fact, nowadays this seems the least relevant feature of this stack. Initialization times are always best when minimal, but are not really important.

The best motivator would be code reuse. It really is cumbersome to maintain three almost identical launch configurations. I believe that reusing the launch configuration is not enough of a motivator to a radical approach such as containers.

@villasv
Copy link
Owner Author

villasv commented Jan 3, 2018

Code reuse can be achieved with this trick, so I don't intend to go on with images.

@villasv villasv closed this as completed Jan 3, 2018
@villasv villasv removed this from Doing in Turbine Board Jan 3, 2018
@villasv villasv reopened this Mar 6, 2018
@villasv
Copy link
Owner Author

villasv commented Mar 6, 2018

Reopening since Fargate makes adopting containers even more attractive (no EC2 left to manage). But I wonder if it's worth the wait for EKS to be GA and battle tested.

@villasv
Copy link
Owner Author

villasv commented Nov 12, 2018

A year has passed, a decision must be taken. My opinion today is basically the same: it would be awesome.

But there are other areas I need to improve first. After many months of stalemate, I've decided to stick with EC2 until every other important aspect is polished and only then consider a RFC with pre-baked AMIs and maybe another RFC with containers.

@villasv villasv closed this as completed Nov 12, 2018
@villasv villasv moved this from Doing to Done in Turbine Board Nov 12, 2018
@villasv villasv added this to the Amazonic Art milestone Nov 22, 2018
@villasv villasv added the wontfix label Mar 1, 2019
@villasv
Copy link
Owner Author

villasv commented Apr 6, 2020

After discussion on #166 I've decided to revive this issue. The WaitCondition shared metadata trick is no longer viable, the scripts were immense and were moved out of the tamplate to a shell script.

Yet another year has passed (since this was closed), and the areas I needed to improve are now better polished.

@villasv villasv reopened this Apr 6, 2020
@villasv villasv moved this from Done to Backlog in Turbine Board Apr 6, 2020
@villasv villasv removed this from the Amazonic Art milestone Apr 6, 2020
@villasv villasv changed the title Using pre-baked AMIs or Containers Use pre-baked AMIs with installed packages and scripts Apr 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Turbine Board
  
Backlog
Development

No branches or pull requests

1 participant