602c4d42de
- Execute test groups in serial to make sure no more than 2 database instance are created at the same time. - Remove some unneccesary tests - Remove unneeded datastore, e.g. 'Test_Datastore_1' - Remove unsupported trovestack subcommands - Move unsupported DIB elements to the 'deprecated-elements' folder - Decrease default value of 'agent_call_high_timeout' to 5min - Add initial_deplay for pooling task - Use socket file to connect with database instead of using localhost IP Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
25 lines
637 B
Bash
Executable File
25 lines
637 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -e
|
|
set -o xtrace
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
|
|
mkdir -p /usr/share/mongodb
|
|
|
|
cat > /usr/share/mongodb/check-numa.sh << '_EOF_'
|
|
#!/bin/sh
|
|
# Handle NUMA access to CPUs (SERVER-3574)
|
|
# This verifies the existence of numactl as well as testing that the command works
|
|
# Then it generates an environment file for systemd
|
|
NUMACTL_ARGS="--interleave=all"
|
|
if which numactl >/dev/null 2>/dev/null && numactl $NUMACTL_ARGS ls / >/dev/null 2>/dev/null
|
|
then
|
|
echo -n NUMACTL="$(which numactl) $NUMACTL_ARGS" > /etc/numactl.env
|
|
else
|
|
echo -n NUMACTL="" > /etc/numactl.env
|
|
fi
|
|
_EOF_
|
|
|
|
chmod 755 /usr/share/mongodb/check-numa.sh
|