Skip to content
zefıly

Servers

Performance and autotune

Settings for nginx, PHP-FPM, OPcache, the database, Valkey and the kernel computed from your server's hardware.

Performance shows the profile Zefily sees — CPU cores, memory, disk, PHP workers, PHP sites and services — and tunes the server for it.

Autotune

Autotune computes nginx, PHP-FPM, OPcache, database, Valkey and kernel settings from the server's hardware and the services that run on it.

  1. Compute plan lists every change: file, setting, current and new value.
  2. Apply writes them. Every file is validated first, services are reloaded and health-checked, and everything is rolled back automatically if a check fails.
  3. Roll back returns to the settings before the last apply.

Automatic tuning

With Automatic tuning on, Zefily recomputes and applies the tuning when the web stack or a database is installed or removed and whenever a site is added or removed, with the same checks and automatic rollback. If the server changes while a plan is being applied, Zefily works the plan out again once and applies it; you see a failure only when that second attempt fails too.

Turn automatic tuning off, or keep your own values

Turning Automatic tuning off stops Zefily from recomputing and applying the tuning on its own: the events above and its periodic check do nothing for that server. Compute plan, Apply and Roll back still work when you press them.

Zefily writes only its own files, and every apply rewrites them. A change you make by hand to one of these files is reported as drift and can be overwritten:

Service Zefily's file
nginx /etc/nginx/conf.d/01-zefily-tune.conf
PHP-FPM, per PHP version /etc/php/<version>/fpm/conf.d/90-zefily-tune.ini (on OpenLiteSpeed, the same name in the folder its PHP reads)
MariaDB /etc/mysql/mariadb.conf.d/91-zefily-tune.cnf
PostgreSQL, per version /etc/postgresql/<version>/main/conf.d/90-zefily-tune.conf
Kernel /etc/sysctl.d/91-zefily-tune.conf and /etc/tmpfiles.d/zefily-thp.conf (transparent huge pages off)
OpenLiteSpeed each PHP site's vhconf.conf (the PHP worker count)
Valkey its zefily.conf (the memory limit)

To keep your own values for PHP, MariaDB, PostgreSQL or the kernel, put them in a file named 99-custom in the same folder. The files are read in name order and a later file's value wins, so your file overrides Zefily's even after an apply:

  • PHP: 99-custom.ini in conf.d of each PHP version, with your opcache.* lines.
  • MariaDB: 99-custom.cnf in mariadb.conf.d, with your [mysqld] lines.
  • PostgreSQL: 99-custom.conf in conf.d.
  • Kernel: /etc/sysctl.d/99-custom.conf.

nginx reads its files in the same order, but it does not accept every directive twice. Put your nginx lines in 99-custom.conf in /etc/nginx/conf.d/, then run nginx -t before you reload. If it reports a duplicate directive, remove that line from your file.

The OpenLiteSpeed worker count and the Valkey memory limit have no later file that overrides them, so those values stay Zefily's while automatic tuning is on. Use Roll back to return the files to their values before the last apply.

WordPress page cache on OpenLiteSpeed

On OpenLiteSpeed the WordPress page cache is the LiteSpeed Cache plugin, switched on per site on the WordPress Performance tab. Switching it on keeps WooCommerce carts off the cache. Switching it off turns the plugin's page cache off (the plugin stays installed). See WordPress. Zefily's own OpenLiteSpeed page cache is not used for WordPress sites.

Per-site limits

Autotune sizes the shared pools. Each PHP site's own memory limit, upload size, execution time and other php.ini values are on its PHP pane — see PHP settings. Page and object caching are per site too — see Access, caching and protection.

Updated November 27, 2026 View as Markdown llms.txt

Still stuck?

Open a ticket from your panel or write to us; we answer within a day.

Contact →

Runs the stacks you already use

Black Friday & Cyber Monday

Before you go: lifetime plans are on sale

Pay once for a lifetime plan, or get 30% off the first year of any yearly plan.

Only 100 lifetime plans per plan. When they are gone, they are gone.

See the campaign

Amazing November

See the campaign →