[library] Set correct sysctl vm.swappiness parameter for deployed nodes

Bug #1413702 reported by Miroslav Anashkin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Bartłomiej Piotrowski
5.1.x
Fix Committed
High
Bartłomiej Piotrowski
6.0.x
Fix Committed
High
Bartłomiej Piotrowski
6.1.x
Fix Released
High
Bartłomiej Piotrowski

Bug Description

Currently we leave sysctl vm.swappiness parameter value as is - 60% by default.

For controllers and nodes running databases (Mongo, Zabbix) default value is incorrect.
Recommended is sysctl vm.swappiness=10
It prevents swapping when about 60% of RAM is free.

Additionally, this parameter may be reduced for all the other nodes as well.
We do not use and do not recommend load, which may result in swapping. And we better avoid swapping as much as possible.

For high performance multiple CPU socket systems setting this parameter to 5-10 is even more important, since the amount of free RAM and swapping is going based not on total RAM available but on per-socket plugged in RAM amount (per NUMA node RAM size).

Symptoms are unexpected RabbitMQ or MySQL slowdowns, broken and timed-out connections on the very high end systems with a lot of free resources..

Revision history for this message
Miroslav Anashkin (manashkin) wrote :

I would like to thank the author of this blog, who found this bug first.
http://championofcyrodiil.blogspot.ru/2015/01/rabbitmq-handshaketimeout.html

Workaround is to set proper vm.swappiness value manually on every deployed node.
This setting is recommended for every OpenStack node and version.

description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/149534

Changed in fuel:
assignee: Fuel Library Team (fuel-library) → Bartlomiej Piotrowski (bpiotrowski)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/149534
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=893bf1de12c4aa65709c056cb72267665df806cd
Submitter: Jenkins
Branch: master

commit 893bf1de12c4aa65709c056cb72267665df806cd
Author: Bartłomiej Piotrowski <email address hidden>
Date: Fri Jan 23 09:37:01 2015 +0100

    Lower vm.swappiness parameter to 10 on controller nodes

    The default value 60 might cause unneccessary swapping to disk,
    resulting in delays in request to the APIs and general RabbitMQ
    or MySQL slugishness.

    Change-Id: I43cdf4ce049eeb2a032dae425c5254535475d63f
    Closes-Bug: 1413702

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified on ISO #92

"build_id": "2015-02-01_22-55-01", "ostf_sha": "c9100263140008abfcc2704732e98fbdfd644068", "build_number": "92", "release_versions": {"2014.2-6.1": {"VERSION": {"build_id": "2015-02-01_22-55-01", "ostf_sha": "c9100263140008abfcc2704732e98fbdfd644068", "build_number": "92", "api": "1.0", "nailgun_sha": "c0932eb5c2aa7fd1e13a999cb1b4bf5aff101c3b", "production": "docker", "python-fuelclient_sha": "2ea7b3e91c1d2ff85110bf5abb161a6f4e537358", "astute_sha": "ed5270bf9c6c1234797e00bd7d4dd3213253a413", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "c5e4a0410ba66f9e9911f62b3b71c0b9c29aed6e"}}}, "auth_required": true, "api": "1.0", "nailgun_sha": "c0932eb5c2aa7fd1e13a999cb1b4bf5aff101c3b", "production": "docker", "python-fuelclient_sha": "2ea7b3e91c1d2ff85110bf5abb161a6f4e537358", "astute_sha": "ed5270bf9c6c1234797e00bd7d4dd3213253a413", "feature_groups": ["mirantis"], "release": "6.1", "fuelmain_sha": "", "fuellib_sha": "c5e4a0410ba66f9e9911f62b3b71c0b9c29aed6e"

On controllers:
vm.swappiness = 10

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/6.0)

Fix proposed to branch: stable/6.0
Review: https://review.openstack.org/152452

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.1)

Fix proposed to branch: stable/5.1
Review: https://review.openstack.org/152453

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/6.0)

Reviewed: https://review.openstack.org/152452
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=95b44c9b6e385df8c8f7fabb21b3ee993730cf6c
Submitter: Jenkins
Branch: stable/6.0

commit 95b44c9b6e385df8c8f7fabb21b3ee993730cf6c
Author: Bartłomiej Piotrowski <email address hidden>
Date: Fri Jan 23 09:37:01 2015 +0100

    Lower vm.swappiness parameter to 10 on controller nodes

    The default value 60 might cause unneccessary swapping to disk,
    resulting in delays in request to the APIs and general RabbitMQ
    or MySQL slugishness.

    Change-Id: I43cdf4ce049eeb2a032dae425c5254535475d63f
    Closes-Bug: 1413702
    (cherry picked from commit 893bf1de12c4aa65709c056cb72267665df806cd)

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (stable/5.1)

Reviewed: https://review.openstack.org/152453
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=f05cf1f2d8275e63fcc3c2ef6ca10ccc114bb927
Submitter: Jenkins
Branch: stable/5.1

