moby / moby/swarmkit

can Swarmkit support service affinity or exclusion?

Open
#1,442 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

area/orchestration kind/question
Dominant language
Go
Stars
3.7k
Forks
676
Avg merge
4d 9h
Merged PRs (30d)
6

Description

Hi, All,

Like the title.

When we experience swarm mode in docker 1.12. We found it is really important for us to schedule service. Here we have some need that different services should be scheduled to different nodes.

In another word, can swarmkit schedule a service ServiceA to node without ServiceB?

Thanks in Advance.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Swarmkit's task-scheduling subsystem and review how service placement constraints are currently represented and evaluated. Determine whether service affinity or exclusion requires a new scheduling concept or can use existing constraints. Done means a defined behavior for placing ServiceA away from nodes running ServiceB, with tests covering the requested scheduling relationship.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.