Hello guys!
After I have got my first rpi I installed the services I needed. Before making it online I wanted to test it with some automatic tools to see if it can go public. My SD card crashed then.
The problem comes when you write the same part of an SD card many times - if you have a public server, apache for example - users or maybe attackers can send a lot of requests which are logged.
Logging means IO usage - write. That's what flash cards don't like.
After sending thousand of requests to my rpi it' not a big deal to find out what happened. An attacker can use this method to DOS you server.
Of course there is protection for this: use ramfs and/or tmps.
Using ramfs won't hurt your SD card at all and make the system load decrease, but if you shut down the server you loose the logs. Using tmps with "noatime" mount option will decrease the IO usage - it won't save when was the file last accessed but after shut down you will have your logs.
Turning off swap is also a good idea, so not even tmpfs will use it. However that needs some more space management to not to run out of space for logging.
Be careful with big logs - they can destroy your SD card fast.