docs/getting-started/_common/system-configuration-index.rst
System configuration steps are performed automatically by the ScyllaDB RPM and deb packages. For information on getting started with ScyllaDB, see :doc:Getting Started </getting-started/index>.
All ScyllaDB AMIs and Docker images are pre-configured by a script with the following steps. This document is provided as a reference.
.. _system-configuration-files-and-scripts:
Several system configuration settings should be applied. For ease of use, the necessary scripts and configuration files are provided. Files are under :code:dist/common and :code:seastar/scripts in the ScyllaDB source code and installed in the appropriate system locations. (For information on ScyllaDB’s own configuration file, see ScyllaDB Configuration.)
.. list-table:: System Configuration Files :widths: 50 50 :header-rows: 1
scylla_coredump_setup, below)scylla_save_coredump script.. _system-configuration-scripts:
The following scripts are available for you to run for configuring ScyllaDB. Some of these scripts are included in the scylla_setup script. This script is used for configuring ScyllaDB the first time, or when the system hardware changes.
.. list-table:: ScyllaDB Setup Scripts :widths: 40 60 :header-rows: 1
.. list-table:: ScyllaDB Scripts (Not included with ScyllaDB-Setup) :widths: 40 60 :header-rows: 1
fstrim, which cleans up unused blocks of data from your SSD storage device. It runs automatically if you run scylla_fstrim_set up (see below).fstrim runs automatically... _note-io:
.. include:: /getting-started/_common/note-io.rst
If ScyllaDB is installed on an Amazon AMI, the bootloader should provide the :code:clocksource=tsc and :code:tsc=reliable options. This enables an accurate, high-resolution Time Stamp Counter (TSC) <https://software.intel.com/en-us/blogs/2013/06/20/eliminate-the-dreaded-clocksource-is-unstable-message-switch-to-tsc-for-a-stable>_ for setting the system time.
This configuration is provided in the file :code:/usr/lib/scylla/scylla_bootparam_setup.
Remove the :code:apport-noui or :code:abrt packages if present, and set up a location and file name pattern for core dumps.
This configuration is provided in the file :code:/usr/lib/scylla/scylla_bootparam_setup.
It is highly recommended to enforce time synchronization between ScyllaDB servers.
Run :code:ntpstat on all nodes to check that system time is synchronized. If you are running in a virtualized environment and your system time is set on the host, you may not need to run NTP on the guest. Check the documentation for your platform.
If you have your own time servers shared with an application using ScyllaDB, use the same NTP configuration as for your application servers. The script :code:/usr/lib/scylla/scylla_ntp_setup provides sensible defaults, using Amazon NTP servers if installed on the Amazon cloud, and other pool NTP servers otherwise.
Setting the file system to XFS is the most important and mandatory for production. ScyllaDB will significantly slow down without it.
The script :code:/usr/lib/scylla/scylla_raid_setup performs the necessary RAID configuration and XFS filesystem creation for ScyllaDB.
Arguments to the script are
-d specify disks for RAID-r MD device name for RAID-u update /etc/fstab for RAIDOn the ScyllaDB AMI, the RAID configuration is handled automatically in the :code:/usr/lib/scylla/scylla_prepare script.
When installing ScyllaDB, it is highly recommended to use the :doc:scylla_setup </getting-started/system-configuration> script.
ScyllaDB should not share CPUs with any CPU consuming process. In addition, when running ScyllaDB on AWS, we recommend pinning all NIC IRQs to CPU0 (due to the same reason). As a result, ScyllaDB should be prevented from running on CPU0 and its hyper-threading siblings. To verify that ScyllaDB is pinning CPU0, use the command below:
If the node has four or fewer CPUs, don't use this option.
To verify:
.. code-block:: shell
cat /etc/scylla.d/cpuset.conf
Example output:
.. code-block:: shell
--cpuset 1-15,17-31
To configure networking, we recommend running the perftune.py script with
the following parameters:
--tune net--nic <your network interface name>See :doc:Seastar Perftune </operating-scylla/admin-tools/perftune> for details.
Configuration for ScyllaDB itself is in the :ref:ScyllaDB Configuration <admin-scylla-configuration> section of the administration guide.
The following item is not required in production.
When working on DPDK support for ScyllaDB, enable hugepages.
.. code-block:: shell
NR_HUGEPAGES=128 mount -t hugetlbfs -o pagesize=2097152 none /mnt/huge mount -t hugetlbfs -o pagesize=2097152 none /dev/hugepages/ for n in /sys/devices/system/node/node?; do echo $NR_HUGEPAGES > $n/hugepages/hugepages-2048kB/nr_hugepages; done
Huge page configuration is written to :code:/etc/sysconfig/scylla-server by the script :code:/usr/lib/scylla/sysconfig_setup
:doc:System Limits </kb/system-limits> - outlines the system limits which should be set or removed.
.. include:: /rst_include/advance-index.rst