Network-attached Storage or Local Storage

Network-attached storage or local storage setup

The location of the file store should be specified in the ".env" file:

FORMS_STORAGE_MODE=<FILE OR FILE_EX OR FILE_LEGACY>
HS_PATH=/mnt/hs/

In order for the media storage to be visible across the cluster, ${HS_PATH}/media should be a network storage mount (and not a local folder).

Value of FORMS_STORAGE_MODE

In v36.0.6+ and v37 and later, file stores have a six-level directory structure. This structure minimizes the number of files in each directory, allowing for faster data retrieval and improving performance in high-volume instances.

The value of FORMS_STORAGE_MODE depends on the version of Hyperscience you're running:

  • v36.0.6 + or v37 or later: FILE_EX

  • v36.0.5 or earlier: FILE

If you are upgrading to v36.0.6+ or v37 or later, your file store will use the optimized directory structure by default. If you want to continue using the older directory structure, set FORMS_STORAGE_MODE to FILE_LEGACY.