Live data from Hacker News

Wordpress site running on Raspberry Pi

pipress.vo3.net

11–20 of 37 posts

Re: Wordpress site running on Raspberry Pi

#11

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!

No worries, I support science.

Re: Wordpress site running on Raspberry Pi

#12

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!

For science lots of people will probably try to replicate your results, as good scientists should.

Re: Wordpress site running on Raspberry Pi

#13
post #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 s…

If it survives does that mean that the Pi can essentially saturate its network connection if it doesn't need to do any "real" work? I bet you could stick it in a rack in front of the grownup servers to act as a haproxy dongle, how hard can it be?

I officially dub it the cutest webserver.. in the world.

Re: Wordpress site running on Raspberry Pi

#14
I'm working on a project where I have a rails site running on a beaglebone, it is populating its database with data coming from a usb device (~200 byte/s continuous). I am finding that the SD card with all of the data and the OS fails quite quickly (scale of weeks). Are SD cards just not up to the task?

Re: Wordpress site running on Raspberry Pi

#15

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

Yeah, I'm curious to see how long it lasts.

Looks like forever. If it's not taken down by the hit rate from a top slot, it won't be taken down. It's gotten slower, but it's alive.

Nice work.

Re: Wordpress site running on Raspberry Pi

#16

I'm working on a project where I have a rails site running on a beaglebone, it is populating its database with data coming from a usb device (~200 byte/s continuous). I am finding that the SD card with all of the data and the OS fails quite quickly (scale of weeks). Are SD cards just not up to the task?

Yes, SD cards are not designed as disks. 'SSD' drives work by selling you 4 - 10x the amount of flash as 'advertised' and replacing failed pages from the excess over time. They are more like light bulbs than switches in that way (finite lifetime).

Re: Wordpress site running on Raspberry Pi

#17

I'm working on a project where I have a rails site running on a beaglebone, it is populating its database with data coming from a usb device (~200 byte/s continuous). I am finding that the SD card with all of the data and the OS fails quite quickly (scale of weeks). Are SD cards just not up to the task?

Yes, SD cards are not designed as disks. 'SSD' drives work by selling you 4 - 10x the amount of flash as 'advertised' and replacing failed pages from the excess over time. They are more like light bulbs than switches in that way (finite lifetime).

I figured as much, thanks for the input. It would be wise then for the OP to make sure that noatime (turns off date accessed) is set in fstab for the filesystem, you don't want to write to that SD card on every read.

Re: Wordpress site running on Raspberry Pi

#18

Earlier quoted context omitted.

Yes, SD cards are not designed as disks. 'SSD' drives work by selling you 4 - 10x the amount of flash as 'advertised' and replacing failed pages from the excess over time. They are more like light bulbs than switches in that way (finite lifetime).

I figured as much, thanks for the input. It would be wise then for the OP to make sure that noatime (turns off date accessed) is set in fstab for the filesystem, you don't want to write to that SD card on every read.

Thanks, that appears to be the default on the wheezy image they distribute.

Re: Wordpress site running on Raspberry Pi

#20
post #5

Earlier quoted context omitted.

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.

I'm not familiar with wordpress but does it require that you use mysql?
Post reply on HN