For operations, described in this chapter, knowledge of *nix-systems administration is required. Prior to start of these operations, it is recommended to perform full backup of Bitrix Virtual Appliance.
Provided settings are listed outside the scope of the Virtual Appliance menu. This means that the details below are provided for informational purposes only and should be used with clear understanding of your actions and under your own liability. Bitrix24 technical support reviews the questions related to Virtual Appliance menu items only.
If memcached is planned to be used in the project, it is necessary to configure it in accordance with anticipated load.
For this, it is required:
To specify the following parameters in the /etc/sysconfig/memcached file:
MAXCONN = "1024" - quantity of simultaneous connections (1024 by default);
CACHESIZE="1024" - volume of memory, allocated for cache (64MB by default);
OPTIONS="t 8" - quantity of memcached flows (4 by default).
Note: MAXCONN, CACHESIZE and OPTIONS parameters are selected experimentally depending on the type of load and on the available resources.
The volume of memory required for caching (parameter CACHESIZE) can be evaluated according to the size of your file cache. If file cache occupies 3GB in your project, then the use of memcached with 256MB memory will not be effective due to frequent preemption.
After configuring is competed, it is necessary to restart memchached via the command:
service memcached restart
systemctl restart memcached.service
Next, connect it into /bitrix/php_interface/dbconn.php:
Note: When using multiple sites, the example must contain static sid
Site ID, an ID field in settings site config parameters
, without $_SERVER["DOCUMENT_ROOT"]. Otherwise, cache will be different for two sites, because site folders are different.