Mega caching setup (hybrid storage like setup)

Discussion in 'ISPConfig 3 Priority Support' started by Honza, Jun 17, 2017.

  1. Honza

    Honza Member

    Hi,
    I was wondering if there is a way to setup a Linux machine where any database, website, emails stored on the server would be first loaded from a storage (HDD) and kept in memory (RAM) until something more recent needs to take place, while keeping the data secure with write ins (let's say every 5 mins) on updates.
    Reasoning behind this - you can get a cheap server with 4 TB of HDD storage and 128 GB of RAM however getting 2 TB of SSD storage with 16 GB RAM is terribly expensive and I think most of the data stored is just dead weight that is almost never accessed.

    Maybe this is done automatically within modern kernels but I wouldn't know - any input would be appreciated.

    Thank you and enjoy the weekend.
     
  2. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    What you could do (I did for a client a while ago) is to create a ramdisk and set up lsyncd to sync some of the most important files to this drive. This won't work for databases but those will be partly cached in memory depending on the mysql/mariadb setup anyway.
     

Share This Page