@@ -359,11 +359,11 @@ NUMA for use with MongoDB.
359
359
360
360
#. Disable *zone reclaim* with one of the following commands:
361
361
362
- .. code-block:: sh
362
+ .. code-block:: bash
363
363
364
364
echo 0 | sudo tee /proc/sys/vm/zone_reclaim_mode
365
365
366
- .. code-block:: sh
366
+ .. code-block:: bash
367
367
368
368
sudo sysctl -w vm.zone_reclaim_mode=0
369
369
@@ -372,7 +372,7 @@ NUMA for use with MongoDB.
372
372
platform's init system. Run the following command to determine which
373
373
init system is in use on your platform:
374
374
375
- .. code-block:: sh
375
+ .. code-block:: bash
376
376
377
377
ps --no-headers -o comm 1
378
378
@@ -405,42 +405,42 @@ NUMA for use with MongoDB.
405
405
406
406
#. Copy the default MongoDB service file:
407
407
408
- .. code-block:: sh
408
+ .. code-block:: bash
409
409
410
410
sudo cp /lib/systemd/system/mongod.service /etc/systemd/system/
411
411
412
412
#. Edit the ``/etc/systemd/system/mongod.service`` file, and
413
413
update the ``ExecStart`` statement to begin with:
414
414
415
- .. code-block:: sh
415
+ .. code-block:: bash
416
416
417
417
/usr/bin/numactl --interleave=all
418
418
419
419
.. example::
420
420
421
421
If your existing ``ExecStart`` statement reads:
422
422
423
- .. code-block:: sh
423
+ .. code-block:: bash
424
424
:copyable: false
425
425
426
426
ExecStart=/usr/bin/mongod --config /etc/mongod.conf
427
427
428
428
Update that statement to read:
429
429
430
- .. code-block:: sh
430
+ .. code-block:: bash
431
431
:copyable: false
432
432
433
433
ExecStart=/usr/bin/numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf
434
434
435
435
#. Apply the change to ``systemd``:
436
436
437
- .. code-block:: sh
437
+ .. code-block:: bash
438
438
439
439
sudo systemctl daemon-reload
440
440
441
441
#. Restart any running ``mongod`` instances:
442
442
443
- .. code-block:: sh
443
+ .. code-block:: bash
444
444
445
445
sudo systemctl stop mongod
446
446
sudo systemctl start mongod
@@ -464,7 +464,7 @@ NUMA for use with MongoDB.
464
464
#. Configure each of your custom init scripts to start each
465
465
MongoDB instance via ``numactl``:
466
466
467
- .. code-block:: sh
467
+ .. code-block:: bash
468
468
469
469
numactl --interleave=all <path> <options>
470
470
@@ -474,7 +474,7 @@ NUMA for use with MongoDB.
474
474
475
475
.. example::
476
476
477
- .. code-block:: sh
477
+ .. code-block:: bash
478
478
:copyable: false
479
479
480
480
numactl --interleave=all /usr/local/bin/mongod -f /etc/mongod.conf
@@ -702,14 +702,14 @@ example:
702
702
- On :abbr:`RHEL (Red Hat Enterprise Linux)` / CentOS, the following
703
703
command updates the system-provided GNU C Library:
704
704
705
- .. code-block:: sh
705
+ .. code-block:: bash
706
706
707
707
sudo yum update glibc
708
708
709
709
- On Ubuntu / Debian, the following command updates the system-provided
710
710
GNU C Library:
711
711
712
- .. code-block:: sh
712
+ .. code-block:: bash
713
713
714
714
sudo apt-get install libc6
715
715
@@ -762,21 +762,21 @@ minimum. As such you should set ``vm.swappiness`` to either ``1`` or
762
762
763
763
- To check the current swappiness setting on your system, run:
764
764
765
- .. code-block:: sh
765
+ .. code-block:: bash
766
766
767
767
cat /proc/sys/vm/swappiness
768
768
769
769
- To change swappiness on your system:
770
770
771
771
#. Edit the ``/etc/sysctl.conf`` file and add the following line:
772
772
773
- .. code-block:: sh
773
+ .. code-block:: bash
774
774
775
775
vm.swappiness = 1
776
776
777
777
#. Run the following command to apply the setting:
778
778
779
- .. code-block:: sh
779
+ .. code-block:: bash
780
780
781
781
sudo sysctl -p
782
782
@@ -865,7 +865,7 @@ Typically these messages do not require intervention; however, you can
865
865
use the following operations to determine the symbol versions that
866
866
:binary:`~bin.mongod` expects:
867
867
868
- .. code-block:: sh
868
+ .. code-block:: bash
869
869
870
870
objdump -T <path to mongod>/mongod | grep " SSL_"
871
871
objdump -T <path to mongod>/mongod | grep " CRYPTO_"
@@ -882,7 +882,7 @@ The last two strings in this output are the symbol version and symbol
882
882
name. Compare these values with the values returned by the following
883
883
operations to detect symbol version mismatches:
884
884
885
- .. code-block:: sh
885
+ .. code-block:: bash
886
886
887
887
objdump -T <path to TLS/SSL libs>/libssl.so.1*
888
888
objdump -T <path to TLS/SSL libs>/libcrypto.so.1*
0 commit comments