Re: Possible to put a container on a "ramdisk"? (Ploop) [message #51511 is a reply to message #51502] |
Thu, 03 July 2014 18:31 ![Go to previous message Go to previous message](/theme/ovz3/images/up.png) |
devonblzx
Messages: 127 Registered: December 2006
|
Senior Member |
|
|
Why put the container on a ramdisk? Why not just mount a tmpfs inside the container and use that for the database storage?
Otherwise you are losing the entire system on every reboot and you are wasting RAM on system files rather than just the database.
I think you are still going about this the wrong way, but I may not have all the info. Most database servers support caching in RAM for this very purpose and don't require a ramdisk or tmpfs. MySQL for instance, has the memory storage engine, and numerous other features to increase the cache size so you can keep all the tables in the RAM if necessary but you don't lose anything on a reboot.
![http://static.openvz.org/userbars/openvz-user-2.png](http://static.openvz.org/userbars/openvz-user-2.png)
ByteOnSite President
[Updated on: Thu, 03 July 2014 18:34] Report message to a moderator
|
|
|