Skip to content

Add missing deploy.limits.pids (from schema 3.9), deprecate pids_limit#214

Merged
ndeloof merged 1 commit intocompose-spec:masterfrom
thaJeztah:add_limits_pids
Dec 3, 2021
Merged

Add missing deploy.limits.pids (from schema 3.9), deprecate pids_limit#214
ndeloof merged 1 commit intocompose-spec:masterfrom
thaJeztah:add_limits_pids

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

@thaJeztah thaJeztah commented Dec 2, 2021

What this PR does / why we need it:

compose schema v3.9 added support for deploy.limits.pids (through docker/cli@851eeb9 (docker/cli#2503)), however, work on compose-spec was already in progress, which lead to changes from the 3.9 schema to not be included.

This patch adds the missing option and mars the services.{name}.pids_limit as deprecated, similar to comparable limit- and reservation options (services.{name}.cpus, services.{name}.mem_limit, services.{name}.mem_reservation.

relates to moby/moby#43056

compose schema v3.9 added support for `deploy.limits.pids` (through docker/cli@851eeb9),
however, work on compose-spec was already in progress, which lead to changes from
the 3.9 schema to not be included.

This patch adds the missing option and mars the `services.{name}.pids_limit` as
deprecated, similar to comparable limit- and reservation options (`services.{name}.cpus`,
`services.{name}.mem_limit`, `services.{name}.mem_reservation`.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@thaJeztah
Copy link
Copy Markdown
Member Author

/cc @ulyssessouza @ndeloof

Copy link
Copy Markdown
Collaborator

@EricHripko EricHripko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good ✅ Thank you for sorting this inconsistency out!

@ndeloof ndeloof merged commit e8db802 into compose-spec:master Dec 3, 2021
@ulgens
Copy link
Copy Markdown

ulgens commented Jun 25, 2022

@thaJeztah Quick irrelevant question:

compose schema v3.9 added support for

Where is this documented? I mean, I spent hours researching spec details and I couldn't find a single doc (except https://docs.docker.com/compose/compose-file/compose-file-v3/ which defines all versions as "legacy") about differences between different schema versions.

@EricHripko
Copy link
Copy Markdown
Collaborator

I believe Docker now includes the spec in their official docs 🤓

@ulgens
Copy link
Copy Markdown

ulgens commented Jul 24, 2022

@EricHripko As far as I remember it's been around for a while. The problem is it's not clear which spec is supported / implemented and what are the differences between different versions.

@EricHripko
Copy link
Copy Markdown
Collaborator

I agree with you 👍 We talked about having MDN-like badges or compatibility tables in the past but never actually gotten around to implementing that in the spec. I think it's something worth revisiting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants