Having a Recurring MySQL Server Bandwidth Overload

We're running MySQL version 5.1.73.

We're having a recurring issue where our database server is being overloaded. Currently, we're monitoring about 1.18 MB/s of incoming traffic, with 200 queries per second on a server supporting roughly 25 WordPress-based sites. In the attached log file, we've noticed lines including things like:

3 Query	SELECT ID, post_name, post_parent, post_type
		FROM wp_posts
		WHERE post_name IN ('buy-cialis-jellya-online')
		AND post_type IN ('page','attachment')
		    3 Query	SELECT wp_term_taxonomy.term_id
					FROM wp_term_taxonomy
					INNER JOIN wp_terms USING (term_id)
					WHERE taxonomy = 'category'
					AND wp_terms.slug IN ('buy-cialis-jellya-online')

Any help figuring out what this means and if it's correlated, we would appreciate it.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
Someone is probably spamming your Wordpress search forms.  You will probably have to go to the web server logs to see where those requests are coming from and block them.  You could also filter the Wordpress search code to block those requests from being sent to the MySQL server.
code_horrorsAuthor Commented:
Thank you for the reply.  Can you describe how you would filter the Wordpress search code to block those requests?
Dave BaldwinFixer of ProblemsCommented:
That's a good question but the answer is not obvious in the Wordpress code.  Please click on "Request Attention" and get the Wordpress topic area added to your question.  I'll see if there is a common answer also.
Michael WorshamStaff Infrastructure ArchitectCommented:
Wordpress has many built-in functions for preventing spam, but there are also a number of plugins available that can help as well. CAPTCHA based functionality is a good start for being able to even post comments.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
MySQL Server

From novice to tech pro — start learning today.