Chapter 5. Tuning Satellite Server performance with predefined profiles
If your Satellite deployment includes a large number of hosts, you can use predefined tuning profiles to configure your Satellite Server to use the optimal amount of CPU cores and memory. This can help improve Satellite performance.
5.1. How predefined tuning profiles apply Copy linkLink copied to clipboard!
When you run the satellite-installer command with the --tuning option, deployment configuration settings from multiple sources are applied to Satellite in a specific order. This order defines the priority of these settings.
Satellite loads tuning configuration settings from the following sources:
- Custom Hiera settings
-
If you use custom Hiera settings on your Satellite Server, you can find them in the
/etc/foreman-installer/custom-hiera.yamlfile. - Predefined tuning profile
-
This is the profile that you select when running the
satellite-installercommand with the--tuningoption. The settings for these profiles are defined in the/usr/share/foreman-installer/config/foreman.hiera/tuning/sizes/directory. - Base tuning profile
-
The settings for this profile are defined in the
/usr/share/foreman-installer/config/foreman.hiera/tuning/common.yamlfile.
When merging these settings, Satellite applies them in the following order:
-
Custom settings in the
/etc/foreman-installer/custom-hiera.yamlfile override the settings in any predefined profile and the base profile. - Predefined profile settings override the settings in the base profile.
5.2. Predefined tuning profiles Copy linkLink copied to clipboard!
The following predefined tuning profiles are available in Satellite to right-size your Satellite Server based on the number of hosts your Satellite manages and available hardware resources.
The predefined tuning profiles are available in the /usr/share/foreman-installer/config/foreman.hiera/tuning/sizes directory. Each profile targets a managed-host range and minimum RAM and CPU cores.
| Tuning profile | Number of hosts | RAM | Number of CPU cores |
|---|---|---|---|
| default | 0 – 5000 | 20G | 4 |
| medium | 5001 – 10000 | 32G | 8 |
| large | 10001 – 20000 | 64G | 16 |
| extra-large | 20001 – 60000 | 128G | 32 |
| extra-extra-large | 60000+ | 256G | 48+ |
5.3. Applying a predefined tuning profile Copy linkLink copied to clipboard!
Run satellite-installer with the --tuning option to apply a profile. Choosing the right tuning profile helps your Satellite Server use its CPU cores and memory better.
You cannot use predefined tuning profiles on Capsule Servers.
Procedure
If you use a
custom-hiera.yamlfile on your Satellite Server, perform the following steps:Optional: Back up your
custom-hiera.yamlfile:# cp /etc/foreman-installer/custom-hiera.yaml \ /etc/foreman-installer/custom-hiera.original.yamlThis ensures you can restore the
custom-hiera.yamlfile to its original state if it becomes corrupted.-
Review the definitions of the base tuning profile in
/usr/share/foreman-installer/config/foreman.hiera/tuning/common.yamland the tuning profile that you want to apply in/usr/share/foreman-installer/config/foreman.hiera/tuning/sizes/. -
Compare the configuration entries against the entries in your
/etc/foreman-installer/custom-hiera.yamlfile. -
Remove any duplicated configuration settings that you find in
custom-hiera.yaml. This ensures the settings incustom-hiera.yamldo not override the settings in the base tuning profile and your chosen predefined tuning profile.
Apply the tuning profile:
# satellite-installer --tuning medium