Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Commit 2fc4f38

Browse files
wuqixuanDongsu Park
wuqixuan
authored and
Dongsu Park
committed
Documentation: Support conflict in global unit
In global unit, support Conflict flag. So in some machine, the unit will not be launched. Fixes #1109
1 parent 4e89bc4 commit 2fc4f38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/unit-files-and-scheduling.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Note that these requirements are derived directly from systemd, with the only ex
2222
| `MachineOf` | Limit eligible machines to the one that hosts a specific unit. |
2323
| `MachineMetadata` | Limit eligible machines to those with this specific metadata. |
2424
| `Conflicts` | Prevent a unit from being collocated with other units using glob-matching on the other unit names. |
25-
| `Global` | Schedule this unit on all agents in the cluster. A unit is considered invalid if options other than `MachineMetadata` are provided alongside `Global=true`. |
25+
| `Global` | Schedule this unit on those agents in the cluster, which satisfy the conditions of both `MachineMetadata` and `Conflicts` if any of them is also given. A unit is considered invalid if options other than `MachineMetadata` and `Conflicts` are provided alongside `Global=true`. If `MachineMetadata` is provided alongside `Global=true`, only the agents having the metadata can be scheduled on. If `Conflicts` is provided alongside `Global=true`, only the agents not having the conflicting units can be scheduled on. The conflicting units also can not be scheduled on the agents which already have the existing conflicting global unit.|
2626
| `Replaces` | Schedule a specified unit on another machine. A unit is considered invalid if options `Global` or `Conflicts` are provided alongside `Replaces=`. A circular replacement between multiple units is not allowed. |
2727

2828
See [more information][unit-scheduling] on these parameters and how they impact scheduling decisions.

0 commit comments

Comments
 (0)