How to limit the number of service launched on one CoreOS node

54 views Asked by At

Here is my problem :

fleetctl list-units

UNIT                            MACHINE
[email protected]       X.Y.Z.86
[email protected]      X.Y.Z.150
[email protected]      X.Y.Z.48
[email protected]      X.Y.Z.48
[email protected]      X.Y.Z.48
[email protected]      X.Y.Z.86
[email protected]      X.Y.Z.82
[email protected]      X.Y.Z.48
[email protected]       X.Y.Z.248
[email protected]       X.Y.Z.48
[email protected]       X.Y.Z.85
[email protected]       X.Y.Z.48
[email protected]       X.Y.Z.48
[email protected]       X.Y.Z.48
[email protected]       X.Y.Z.87
[email protected]       X.Y.Z.248
[email protected]          X.Y.Z.248
[email protected]          X.Y.Z.222
[email protected]          X.Y.Z.87
[email protected]          X.Y.Z.150
[email protected]          X.Y.Z.82
[email protected]          X.Y.Z.85
[email protected]          X.Y.Z.48
[email protected]          X.Y.Z.86

The cluster is composed of ten machines. The worker-cache units needs a lot of calculation power so they exclude each other in the service file :

tail -2 [email protected]

[X-Fleet]
Conflicts=worker-cache@*

So we have only one worker-cache unit per node. The processing-nodes units need less power and can be spawned on the same machines as the worker-cache units but I would like to have maximum two of them per machines which is definitely not the case actually :

[email protected]      X.Y.Z.48
[email protected]      X.Y.Z.48
[email protected]      X.Y.Z.48
[email protected]      X.Y.Z.48
[email protected]       X.Y.Z.48
[email protected]       X.Y.Z.48
[email protected]       X.Y.Z.48
[email protected]       X.Y.Z.48

Is there a way to do that ?

0

There are 0 answers