commit f05cf1f2d8275e63fcc3c2ef6ca10ccc114bb927
Author: Bartłomiej Piotrowski <email address hidden>
Date: Fri Jan 23 09:37:01 2015 +0100

    Lower vm.swappiness parameter to 10 on controller nodes

    The default value 60 might cause unneccessary swapping to disk,
    resulting in delays in request to the APIs and general RabbitMQ
    or MySQL slugishness.

    Change-Id: I43cdf4ce049eeb2a032dae425c5254535475d63f
    Closes-Bug: 1413702
    (cherry picked from commit 893bf1de12c4aa65709c056cb72267665df806cd)

tags: added: release-notes
tags: added: release-notes-done
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to fuel-docs (stable/6.1)

Related fix proposed to branch: stable/6.1
Review: https://review.openstack.org/194961

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix merged to fuel-docs (stable/6.1)
Download full text (45.4 KiB)

Reviewed: https://review.openstack.org/194961
Committed: https://git.openstack.org/cgit/stackforge/fuel-docs/commit/?id=0e26e7d7cc153d179ec34985645dd23cdd239ddb
Submitter: Jenkins
Branch: stable/6.1

commit 5cc5f0c643aebecaf3bf4580535a3ea7c3334a6c
Author: Mike Scherbakov <email address hidden>
Date: Tue Jun 23 13:43:35 2015 -0700

    Removed streamlined patching backend pieces

    Change-Id: I955e76ccdbd12a9145f4e9b689f80bdf9fcaf929

commit 563c4b5c78ebfcb1f4f91047c2919f6270f9a1d4
Author: Mike Scherbakov <email address hidden>
Date: Tue Jun 23 13:30:30 2015 -0700

    Removed outdated patching guide

    Change-Id: I76180c277789ade9c5ebedd19fe2092847c0b7d9

commit 8d120c14bec1ab41d448683ad146a3053a57c4ee
Author: Irina Povolotskaya <email address hidden>
Date: Tue Jun 23 19:59:11 2015 +0300

    Add dual hypervisor ref arch into 6.1 docs

    Change-Id: I900c24c9de878eafadbfc995aa879b7f55737fac

commit feebd1592d3305b64bbdfd0bc5fe108190aef120
Author: OlgaGusarenko <email address hidden>
Date: Tue Jun 23 18:38:17 2015 +0300

    [OPs guide] Running Ceilometer section edits

    1. conf file extract is updated
    2. note is updated

    Closes-bug: 1467817
    Change-Id: I0217e164108e0ba6c1397045a5e57d13ff429223

commit 44a93f9dead7511a3461ec35248dbb689c81eafd
Author: OlgaGusarenko <email address hidden>
Date: Tue Jun 23 18:04:40 2015 +0300

    [RN6_1] Final changes

    1. capitalization
    2. 2014.2 to 2014.2.2
    3. general improvements

    Change-Id: I45057e90c90550559f66bc67ccdf97a559fd9000

commit bb41389cae58084285688853281516b659686422
Author: evkonstantinov <email address hidden>
Date: Tue Jun 23 16:45:35 2015 +0300

    Update patching decription

    Update patching description with
    the standard Linux commands.

    Change-Id: Ia1a8346639c468fdfce15a11d2430bf3a4731244

commit bf3018fae3f2e564413d33aba6cdebf8868f0b4e
Author: OlgaGusarenko <email address hidden>
Date: Tue Jun 23 15:55:49 2015 +0300

    [RN6_1] Clean up

    1. Rearranges sections
    2. Improves RST
    3. Changes titles order

    Change-Id: I6110bf515667d3d6ba08ad35ff5d593dbc96641e

commit 1c7e4457808e8f2d6c56fdf31252170972e444b9
Author: Maria Zlatkova <email address hidden>
Date: Tue Jun 23 15:26:28 2015 +0300

    Replaces VBOX screenshots

    This patch:
    - replaces VBOX screenshots
    - changes the link for Download Mirantis VirtualBox scripts
     to https://docs.mirantis.com/openstack/fuel/fuel-master/#downloads

    Change-Id: I58dede960c5c3355d39b07ff44b757403f6af02c
    Closes-Bug: #1467872

commit 0a568bf53fc0e25d1d692d5d74b4a7b4d983bbcc
Author: evkonstantinov <email address hidden>
Date: Tue Jun 23 14:01:55 2015 +0300

    6.1 --separate repos

    change wording and add links to the
    separate repos feature.

    Change-Id: Ib5d0778a0d8f1534f79ed2f553574cb69a3150b0

commit 95a188b21cbdd064d92696b7920e6a0105fe0c56
Author: Maria Zlatkova <email address hidden>
Date: Tue Jun 23 12:07:28 2015 +0300

    Corrects the output 'pcs status'

    Changes the example outputs to appropriate ones.

    Change-Id: Ib6d83...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.