Bug 1976920

Summary: [cee/sd][RFE][cephadm] Add support to customize <daemon>-container cpu limit in cephadm
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Tomas Petr <tpetr>
Component: CephadmAssignee: Adam King <adking>
Status: CLOSED ERRATA QA Contact: Manasa <mgowri>
Severity: high Docs Contact: Ranjini M N <rmandyam>
Priority: high    
Version: 5.0CC: adking, ddomingu, dparkes, dsavinea, flucifre, gjose, gsitlani, mgowri, mmuench, nravinas, rmandyam, tserlin, vereddy, vumrao
Target Milestone: ---Keywords: FutureFeature, Regression
Target Release: 5.1   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-16.2.7-92.el8cp Doc Type: Enhancement
Doc Text:
.Users can now specify CPU limits for the daemons by service With this release, you can customize the CPU limits for all daemons within any given service by adding the CPU limit to the service specification file via the extra_container_args field. .Example ---- service_type: mon service_name: mon placement: hosts: - host01 - host02 - host03 extra_container_args: - "--cpus=2" service_type: osd service_id: osd_example placement: hosts: - host01 extra_container_args: - "--cpus=2" spec: data_devices: paths: - /dev/sdb ----
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-04-04 10:21:14 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2031073    

Description Tomas Petr 2021-06-28 14:42:55 UTC
Description of problem:
ceph-ansible allowed customization of CPU limits for containerized daemons per each type (so you could have different setting for MON, OSD, MGR, etc)

cephadm should offer same option.

Version-Release number of selected component (if applicable):
RHCS 5

How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 RHEL Program Management 2021-06-28 14:43:04 UTC
Please specify the severity of this bug. Severity is defined here:
https://bugzilla.redhat.com/page.cgi?id=fields.html#bug_severity.

Comment 4 Sebastian Wagner 2021-09-02 15:32:11 UTC
Maybe combining those might be a feasible workaround:

* https://docs.podman.io/en/latest/markdown/podman-run.1.html#cpu-quota-limit
* https://github.com/ceph/ceph/pull/42671

Comment 6 Federico Lucifredi 2021-12-02 14:55:10 UTC
This should be assigned to target = 5.3 when created.

Comment 36 errata-xmlrpc 2022-04-04 10:21:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: Red Hat Ceph Storage 5.1 Security, Enhancement, and Bug Fix update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:1174