Answer the question
In order to leave comments, you need to log in
Why did the database performance decrease when moving the site to 2 servers?
Hello!
The site has about 300,000 views per day (55,000 users per day), online at the peak of 900+ users. The site is hosted on a VPS (details below), up to 800+ coped perfectly, there was no change in functionality. VPS began to fail to cope with attendance (this is understandable). They advised to take a separate VPS for the database, leave the rest on the old one. But when moving the database to an additional server, the performance measurement in terms of the DB Performance Panel became worse:
Before:
MySQL database (write) 6,822
MySQL database (read) 15,262
MySQL database (change) 2,503
Now:
MySQL database ( write) 1549
MySQL database (read) 1602
MySQL database (change) 1582
$DBHost = was specified in the settings (and in host .settings.php). The VPS was configured with mariaBD 10 version with settings from the Bitrix ENV database of the latest version.
-Old VPS -
Centos7 OS
1.5 GB Memory
2x1 GHz Processor
20 GB SSD
Bitrix Env last version
- New VPS under DB -
Centos7 OS (KVM)
2 GB Memory
2 cores 2.2 Hz
40 GB SSD
MariaDB 10
Servers in one DC.
Please advise what to do.
Answer the question
In order to leave comments, you need to log in
1. naturally slowed down, even accessing through the local domain and localhost there is a difference, since the DNS server and ETH0 are involved, and the
server located, as I understand it, is not in the same data center, and even not physically connected with a cord, give a drawdown.
2. Show mysql
configs 2. you need to look at the server configs, you can tweak them a little, of course, but there are very simple means.
For example, switch to new I9 processors, and xeons are their counterparts.
Here is an example on Bitrix vm
База данных MySQL (запись) 12 694 5 600 количество запросов на запись в секунду
База данных MySQL (чтение) 81 827 7 800 количество запросов на чтение в секунду
База данных MySQL (изменение) 23 374 5 800 количество запросов на изменение в секунду
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question