@@ -359,11 +359,11 @@ NUMA for use with MongoDB.
359359
360360#. Disable *zone reclaim* with one of the following commands:
361361
362- .. code-block:: sh
362+ .. code-block:: bash
363363
364364 echo 0 | sudo tee /proc/sys/vm/zone_reclaim_mode
365365
366- .. code-block:: sh
366+ .. code-block:: bash
367367
368368 sudo sysctl -w vm.zone_reclaim_mode=0
369369
@@ -372,7 +372,7 @@ NUMA for use with MongoDB.
372372 platform's init system. Run the following command to determine which
373373 init system is in use on your platform:
374374
375- .. code-block:: sh
375+ .. code-block:: bash
376376
377377 ps --no-headers -o comm 1
378378
@@ -405,42 +405,42 @@ NUMA for use with MongoDB.
405405
406406 #. Copy the default MongoDB service file:
407407
408- .. code-block:: sh
408+ .. code-block:: bash
409409
410410 sudo cp /lib/systemd/system/mongod.service /etc/systemd/system/
411411
412412 #. Edit the ``/etc/systemd/system/mongod.service`` file, and
413413 update the ``ExecStart`` statement to begin with:
414414
415- .. code-block:: sh
415+ .. code-block:: bash
416416
417417 /usr/bin/numactl --interleave=all
418418
419419 .. example::
420420
421421 If your existing ``ExecStart`` statement reads:
422422
423- .. code-block:: sh
423+ .. code-block:: bash
424424 :copyable: false
425425
426426 ExecStart=/usr/bin/mongod --config /etc/mongod.conf
427427
428428 Update that statement to read:
429429
430- .. code-block:: sh
430+ .. code-block:: bash
431431 :copyable: false
432432
433433 ExecStart=/usr/bin/numactl --interleave=all /usr/bin/mongod --config /etc/mongod.conf
434434
435435 #. Apply the change to ``systemd``:
436436
437- .. code-block:: sh
437+ .. code-block:: bash
438438
439439 sudo systemctl daemon-reload
440440
441441 #. Restart any running ``mongod`` instances:
442442
443- .. code-block:: sh
443+ .. code-block:: bash
444444
445445 sudo systemctl stop mongod
446446 sudo systemctl start mongod
@@ -464,7 +464,7 @@ NUMA for use with MongoDB.
464464 #. Configure each of your custom init scripts to start each
465465 MongoDB instance via ``numactl``:
466466
467- .. code-block:: sh
467+ .. code-block:: bash
468468
469469 numactl --interleave=all <path> <options>
470470
@@ -474,7 +474,7 @@ NUMA for use with MongoDB.
474474
475475 .. example::
476476
477- .. code-block:: sh
477+ .. code-block:: bash
478478 :copyable: false
479479
480480 numactl --interleave=all /usr/local/bin/mongod -f /etc/mongod.conf
@@ -702,14 +702,14 @@ example:
702702- On :abbr:`RHEL (Red Hat Enterprise Linux)` / CentOS, the following
703703 command updates the system-provided GNU C Library:
704704
705- .. code-block:: sh
705+ .. code-block:: bash
706706
707707 sudo yum update glibc
708708
709709- On Ubuntu / Debian, the following command updates the system-provided
710710 GNU C Library:
711711
712- .. code-block:: sh
712+ .. code-block:: bash
713713
714714 sudo apt-get install libc6
715715
@@ -762,21 +762,21 @@ minimum. As such you should set ``vm.swappiness`` to either ``1`` or
762762
763763- To check the current swappiness setting on your system, run:
764764
765- .. code-block:: sh
765+ .. code-block:: bash
766766
767767 cat /proc/sys/vm/swappiness
768768
769769- To change swappiness on your system:
770770
771771 #. Edit the ``/etc/sysctl.conf`` file and add the following line:
772772
773- .. code-block:: sh
773+ .. code-block:: bash
774774
775775 vm.swappiness = 1
776776
777777 #. Run the following command to apply the setting:
778778
779- .. code-block:: sh
779+ .. code-block:: bash
780780
781781 sudo sysctl -p
782782
@@ -865,7 +865,7 @@ Typically these messages do not require intervention; however, you can
865865use the following operations to determine the symbol versions that
866866:binary:`~bin.mongod` expects:
867867
868- .. code-block:: sh
868+ .. code-block:: bash
869869
870870 objdump -T <path to mongod>/mongod | grep " SSL_"
871871 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
882882name. Compare these values with the values returned by the following
883883operations to detect symbol version mismatches:
884884
885- .. code-block:: sh
885+ .. code-block:: bash
886886
887887 objdump -T <path to TLS/SSL libs>/libssl.so.1*
888888 objdump -T <path to TLS/SSL libs>/libcrypto.so.1*
0 commit comments