moby / moby/swarmkit

Proposal: Allow user to set own service defaults

Open
#2,794 3 comments 6 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Description
Currently service defaults are set on:
https://github.com/docker/swarmkit/blob/b6a4260bcd2c3e8550d6535c787fb7395f73af9c/api/defaults/service.go#L11-L41

but it would be very useful to be able set own Swarm wide defaults for placement, failure action, restart condition, etc...

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 api/defaults/service.go, especially the service defaults referenced in the issue, and trace where placement, failure action, and restart condition defaults are applied. Determine how Swarm-wide user configuration would fit the existing service API and verify that the requested defaults can be set consistently for new services.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend-api-design, distributed-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.