##// END OF EJS Templates
fix(permissions): added a common way to update private flag via repo model...
fix(permissions): added a common way to update private flag via repo model - this allows to have a one and only one way to control the flag with the business logic shared - added test for that - changed view to use this method instead of DB update and custom permissions flush - fixed a case when update of repo settings didn't flush permissions actually while it should when private flag changed

File last commit:

r3693:f470fd2e new-ui
r5551:5b9b5ed2 default
Show More
tuning-mount-cache-memory.rst
51 lines | 1.5 KiB | text/x-rst | RstLexer
/ docs / admin / system_admin / tuning / tuning-mount-cache-memory.rst

Mount Cache Folders To Memory

To increase the performance of folders containing cache data, you can mount them to memory. The following folders specified in the :file:`rhodecode.ini` file would benefit from this.

cache_dir = %(here)s/data
search.location = %(here)s/data/index

Use the following Ubuntu example to mount these to memory, or see your particular |os| instructions. The expected performance benefit is approximately 5%. You should ensure you allocate an adequate amount of memory depending on your available resources.

# mount to memory with 2GB limit and 755 write permissions
mount -t tmpfs -o size=2G,mode=0755 tmpfs /home/user/.rccontrol/enterprise-1/data
mount -t tmpfs -o size=2G,mode=0755 tmpfs /home/user/.rccontrol/enterprise-1/data/index

In order to make this change permanent it's recommend to set it as /etc/fstab entry.

tmpfs   /home/user/.rccontrol/enterprise-1/data tmpfs   nodev,nosuid,noexec,nodiratime,size=2G   0 0

Move tmp to TMPFS

|RCE| components heavily use the :file:`/tmp` folder, so moving your :file:`/tmp` folder into to a RAM-based TMPS can lead to a noticeable performance boost.

# mount tmp to memory with 2GB limit and 1777 write permissions
mount -t tmpfs -o size=2G,mode=1777 tmpfs /tmp

For more information about TMPFS, see the documentation here.