• Hi, Pleskians! We are running a UX testing of our upcoming product intended for server management and monitoring.
    We would like to invite you to have a call with us and have some fun checking our prototype. The agenda is pretty simple - we bring new design and some scenarios that you need to walk through and succeed. We will be watching and taking insights for further development of the design.
    If you would like to participate, please use this link to book a meeting. We will sent the link to the clickable prototype at the meeting.
  • (Plesk for Windows):
    MySQL Connector/ODBC 3.51, 5.1, and 5.3 are no longer shipped with Plesk because they have reached end of life. MariaDB Connector/ODBC 64-bit 3.2.4 is now used instead.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.

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