Skip to content

MonoPanel 0.8.9

Choose a tag to compare

@github-actions github-actions released this 24 Sep 11:27
· 19 commits to main since this release

v0.8.9 — Valkey на аккаунт: отдельные экземпляры для кеша и PHP-сессий / Valkey per account: separate instances for the cache and PHP sessions

Русский

  • Valkey на аккаунт. mp stack install valkey ставит Valkey из дистрибутива (где его нет — Ubuntu 22.04, Debian 12 без backports — Redis с тем же протоколом) и выключает общий экземпляр пакета, который слушал 127.0.0.1:6379 без пароля для всех аккаунтов сервера. Каждому аккаунту можно создать два отдельных экземпляра — для кеша и для PHP-сессий: mp valkey add cache|sessions --user <логин> [--memory МБ] или кнопка valkey на странице «Пользователи». Экземпляр работает от имени аккаунта с лимитом памяти и слушает только свой unix-сокет с правами 600: ни другие аккаунты, ни веб-сервер к нему не подключатся, TCP-порта нет. Кеш вытесняет самые редкие ключи и ничего не пишет на диск, экземпляр сессий сохраняет снимок раз в минуту, и сессии переживают перезапуск.
  • PHP-сессии сайта переводятся в Valkey одной настройкой: mp site set <домен> --sessions valkey или поле «PHP-сессии» в настройках сайта (обратно — files). Нужно расширение redis у ветки PHP сайта; пока сайт держит сессии в экземпляре, ни экземпляр, ни расширение удалить нельзя.
  • Удаление аккаунта уносит его экземпляры Valkey. Перенос между панелями переносит их настройки (данные — нет), а сессии сайта остаются в Valkey, только если приёмник может их обслужить.
  • На EL9 и EL10 экземпляры работают в домене SELinux redis_t. Проверено на Debian 13, Ubuntu 22.04, AlmaLinux 10 и Rocky 9.
  • Значок панели во вкладке браузера — тот же логотип, что в шапке.

English

  • Valkey per account. mp stack install valkey installs Valkey from the distribution (Redis with the same protocol where it has none — Ubuntu 22.04, Debian 12 without backports) and switches off the package's shared instance, which listened on 127.0.0.1:6379 without a password for every account on the server. Each account can get two separate instances, one for the cache and one for PHP sessions: mp valkey add cache|sessions --user <login> [--memory MB] or the valkey button on the Users page. An instance runs as the account with a memory limit and listens only on its own unix socket with mode 600: neither other accounts nor the web server can connect, and there is no TCP port. The cache evicts the least used keys and writes nothing to disk; the sessions instance saves a snapshot every minute, so sessions survive a restart.
  • A site moves its PHP sessions to Valkey with one setting: mp site set <domain> --sessions valkey or the PHP sessions field in the site settings (files to go back). The redis extension of the site's PHP version is needed; while a site keeps sessions in an instance, neither the instance nor the extension can be removed.
  • Deleting an account removes its Valkey instances. Moving an account to another panel brings their settings (not the data), and a site keeps its sessions in Valkey only where the receiver can serve them.
  • On EL9 and EL10 the instances run in the SELinux domain redis_t. Tested on Debian 13, Ubuntu 22.04, AlmaLinux 10 and Rocky 9.
  • The panel's browser tab icon is the same logo as in the header.

Обновление

mp update
mp update apply

Панель скачает пакет для своей ОС, проверит подпись и перезапустится сама.