• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Question How to isolate domain resource (MySQL) by Plesk ?

Sergey K.

Basic Pleskian
Server operating system version
Ubuntu 20.04.6 LTS
Plesk version and microupdate number
Obsidian, version 18.0.57
Hi, dear community!

I've got 30 domains (Plesk Obsidian, version 18.0.57, Web Pro version)

I have the following problem with 1 domain:
This site and domain initiate problems in SQL queries and when domain operates all MySQL bases will be down on the server (error = "Too many SQL connection").

Is there a way to isolate resources of the domain by Plesk settings ( I'm talking about MySQL capacity, PHP vars , Performance settings) such way, that only this domain will be down, but not the whole MySQL of server and all sites?
 
You have two variables for MariaDB that you can use in the [mysqld] section of /etc/my.cnf:
max_connections: The total number of connections the database server accepts
max_user_connections: The maximum number of connections a single user can use at the same time
The latter will help you limit single user accounts so that if these exceed the number, no further connections by them will be allowed while all other connections stay intact.
Remember to reload the database server after applying the changes.
 
Thanks for the prompt reply, Peter!

2 questions acc. to your comment:

1) How to determine convenient value for all sites - var - max_user_connections ? Before to set value I want to investigate the current loading for each site.

2) You told "The latter will help you limit single user accounts so that if these exceed the number," but my.cnf is global value for the whole server. I can't find such option for each domain locally (or I don't know where to find such option) :-(

P.S. Please correct path in reply - it was misprint. Should be: /etc/mysql/my.cnf

Thanks again for your time and answers.
 
Thanks for the reply.
Does it mean, it's not possible to isolate MySQL usage with help of Plesk ? Am I right?
 
Yes, Plesk does not have an editor for the my.cnf file (it's the same with other operating system files or configuration files of services).
 
Back
Top