Skip to content
Armin Retterath edited this page Aug 4, 2022 · 8 revisions

RAMDISK

In the mapbender.conf file there is an optional constant "RAMDISK". It defines the path to a fast storage which can be configured easy in debian. Under productive environments it make sense to have 6G available, cause the storage is used by the wfs-proxy to cache wfs features.

# as root
mkdir /mnt/ramdisk
mount -t tmpfs -o size=512m tmpfs /mnt/ramdisk
mkdir /mnt/ramdisk/www-data
chown -R www-data:www-data www-data/
cd {mapbender_path}/http/tmp/
ln -s /mnt/ramdisk/www-data/ ramdisk
chown -R www-data ramdisk
#mapbender.conf
define("RAMDISK", "../tmp/ramdisk");
#to make it persistent between reboots        
#/etc/fstab
#tmpfs    /mnt/ramdisk    tmpfs    defaults,size=512M      0       0
Clone this wiki locally