cds icon indicating copy to clipboard operation
cds copied to clipboard

New Requirement Label & Worker restriction

Open yesnault opened this issue 6 years ago • 2 comments

example: User add a label foo on Job Requirement User run a worker with worker --restriction=label:foo --restriction=binary:go

cc @gwleclerc

yesnault avatar Jan 08 '18 16:01 yesnault

i don't understand the use case ? @gwleclerc have you got some details ?

fsamin avatar Jan 08 '18 17:01 fsamin

Hi, I can provide with one. We are running CDS hatcheries on a multiple kubernetes clusters in AWS across regions. Some of the jobs can run in any of the regions but some of the jobs we prefer to run in a specific region. Today we need to define groups for that. We prefer to manage it using labels and have it more flexible. Also, I think it makes job dispatching more powerful. You can look at Nomad's affinity feature which allows you to route jobs to different workers based on conditions https://www.nomadproject.io/docs/job-specification/affinity.html

doron-cohen avatar May 14 '19 15:05 doron-cohen