WordPress Server Load Problem: Cause & Solution WordPress carico del server problema: Causa & soluzione
I was watching the mysql queries using mytop just before our server went down. Sono stato a guardare il mysql query utilizzando mytop poco prima il nostro server è andato giù. In a flash I realized the cause of our persistent server load problem. In un lampo ho capito la causa della nostra persistente problema del carico del server. I have also come up with an elegant solution which I will implement in the next few days. Ho anche trovare una soluzione elegante che ho attuerà nei prossimi giorni.
The problem is due to huge spam comment load on my server and the facts that a) MySQL does table locking on insert and b) update statements gets priority over the select statements. Il problema è dovuto al grande carico di spam commento sul mio server e che i fatti a), MySQL non tabella di bloccaggio a inserire e b) dichiarazioni di aggiornamento viene considerato prioritario rispetto alle selezionare dichiarazioni. So if you have even one “insert into wp_comments” waiting (due to table locking) then all the “select from wp_comments” are forced to wait in queue. Quindi se hai anche una sola "wp_comments inserire in" attesa (a causa di tabella di blocco) e poi tutti i "selezionare da wp_comments" sono costretti ad aspettare in coda.
What about the solution? Che cosa circa la soluzione?
There are few obvious ways to handle it. Ci sono pochi modi per ovvie gestirlo. The first thing I tried is setting updates to low priority to allow select statements to pass through: La prima cosa che ho cercato è l'impostazione aggiornamenti a bassa priorità per consentire selezionare le dichiarazioni di passare attraverso:
set-variable = low_priority_updates=1 set-low_priority_updates variabile = = 1
In WordPress updates are much less frequent than reads, so it makes sense to give lower priority to updates and let select pass through. In WordPress aggiornamenti sono molto meno frequenti rispetto legge, per cui ha senso dare priorità inferiore agli aggiornamenti e lasciate passare attraverso selezionare.
So far everything looks great. Finora tutto sembra grande. Keep an eye on this article to get updates on my quest. Tenere d'occhio questo articolo per ottenere gli aggiornamenti sulla mia ricerca.
Filed under Elencato sotto Headline News Headline News , How To Come , MySQL , Open Source Software Software open source , Pro Blogging Pro Blogging , Web , Web 2.0 2,0 web , Web Hosting Web Hosting , Web Services Servizi Web | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |




