Merge lp:~nobuto/charms/trusty/ceph-osd/more-sysctl-default into lp:~openstack-charmers-archive/charms/trusty/ceph-osd/next

Proposed by Nobuto Murata
Status: Merged
Merged at revision: 37
Proposed branch: lp:~nobuto/charms/trusty/ceph-osd/more-sysctl-default
Merge into: lp:~openstack-charmers-archive/charms/trusty/ceph-osd/next
Diff against target: 23 lines (+6/-4)
1 file modified
config.yaml (+6/-4)
To merge this branch: bzr merge lp:~nobuto/charms/trusty/ceph-osd/more-sysctl-default
Reviewer Review Type Date Requested Status
Edward Hope-Morley Approve
Review via email: mp+249796@code.launchpad.net

Description of the change

In bug #1366598, sysctl support and kernel.pid_max=2097152 by default have been implemented. However it turned out that more sysctl default change is needed in some high density deployment, especially vm.max_map_count and kernel.threads-max.

This branch increases more sysctl values by default to allow 256k threads per process
and 2M threads in total.

Test case and results are available in:
https://bugs.launchpad.net/charms/+source/ceph/+bug/1420339/comments/1

To post a comment you must log in.
Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #1813 ceph-osd-next for nobuto mp249796
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/1813/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #2023 ceph-osd-next for nobuto mp249796
    LINT FAIL: lint-test failed
    LINT FAIL: charm-proof failed

LINT Results (max last 2 lines):
  I: config.yaml: option key has no default value
  make: *** [lint] Error 100

Full lint test output: http://paste.ubuntu.com/10253142/
Build: http://10.245.162.77:8080/job/charm_lint_check/2023/

39. By Nobuto Murata

update config.yaml description

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #1961 ceph-osd-next for nobuto mp249796
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/1961/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #1816 ceph-osd-next for nobuto mp249796
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/1816/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #2026 ceph-osd-next for nobuto mp249796
    LINT FAIL: lint-test failed
    LINT FAIL: charm-proof failed

LINT Results (max last 2 lines):
  I: config.yaml: option key has no default value
  make: *** [lint] Error 100

Full lint test output: http://paste.ubuntu.com/10253538/
Build: http://10.245.162.77:8080/job/charm_lint_check/2026/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #1964 ceph-osd-next for nobuto mp249796
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/1964/

40. By Nobuto Murata

fix lint warning

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_unit_test #1890 ceph-osd-next for nobuto mp249796
    UNIT OK: passed

Build: http://10.245.162.77:8080/job/charm_unit_test/1890/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_lint_check #2100 ceph-osd-next for nobuto mp249796
    LINT OK: passed

Build: http://10.245.162.77:8080/job/charm_lint_check/2100/

Revision history for this message
uosci-testing-bot (uosci-testing-bot) wrote :

charm_amulet_test #2001 ceph-osd-next for nobuto mp249796
    AMULET OK: passed

Build: http://10.245.162.77:8080/job/charm_amulet_test/2001/

Revision history for this message
Edward Hope-Morley (hopem) wrote :

This patch hopefully aligns these defaults and while it is mostly expected to benefit larger clusters, it is not expected to introduce any performance regressions for smaller clusters. I'll land this and it can sit in /next for a while so that people can use/test it.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'config.yaml'
2--- config.yaml 2015-01-16 10:56:36 +0000
3+++ config.yaml 2015-02-18 06:47:58 +0000
4@@ -123,13 +123,15 @@
5 your network interface.
6 sysctl:
7 type: string
8- default: '{ kernel.pid_max : 2097152 }'
9+ default: '{ kernel.pid_max : 2097152, vm.max_map_count : 524288, kernel.threads-max: 2097152 }'
10 description: |
11 YAML-formatted associative array of sysctl key/value pairs to be set
12- persistently. As a default we set pid_max to a high value to avoid
13- problems with large numbers (>20) of OSDs recovering. very large clusters
14- should set this value even higher (max 4194303).
15+ persistently. As a default we set pid_max, max_map_count and
16+ threads-max to a high value to avoid problems with large numbers (>20)
17+ of OSDs recovering. very large clusters should set those values even
18+ higher (max 4194303).
19 nagios_context:
20+ type: string
21 default: "juju"
22 description: |
23 Used by the nrpe-external-master subordinate charm.

Subscribers

People subscribed via source and target branches