Conversation
cli/command/formatter/service.go
Outdated
There was a problem hiding this comment.
Note: Constraints was misspelled here, and the extra - in the template on the line above caused the lines of text to get merged together. These problems are fixed here. Unfortunately it's not the first time I've noticed problems like this in the template. We should review it carefully.
7883d87 to
19c3a42
Compare
19c3a42 to
d0e79de
Compare
|
swarmkit PR was merged. No longer WIP. Changed the command line syntax from |
|
@aaronlehmann some test failures |
|
Fixed, sorry about that. |
This fix updates SwarmKit to ed384f3. Notable changes since last update (3ca4775): 1. Fix duplicated ports allocation with restarted swarm. (Docker issue moby#29247) 2. Topology-aware scheduling (Docker PR moby#30725) Docker issue moby#29247 was labeled 1.13.1, though it is advised that related SwarmKit changes only to be merged to master (based on the feedback moby/swarmkit#1802 (comment)) This fix fixes moby#29247 (master only). This fix is related to moby#30725. Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
51e819e to
5fb5563
Compare
|
Rebased. |
vdemeester
left a comment
There was a problem hiding this comment.
LGTM 🐸
/cc @thaJeztah @vieux
cli/command/service/opts.go
Outdated
5fb5563 to
53cb846
Compare
|
Thanks for the thoughtful response. This was my initial instinct, but using a comma-separated list has some serious disadvantages as well. See the discussion thread starting at moby/swarmkit#1512 (comment) where this was discussed, and the alternative of using a repeated flag was encouraged. |
|
Looks like this needs a rebase.
Yes we do, but Aaron noted that a change in order for most of those options is less significant than in this case. |
4b6c948 to
9e21a26
Compare
|
Rebased |
|
I do agree with UX consistency as well...
|
|
Then is there a consensus around calling it It's not my favorite outcome, but I don't see another way to move forward. |
|
Yes, I think that is the most consistent naming |
9e21a26 to
b262eee
Compare
This adds support for placement preferences in Swarm services. - Convert PlacementPreferences between GRPC API and HTTP API - Add --placement-pref, --placement-pref-add and --placement-pref-rm to CLI - Add support for placement preferences in service inspect --pretty - Add integration test Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
b262eee to
17288c6
Compare
|
Okay, I've updated this to use |
|
that's very cool, LGTM! |
|
@thaJeztah: Are you happy with the latest change to the CLI flags? |
thaJeztah
left a comment
There was a problem hiding this comment.
LGTM, new names for the flags work 👍
I see there's no man page yet for these commands, so I won't hold up this PR because of that (it's something to be addressed in general)
|
Is this supported when deploying services via docker-compose file yet? I can't seem to find any reference to it. |
|
I don't believe it is supported in compose yet. I just filed #32584 to track this. |
Topology-aware scheduling
This adds support for placement preferences in Swarm services (design doc: moby/swarmkit#1473, swarmkit PR: moby/swarmkit#1512). This feature allows services to be balanced over nodes based on a particular user-defined property, such as which datacenter or rack they are located in.
PlacementPreferencesbetween GRPC API and HTTP API--placement-pref-addand--placement-pref-rmto CLIservice inspect --prettycc @aluzzardi @dongluochen @dnephin