[SERVER-7268] Add numactl to upstart scripts Created: 05/Oct/12  Updated: 18/Jan/17  Resolved: 10/Mar/14

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: 2.2.0
Fix Version/s: 2.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Andre de Frere Assignee: Ernie Hershey
Resolution: Done Votes: 3
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-6008 numactl in debian init script seems t... Closed
related to SERVER-10190 Upstart configuration fails to start ... Closed
is related to SERVER-27587 mongod.service does not disable NUMA Closed
is related to SERVER-3574 add numactl to init scripts Closed
Backwards Compatibility: Fully Compatible
Operating System: Linux
Participants:

 Description   

Changes in SERVER-3574 have added numactl to init.d scripts, but those changes do not appear to be reflected in upstart scripts for ubuntu. Checked both the package and github.

Prior google groups thread on the subject have resulted in the following code to replace start_server() in /etc/init.d/mongodb

start_server() {
# check for numactl
NUMACTL=$(which numactl)
if [ -n "$NUMACTL" ]; then
    DAEMON_OPTS="--interleave=all ${DAEMON} ${DAEMON_OPTS}"
    DAEMON="$NUMACTL"
fi
 
# Start the process using the wrapper
            /usr/bin/numactl --interleave=all -- \
            start-stop-daemon --background --start --quiet --pidfile $PIDFILE \
                        --make-pidfile --chuid $DAEMONUSER \
                        --exec $DAEMON -- $DAEMON_OPTS
            errcode=$?
        return $errcode
}



 Comments   
Comment by Githook User [ 10/Mar/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-7268 Add numactl to upstart script

This is almost identical to the numactl logic in our
Debian init script and similar to the logic in the RPM
init script.
Branch: master
https://github.com/mongodb/mongo/commit/1beb3d92996d658e5612aec1b68fbcbe7e7ac4a9

Comment by Githook User [ 10/Mar/14 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-7268 Add numactl to upstart script

This is almost identical to the numactl logic in our
Debian init script and similar to the logic in the RPM
init script.
Branch: SERVER-7268
https://github.com/mongodb/mongo/commit/1beb3d92996d658e5612aec1b68fbcbe7e7ac4a9

Comment by Guilhem Lettron [ 16/Jul/13 ]

https://github.com/mongodb/mongo/pull/454

Generated at Thu Feb 08 03:14:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.