You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 47fbc2c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: docs/cloudlinuxos/cloudlinux_os_components/README.md
+22-23Lines changed: 22 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3352,7 +3352,7 @@ More details of the governor operation modes are described in the [Modes of oper
3352
3352
|<span class="notranslate"> READ </span> | bytes | bytes read. Cached reads are not counted, only those that were actually read from disk will be counted|
3353
3353
|<span class="notranslate"> WRITE </span> | bytes | bytes written. Cached writes are not counted, only once data is written to disk, it is counted|
3354
3354
3355
-
You can set different limits for different periods: current, short, med, long. By default those periods are defined as 1 second, 5 seconds, 1 minute and 5 minutes. They can be re-defined using [configuration file](./#configuration-and-operation). The idea is to use larger acceptable values for shorter periods. Like you could allow a customer to use two cores (200%) for one second, but only 1 core (on average) for 1 minute, and only 70% within 5 minutes. That would make sure that customer can burst for short periods of time.
3355
+
You can set different limits for different periods: current, short, mid, long. By default those periods are defined as 1 second, 15 seconds, 1 minute and 5 minutes. They can be re-defined using [configuration file](./#configuration-and-operation). The idea is to use larger acceptable values for shorter periods. Like you could allow a customer to use two cores (200%) for one second, but only 1 core (on average) for 1 minute, and only 70% within 5 minutes. That would make sure that customer can burst for short periods of time.
3356
3356
3357
3357
Customers will also be limited to a finite number of concurrent connections, this number is 30 by default and can be changed. This is done so they wouldn't use up all the MySQL connections to the server. <span class="notranslate"> MySQL Governor </span> can also kill off slow <span class="notranslate"> SELECT </span> queries.
3358
3358
@@ -3366,7 +3366,7 @@ Before any SQL request, MySQL Governor determines which user sent the request an
3366
3366
3367
3367
This is how common server resources can be managed.
3368
3368
3369
-
#### Why the СPU/IO charts are different for database and LVE usage?
3369
+
#### Why the CPU/IO charts are different for database and LVE usage?
3370
3370
3371
3371
SQL requests are not limited inside LVE, so there are not any calculations for IO usage there. It can be clearly viewed via the lve-stats charts:
3372
3372
@@ -3632,7 +3632,7 @@ Example configuration:
3632
3632
<!-- 'all' - user's queries always run inside LVE for that user -->
3633
3633
<!-- 'single' - single LVE=3 for all abusers. -->
3634
3634
<!-- 'on' - deprecated (old restriction type) -->
3635
-
<!-- To change resource usage of restricted user in LVE mode use command /usr/sbin/lvectl set 3 --cpu=<new value> --ncpu=<new value> --io=<new value> --save-all-parameters -->
3635
+
<!-- To change resource usage of restricted user in LVE mode use command /usr/sbin/lvectl set 3 --speed=<new value>% --io=<new value> --save-all-parameters -->
<!-- s -- seconds, m -- minutes, h -- hours, d -- days -->
3652
3652
<!-- on restart, restrict will disappear -->
3653
3653
<!-- log file will contain information about all restrictions that were take -->
3654
3654
<!-- timeout - penalty period when user not restricted, but if he hit his limit during this period he will be restricted with higher level of restrict (for more long time) -->
3655
-
<!- level1, level2, level3, level4 - period of restriction user for different level of restriction. During this period all user's requests will be placed into LVE container -->
3655
+
<!-- level1, level2, level3, level4 - period of restriction user for different level of restriction. During this period all user's requests will be placed into LVE container -->
3656
3656
3657
3657
<!-- if user hits any of the limits during period of time specified in timeout, higher level of restrict will be used to restrict user. If user was already on level4, level4 will be applied again -->
<!-- Time to kill slow SELECT queries for account, can be different for accounts in seconds(but unit can be specified)-->
3690
+
<!-- Time in seconds to kill slow SELECT queries for account, can be different for accounts. Specify a plain number: time units are not supported-->
3691
3691
<!-- enabled only when slow_queries run="on" -->
3692
-
<!-- s -- seconds, m -- minutes, h -- hours, d -- days -->
3693
3692
<!-- Requests are checked at 15 second intervals, so a request will be canceled after a timeout + 15 seconds maximum -->
3694
3693
<limitname="slow"current="30"/>
3695
3694
</default>
@@ -3748,7 +3747,7 @@ If the `dbuser-map` file is absent on the server, the `abusers` mode emulates th
3748
3747
3749
3748
With the `single` and `abusers` mode, once user is restricted, the queries for that user will be limited as long as user is using more than limits specified. After a minute that user is using less, we will unrestricted that user.
3750
3749
3751
-
You can specify modes of operation using [dbctl](/cloudlinuxos/command-line_tools/#dbctl) or by changing [configuration file](./#configuration-3).
3750
+
You can specify modes of operation using [dbctl](/cloudlinuxos/command-line_tools/#dbctl) or by changing [configuration file](./#configuration-2).
3752
3751
3753
3752
#### MySQL Governor limits
3754
3753
@@ -3766,15 +3765,15 @@ Here they are:
3766
3765
* absolute values of the LVE limits
3767
3766
3768
3767
3769
-
MySQL Governor allows setting the burstable limits for accounts. To provide that possibility, four levels of limits are defined: `current`, `short`, `middle`, and `long`. Correctly set limits can give users more CPU without having a bottleneck on MySQL.
3768
+
MySQL Governor allows setting the burstable limits for accounts. To provide that possibility, four levels of limits are defined: `current`, `short`, `mid`, and `long`. Correctly set limits can give users more CPU without having a bottleneck on MySQL.
3770
3769
3771
3770
**General principles of choosing the limits**:
3772
3771
3773
3772
* `current` and `short` can be more than the LVE limit and should not be less
3774
3773
* setting the `current` and `short` limits more than the LVE limit prevents bottlenecks in SQL request processing
3775
3774
* `middle` limit can be more or less that the LVE limit
3776
3775
* `long` on the contrary, should not be more than the LVE limit
3777
-
* setting the `middle` and `long` limits less than the LVE limit prevents abuse of other processes in the account (Apache, PHP) by MySQL
3776
+
* setting the `mid` and `long` limits less than the LVE limit prevents abuse of other processes in the account (Apache, PHP) by MySQL
3778
3777
3779
3778
**Coefficients for calculating limits**
3780
3779
@@ -3784,18 +3783,18 @@ MySQL Governor limits should be calculated based on the corresponding LVE limits
3784
3783
3785
3784
| Limit level | Formula | Description |
3786
3785
|---|---|---|
3787
-
| `current` | `LVE_CPUSPEED × 1` | Slightly above the LVE CPU limit to avoid bottlenecks |
3786
+
| `current` | `LVE_CPUSPEED × 1` | Equal to the LVE CPU limit, to avoid bottlenecks |
@@ -3812,7 +3811,7 @@ In the MySQL Governor configuration (`/etc/container/mysql-governor.xml`), the `
3812
3811
* If you face spike CPU consumption with these limits, it is recommended to reduce the excess of the `current` and `short` limits over the LVE limit. For example, to the values 150/110/100/90.
3813
3812
* If the average level of CPU consumption is too high, then it is recommended to reduce the `middle` and `long` limits, too. For example, to the values 150/100/80/50.
3814
3813
* Then MySQL processes will fall into LVE and be limited by LVE limits more often.
3815
-
* The same clues are applicable to the IO limits – the `current` and `short` IO limits for MySQL Governor can exceed IO LVE limits, but the `middle` and `long` cannot.
3814
+
* The same clues are applicable to the IO limits – the `current` and `short` IO limits for MySQL Governor can exceed IO LVE limits, but the `mid` and `long` cannot.
3816
3815
3817
3816
**Configuration example**
3818
3817
@@ -3997,7 +3996,7 @@ To install beta version of MySQL:
3997
3996
|mariadb101 | MariaDB v10.1|
3998
3997
|mariadb102 | MariaDB v 10.2|
3999
3998
|mariadb103 | MariaDB v 10.3 [requires <span class="notranslate"> MySQL Governor 1.2-36+; for cPanel - MySQL Governor 1.2-41+ </span> ]|
4000
-
|mariadb104 | MariaDB v 10.4 [requires <span class="notranslate">MySQL Governor</span> 1.2-53+]||
3999
+
|mariadb104 | MariaDB v 10.4 [requires <span class="notranslate">MySQL Governor</span> 1.2-53+]|
4001
4000
|mariadb105 | MariaDB v 10.5 [requires <span class="notranslate">MySQL Governor</span> 1.2-62+]|
4002
4001
|mariadb106 | MariaDB v 10.6 [requires <span class="notranslate">MySQL Governor</span> 1.2-76+]|
4003
4002
|mariadb1011 | MariaDB v 10.11 [requires <span class="notranslate">MySQL Governor</span> 1.2-103+]|
The following script could be used before installing MySQL-governor and MySQL/MariaDB packages to create the backup:
4059
+
After you install the `governor-mysql` package, and before you run `mysqlgovernor.py --install`, the following script could be used to create the backup:
4061
4060
<div class="notranslate">
4062
4061
4063
4062
```
@@ -4097,7 +4096,7 @@ dbctl --lve-improved-accuracy off
4097
4096
4098
4097
The calculation of CPU usage has become more accurate, so the `dbtop` utility provides more correct information to the MySQL Governor and it places user’s requests to the LVE in a proper moment. And as a result, such improvements reduce the possibility of absorbing whole server resources by one user.
4099
4098
4100
-
One mpre possible outcome of calculation improvements is that some server users will become in need of MySQL Governor limits reconfiguration.
4099
+
One more possible outcome of calculation improvements is that some server users will become in need of MySQL Governor limits reconfiguration.
4101
4100
4102
4101
#### How to view the impact of improvements?
4103
4102
@@ -4111,7 +4110,7 @@ In this case, CPU usage by database could be less than LVE average CPU usage (bl
4111
4110
4112
4111
**The new type of CPU usage calculation is turned on**.
4113
4112
4114
-
In this case, CPU usage by database become more similar to LVE average CPU usage (blue chart and green chart on the sceen):
4113
+
In this case, CPU usage by database become more similar to LVE average CPU usage (blue chart and green chart on the screen):
4115
4114
4116
4115

4117
4116
@@ -4125,7 +4124,7 @@ Before any SQL request, MySQL Governor determines which user sent the request an
4125
4124
4126
4125
This is how common server resources can be managed.
4127
4126
4128
-
#### Why the СPU/IO charts are different for database and LVE usage?
4127
+
#### Why the CPU/IO charts are different for database and LVE usage?
4129
4128
4130
4129
SQL requests are not limited inside LVE, so there are not any calculations for IO usage there. It can be clearly viewed via the lve-stats charts:
4131
4130
@@ -4139,7 +4138,7 @@ This is the user’s real IO Database usage which was calculated by MySQL Govern
4139
4138
4140
4139
This is the user’s IO Database usage which was calculated by lve-stats.
4141
4140
4142
-
Also for different types of database load (for example in case, there is a huge amount of shot requests), CPU usage charts for LVE and database can be different.
4141
+
Also for different types of database load (for example in case, there is a huge amount of short requests), CPU usage charts for LVE and database can be different.
0 commit comments