Live data from Hacker News

Wordpress site running on Raspberry Pi

pipress.vo3.net

1–10 of 37 posts

Re: Wordpress site running on Raspberry Pi

#6

Wow. Front page of Hacker News and it's still up. (granted, it's only been 19 minutes...)

Most people who have their site go down aren't using proper caching so their Wordpress sites are evaluating the PHP and querying the MySQL database with each page load. This is extremely wasteful of processor cycles and memory, hence the site goes down when the server gets overloaded. The proper way to do it is to have caching in place such that it evaluates once and saves the result as a static HTML page. Then the static page can be served very quickly and efficiently.

It looks like this is what he is doing. I'd be willing to bet the site will stay up.

Re: Wordpress site running on Raspberry Pi

#8

Headers: W3 Total Cache/0.9.2.4 So he's serving a static page 90% of the time? I'd love to see how this thing operates without a cache.

the login link, which is probably not served from cache is VERY slow for me, so that's probably your answer.

Re: Wordpress site running on Raspberry Pi

#9

Headers: W3 Total Cache/0.9.2.4 So he's serving a static page 90% of the time? I'd love to see how this thing operates without a cache.

Running

    ab -n 1000 -c 20 http://pipress.vo3.net/wp-login.php\?action\=lostpassword
Seems to have killed it. The site came back when I killed the process.

Sorry jstalin but I had to do it! For science!

Re: Wordpress site running on Raspberry Pi

#10
post #5

Headers: W3 Total Cache/0.9.2.4 So he's serving a static page 90% of the time? I'd love to see how this thing operates without a cache.

Isn't that how WP scaling works, though? It creates static pages.

Not by default and especially not once you start adding any sort of add-ons. A typical wordpress site will hit your MySQL database a TON.
Post reply on HN