Re:I am a postdoc and I think I just realized I have been sc...
by crocowhile on Sunday March 06, 2011 @07:01AM
(#2294046)
I have my own webserver on a micro Amazon instance. It seems it's dying under hackernews pressure :/
Any suggestion on something I could do? It's a wordpress blog on apache.
[ Parent
| on HN ]
Re:I am a postdoc and I think I just realized I have been sc...
by patio11 on Sunday March 06, 2011 @07:23AM
(#2294075)
Find the line which says KeepAlive and turn it off.
Out of the box, the configs which ship with Apache on e.g. Ubuntu are virtually engineered to fail if your blog ever gets a traffic spike.
Re:I am a postdoc and I think I just realized I have been sc...
by ZoFreX on Sunday March 06, 2011 @07:11AM
(#2294055)
Options:
Install a caching plugin for Wordpress.
Copy the output of Wordpress for that blog post to a static .html file and use mod_rewrite to point requests for the post to that file.
Turn off plugins you don't need.
Install a reverse proxy cache (such as Varnish) in front of Wordpress.
Re:I am a postdoc and I think I just realized I have been sc...
by JoachimSchipper on Sunday March 06, 2011 @07:18AM
(#2294065)
I'll add a really low-tech solution: add the text in a toplevel comment.
Re:I am a postdoc and I think I just realized I have been sc...
by galadriel on Sunday March 06, 2011 @07:09AM
(#2294053)
Either
a) Throw more resources at it. I am not sure how it is done, but cloud can scale on demand from what I know.
b) If not using already, use some static page serving plugin for Wordpress, like WP Super Cache or other. This should reduce some load.
Re:I am a postdoc and I think I just realized I have been sc...
by crocowhile on Sunday March 06, 2011 @07:17AM
(#2294062)
I have chaching enable. It's apache that is dying.
Does anyone know how to transform a t1.micro instance in something bigger or how to throw more resources?
Re:I am a postdoc and I think I just realized I have been sc...
by ZoFreX on Sunday March 06, 2011 @07:23AM
(#2294076)
What is your worker configuration for Apache? You can make it much hardier with some tweaking, or you can get even more robust by switching to nginx, or you can hit lightspeed by putting Varnish in front of it (listed in ascending order of complexity)
Re:I am a postdoc and I think I just realized I have been sc...
by biot on Sunday March 06, 2011 @07:17AM
(#2294063)
You could host your blog on Amazon S3. Unless there's a really compelling reason why you need to dynamically generate your blog on every request, serve it up as a static website. That way you can use your micro instance to do the generation and push it up to S3 which frees it up to do whatever other tasks you want while S3 does the serving.
Re:I am a postdoc and I think I just realized I have been sc...
by xiongchiamiov on Wednesday March 09, 2011 @07:40PM
(#2307383)
Ditch Apache for Nginx, Lighttpd, Cherokee, etc.