Switch horizon cache to /var/tmp location
/tmp might be placed in RAM, and many distros (not ubuntu) are doing
in such way. This will prevent horizon from caching files larger
than RAM size.
This patch switched cache directory to /var/tmp.
Change-Id: I9141f5351f5f2368d3387d9c4b4c6cd4fa562b2d
Related-Prod: PROD-25435
diff --git a/horizon/server/cluster.yml b/horizon/server/cluster.yml
index db0c7e5..06a720c 100644
--- a/horizon/server/cluster.yml
+++ b/horizon/server/cluster.yml
@@ -18,6 +18,12 @@
session:
engine: "cache"
images_upload_mode: ${_param:horizon_images_upload_mode}
+ django_settings:
+ # File larger than FILE_UPLOAD_MAX_MEMORY_SIZE (by default 2.5Mb)
+ # will be stored in directory specified by this option.
+ FILE_UPLOAD_TEMP_DIR:
+ enabled: true
+ value: "'/var/tmp/'"
apache:
server:
modules:
diff --git a/horizon/server/single.yml b/horizon/server/single.yml
index 0ed0674..04bb18b 100644
--- a/horizon/server/single.yml
+++ b/horizon/server/single.yml
@@ -16,6 +16,12 @@
session:
engine: "cache"
images_upload_mode: ${_param:horizon_images_upload_mode}
+ django_settings:
+ # File larger than FILE_UPLOAD_MAX_MEMORY_SIZE (by default 2.5Mb)
+ # will be stored in directory specified by this option.
+ FILE_UPLOAD_TEMP_DIR:
+ enabled: true
+ value: "'/var/tmp/'"
apache:
server:
modules: