Warning description for autotune config.

Change-Id: Ieaccc18a39d018d120ae8bd6ee62b97f30d90e41
Partial-Bug: #1798794
This commit is contained in:
Brett Milford 2020-07-06 15:23:37 +10:00
parent 791461a7cf
commit 08d56bb040
2 changed files with 9 additions and 2 deletions

View File

@ -317,8 +317,11 @@ options:
Enabling this option will attempt to tune your network card sysctls and
hard drive settings. This changes hard drive read ahead settings and
max_sectors_kb. For the network card this will detect the link speed
and make appropriate sysctl changes. Enabling this option should
generally be safe.
and make appropriate sysctl changes.
WARNING: This option is DEPRECATED and will be removed in the next release.
Exercise caution when enabling this feature; examine and
confirm sysctl values are appropriate for your environment. See
http://pad.lv/1798794 for a full discussion.
aa-profile-mode:
type: string
default: 'disable'

View File

@ -316,6 +316,8 @@ def install():
apt_update(fatal=True)
apt_install(packages=ceph.determine_packages(), fatal=True)
if config('autotune'):
log('The autotune config is deprecated and planned '
'for removal in the next release.', level=WARNING)
tune_network_adapters()
install_udev_rules()
@ -547,6 +549,8 @@ def prepare_disks_and_activate():
config('osd-encrypt-keymanager'))
# Make it fast!
if config('autotune'):
log('The autotune config is deprecated and planned '
'for removal in the next release.', level=WARNING)
ceph.tune_dev(dev)
ceph.start_osds(get_devices())