Comment 'Hello titanium !Well...' to 'Storage folder on separate HDD'
  • Hello titanium !

    Well, it will require many changes in the storage engine's code. Also, the storage content often should be available right now as processed images and videos will be used in many UNA places. So you profit from the keeping DB and templates on SSD and big content on will be not so high as you placed the whole UNA site on HDD. So you may use SSD for your MySQL server only - in this case you no need to touch the UNA's code.

    So for a high load (popular) Una installation, you recommend to just keep the whole installation on an HDD and only the MySQL on the SSD, correct?

    The cache should make both the HDD/SSD very similar in loading speed, correct? I just want it to be at fast as possible, and I know that SSD helps a lot with loading/access speed

    • You may try to change the following constants in the inc/params.inc.php file:

      //--- Main Pathes ---//

      define('BX_DIRECTORY_PATH_INC', BX_DIRECTORY_PATH_ROOT . 'inc/');

      define('BX_DIRECTORY_PATH_BASE', BX_DIRECTORY_PATH_ROOT . 'template/');

      define('BX_DIRECTORY_PATH_CACHE', BX_DIRECTORY_PATH_ROOT . 'cache/');

      define('BX_DIRECTORY_PATH_CACHE_PUBLIC', BX_DIRECTORY_PATH_ROOT . 'cache_public/');

      define('BX_DIRECTORY_PATH_CLASSES', BX_DIRECTORY_PATH_ROOT . 'inc/classes/');

      define('BX_DIRECTORY_PATH_PLUGINS', BX_DIRECTORY_PATH_ROOT . 'plugins/');

      define('BX_DIRECTORY_PATH_PLUGINS_PUBLIC', BX_DIRECTORY_PATH_ROOT . 'plugins_public/');

      define('BX_DIRECTORY_PATH_MODULES', BX_DIRECTORY_PATH_ROOT . 'modules/');

      define('BX_DIRECTORY_PATH_TMP', BX_DIRECTORY_PATH_ROOT . 'tmp/');

      define('BX_DIRECTORY_PATH_LOGS', BX_DIRECTORY_PATH_ROOT . 'logs/');

      define('BX_DIRECTORY_STORAGE', BX_DIRECTORY_PATH_ROOT . 'storage/');

      But note that you will need to keep it before every update.

      • Thanks for the list. This is in case if I want to separate UNA in two between an SSD and an HDD, correct?

        • Yes, it is. You may test it but on your own :-)

          PS I removed your overquoting.