3 ms·
First time I reached the front page I had ~250 concurrent users and increasing, then the server crashed. After that I wrote a cronjob that runs a script which
by fekberg 14y ago
First time I reached the front page I had ~250 concurrent users and increasing, then the server crashed.
After that I wrote a cronjob that runs a script which automatically increases my virtual machines RAM. When I have little or no visits it uses 1GB RAM the most it went up to was 9GB RAM (increasing with 1GB at a time).
It also sends me an e-mail when increasing/decreasing the RAM so I can ensure that it doesn't crash.
I also use Wordpress with caching enabled and the above helps me keep the costs down, don't want the server to run on 8GB RAM all the time nor 1GB RAM.
- eli 14y agoWhich provider is that? AWS? I feel like it's only a matter of time before auto-scaling works well enough that it's just a standard feature.
- fekberg 14y agoGlesys http://www.glesys.com/ http://www.glesys.com/ they have server centers in Sweden, New York and Amsterdam (from what I can remember...)