MySQL DNS lookups

work

december 6

We’ve had a problem at work recently — very very slow MySQL performance. And I’ve tried everything, increase that buffer, decrease the other buffer. Nothing. MySQL refused to work optimally.

I had noticed tho, that local connections, that is over UNIX sockets — not TCP/IP, were blazing fast. Then I’ve realized that MySQL was trying to reverse lookup all incoming TCP/IP connections, before allowing any data pass-through.

Just by adding ’skip_name_resolve’ under [mysqld] section in our my.cnf the database became super-fast.

Bear in mind tho — all your users that have hostnames for authentication, won’t work with that line! Only IP-based hosts will work.

Your thoughts please

Your Information

No personal information provided here will be used for unlawful purposes and your email will not be displayed on the web blog.
Website is used for linking your name.
Review comment policy before posting.
* = required
Thanks!

Thought-dump here

Thought Preview