• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

Issue Plesk daily job overwhelming server / MySQL

OlgaKM

Basic Pleskian
I am having an issue where the Plesk daily job (/usr/local/psa/admin/plib/DailyMaintainance/script.php) is overwhelming the server, particularly MySQL. This happens for between 5-10 minutes every day when the job is running. As far as I can see what is happening is that the job consumes so many resources that processes connect to MySQL, but are left hanging because they don't have the resources to run and this results in them taking up MySQL connections. Eventually, new processes start receiving a 'Too many connections' error. The max_connection limit for mysql is set to 512.

Is there a way to limit the resources used by the daily job?
 
Last edited:
Thank you serverpoint, that link was very helpful in diagnosing the issue. Ultimately, the solution I used was to use cgroups to limit disk i/o of the process.

Code:
service cgconfig start
cgcreate -g blkio:/limit1M
cgset -r blkio.throttle.write_bps_device="8:0 1048576" limit1M
cgset -r blkio.throttle.read_bps_device="8:0 1048576" limit1M

Then, in the file /etc/cron.daily/50plesk-daily, I changed the following line:

Original line:
Code:
/usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1

Modified line:
Code:
cgexec --sticky -g blkio:/limit1M /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php >/dev/null 2>&1
 
Back
Top