The site is allowed 5GB of disk space on the server. If that gets full, then bad things happen. In particular, the database shuts itself down and refuses to start again. Every time that someone visits the site, some things get noted in some log files and these files grow over time. Eventually, they fill up the available disk space and the site goes down.
The solution to this is log rotation. Instead of keeping one log file, you keep one log file per day. You keep a week's worth of logs and delete the oldest one each night. Once this is setup, you've only got a week's worth of logs at all times, which will generally be about a constant size. The size of the log files will no longer balloon and take up all the disk space.
I had tried setting up log rotation previously but it wasn't working. This morning I investigated why it was failing and remedied the issue. I'm happy to report that it's working now, so the site shouldn't go down periodically anymore.
5 comments:
Hey Branton, for some reason, when you enter a warmup, then numerous intervals, then a cooldown the order in which you entered them is not holding after you save. Any ideas?
how do you leave a team?
I'd like to 'second' Adam's statement... When entering numerous intervals - once saved - the order in which they appear 'shifts'... Also - I'd like to know if there is any way to 'back-up' my data? It would be very helpful to be able to 'download' my workouts into a .xls format or similar. Thanks for the great site. -Brent
I am interested in signing up a team, but we would like to have workouts posted for at least a month. I saw on your post, you are asking for 1 week posting. Can you still accommodate us?
For some reason, if I ever enter 5 or more intervals (including warmup and cooldown), some get deleted so only 4 remain.
Post a Comment