How to disable scaling of service

Hello

is it possible to disable scaling of services? Some services are not ready for scaling or it makes no sense in certain configurations. It would be nice to have way to deny scaling and disable that Scale up + button in UI.

I have read Prevent service from scaling but I think it is different use-case.

For example setting up MySQL to replicate requires extra work than just setting scale to 2. So it makes no sense to allow my team to scale it.

There is no way to disable scaling of a service, but as described in the thread that you linked, the currently only guaranteed way is to create a standalone container and use selectors to have it linked to other services.

I’ve created a github issue to track this concept.

1 Like