Port Exhaustion - SQL

Reinis Rozitis r at roze.lv
Thu May 16 13:35:18 UTC 2019


> Yes all of those changes you have mentioned have been made. 

Well imo there is nothing else besides to even more decrease the  FIN timeout (in a LAN that shouldn't be an issue (no slow clients)) so the lingering sockets are closed faster.

Also instead of adding the network adapter(s) on the webserver you should add the interfaces on the mysql server and then either via loadbalancer or on application level use a round robin fashion (as binding to a specific local interface is harder than just connect to a different remote ip).


Other than that depending on the application you might want to consider using persistent connections to MySQL or use some kind of mysql proxy between which could pool the connections to the mysql server.

rr



More information about the nginx mailing list