sablierapp / sablier

Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
https://sablierapp.dev/
GNU Affero General Public License v3.0
1.41k stars 46 forks source link

Configure scale number for Swarm service #28

Open scook12 opened 2 years ago

scook12 commented 2 years ago

Hi, thanks for this plugin!

Is it possible to configure the number of containers to scale in a docker swarm service? For example, upon receiving the first request, I know a lot of other requests will follow and want to scale to 20 replicas as opposed to just one.

acouvreur commented 2 years ago

It's only supported by Kubernetes right now. It should be easy to implement on swarm though.

Do you think that the service name should container the number of replicas ? Such as minecreaft-server_2 ?

Or should this be an other property ?

I think that we should go with the first option as this is how the Kubernetes scaling is implemented today. And it also gives us more flexibility if we want to start a group of containers with different replicas.

github-actions[bot] commented 8 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

acouvreur commented 8 months ago

Will be part of the new features in the project rewrite

github-actions[bot] commented 7 months ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days.

acouvreur commented 7 months ago

Unstale, issues will now be considered stale after a much longer peeiod of time