72c4ba04c8
Changes to add support for mongodb for xenial to trove/integration. The schema is the same proposed by Doug Shelley in the initial work, splitting trusty and xenial. - bumped version to 3.2.11 - conversion of upstart files in systemd unit files for mongod and mongos - added oneshot systemd unit file for Transparent Huge Pages - added script to check if numactl is used by the system and oneshot systemd unit file that will generate an environment file for mongod systemd service Change-Id: Ie6492b24f6803b35d929b499cfb7716e28bebfaa Depends-On: I8e1de6ef31f969ccee88c334a0d5ed03aabd1b51
24 lines
599 B
Bash
Executable File
24 lines
599 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
cat > /lib/systemd/system/disable_transparent_huge_pages.service << '_EOF_'
|
|
[Unit]
|
|
Description=Disable Transparent Huge Pages
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
ExecStart=/usr/bin/sh -c "/usr/bin/echo "never" | tee /sys/kernel/mm/transparent_hugepage/enabled"
|
|
ExecStart=/usr/bin/sh -c "/usr/bin/echo "never" | tee /sys/kernel/mm/transparent_hugepage/defrag"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
_EOF_
|
|
|
|
systemctl daemon-reload
|
|
systemctl enable disable_transparent_huge_pages.service
|
|
systemctl start disable-transparent-huge-pages.service
|