Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to toggle count behavior #1423

Closed
jshaw86 opened this issue Jul 13, 2016 · 3 comments
Closed

Be able to toggle count behavior #1423

jshaw86 opened this issue Jul 13, 2016 · 3 comments

Comments

@jshaw86
Copy link

jshaw86 commented Jul 13, 2016

We would like to have the ability to schedule a task group per DC rather than across DC.

Consider the below JobSpec, rather than scheduling event_handler_1 across region1 and region2 for a total of 3 instances nomad would schedule 3 event_handler_1's per region for a total of 6 instances.

{
"Job" : { 
             "Region": "region1",
             "ID": 1,
             "Name": 1,
             "Type": "service",
             "Priority": 50,
             "AllAtOnce": False,
             "Datacenters": ["dc1","dc2"],
             "TaskGroups": [
                   { "Name": "event_handler_1",
                     "Count": 3,
                     "Constraints": None,
                     "Tasks": [ { "Name": "event_handler",
                                         "Driver": "exec",
                                         "User": "",
                                         "Config": { "command": "/usr/bin/start.sh" },
                                         "Constraints": None,
                                         "Env": { "HOME": "/usr/lib/service1" },
                                         "Services": [ { "Id": "",
                                                                 "Name": "service1",
                                                                 "Tags": tags,
                                                                 "PortLabel": "http",
                                                                 "Checks": [] } ]
                                       } ]
             }]
           ....
         }
}
@DBuret
Copy link

DBuret commented May 29, 2017

Hi,

We are evaluating nomad. We want to spread the tasks of a given job over 2 datacenters in order to insure business continuity (our DCs are not so far away so that's the same 'region' if you look at network-latency)

this #1423 request could solve our need.
#1387 may add a new constraint (spread-over-dc ?)
The thread at #1990 seems to also seek the same goal.

I'm with Hashicorp when they state that bin packing is the way to go, but the spreading per DC and/or regions would be usefull for many people.

managing on nomad job per DC could work, but adds uneeded complexity

thanks.

@tgross
Copy link
Member

tgross commented Mar 3, 2021

Doing a bit of issue cleanup here... this use case is currently covered by the multiregion feature of Nomad Enterprise.

@tgross tgross closed this as completed Mar 3, 2021
@github-actions
Copy link

I'm going to lock this issue because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants