I have a high load website served by two servers: web server with nginx
and php
, and database server with mysql
. Web server serves all the static content and connects to MySQL and outside world through single interface - eth0
.
On peak hours, traffic on this interface gets close maximum, and ping time to mysql server get very high (up to 100ms, even though servers are on the same LAN).
So, my question is: will setting up another network interface dedicated only to MySQL connections on web server solve high latency problem?
If yes, what tools do I use, to forward mysql connections through different network interface? How to set up interfaces properly, do I need different IP adresses on the interfaces?
Both servers have ubuntu-server
.