-
Bitrix Virtual Appliance v7.x
-
What's New
-
Installation of Bitrix Environment (BitrixEnv) for Linux
-
Launching Bitrix Virtual Appliance
-
VMBitrix.CRM
-
Installation and Migration of Bitrix24 Products to BitrixVA/BitrixEnv
-
1. Manage servers in the pool
-
2. Manage localhost
-
3. Configure MySQL servers
-
4. Configure Memcached Servers
-
5. Background Tasks in the pool
-
6. Configure pool sites
-
1. Create Site
-
2. Delete Site
-
3. Change Cron Tasks on Site
-
4. Change E-mail Settings on Site
-
5. Change HTTPS Settings on Site
-
6. Change Backup Settings on Site
-
7. Configure NTLM Authorization for all Sites
-
8. Configure Optional Services (xmppd|smtpd) for Site
-
9. Bitrix Composite Site
-
10. Configure Site Options
-
11. Show Sites with Errors
-
-
7. Manage Sphinx in the pool
-
8. Manage Web Nodes in the pool
-
9. Monitoring in the pool
-
10. Configure Push/RTC Service
-
Additional Settings for BitrixAV/BitrixEnv
-
Modification of BitrixVA Standard Settings without Disabling Autotuning
-
Adding SSL-certificates in BitrixVA/BitrixEnv
-
Expanding BitrixVA Disk Space
-
Connecting Swap Partition
-
Manual Configuration of Memcached
-
Correct Mounting of Windows-Resources
-
Execution of All Agents via Cron
-
Mounting Options
-
Connecting IDE
-
Packet Source Codes (starting from version 7.3.0!)
-
Beta version of BitrixEnv/VMBitrix.CRM
-
PHP-Extensions Manual Enabling
-
BitrixVA proxying settings
-
-
BitrixVA API for Providers
-
How to create BitrixVM image for cloning
-
-
Bitrix Virtual Appliance Contents
-
Introduction
-
Service configuration
-
BitrixVM Configuration
-
-
Archive
-
Bitrix Virtual Appliance v4.3 (Archived)
-
Introduction
-
Running the Bitrix Virtual Appliance
-
Configuring the SMTP Mail Server
-
Creation of a Master-Slave Cluster
-
Adding a Site
-
Automatic Backups
-
Sphinx Search Engine Setup
-
Update of Bitrix Virtual Appliance
-
Restoring a Web Project from a backup copy
-
Additional BitrixVA settings
-
-
Bitrix Virtual Appliance v5.x (Archived)
-
Installation of Bitrix Environment for Linux 5.x
-
Installation of the VA VMware Edition
-
Migration of the Bitrix product to a VA
-
Host management
-
Configure MySQL servers
-
Manage local server
-
Configure the memcached servers
-
Background tasks in the pool
-
Manage the sites in the pool
-
Sphinx Search Engine Setup
-
Manage web-servers
-
Monitoring in pool
-
Additional BitrixVA settings
-
-
Manual Configuration of Memcached
Lesson 81 out of 182
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
andOPTIONS
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:
CentOS 6:
service memcached restart
CentOS 7:
systemctl restart memcached.service
- Next, connect it into
/bitrix/php_interface/dbconn.php
:define("BX_CACHE_TYPE", "memcache"); define("BX_CACHE_SID", $_SERVER["DOCUMENT_ROOT"]."#01"); define("BX_MEMCACHE_HOST", "127.0.0.1"); define("BX_MEMCACHE_PORT", "11211");
and in the file
/bitrix/.settings_extra.php
(create it, if unavailable):<?php return array( 'cache' => array( 'value' => array( 'type' => 'memcache', 'memcache' => array( 'host' => '127.0.0.1', 'port' => '11211', ), 'sid' => $_SERVER["DOCUMENT_ROOT"]."#01" ), ), ); ?>
If one more server is used, then the operation with memcached via socket can be configured to improve the productivity:
Set parameters in the file /etc/sysconfig/memcached:
USER="bitrix"
- user from which memcached will be launched;OPTIONS="-t 8 -s /tmp/memcached.sock"
- quantity of flows and path to socket.
- Restart memcached via command:
CentOS 6:
service memcached restart
CentOS 7:
systemctl restart memcached.service
- After that, it is necessary to modify settings in
/bitrix/php_interface/dbconn.php
:define("BX_CACHE_TYPE", "memcache"); define("BX_CACHE_SID", $_SERVER["DOCUMENT_ROOT"]."#01"); define("BX_MEMCACHE_HOST", "unix:///tmp/memcached.sock"); define("BX_MEMCACHE_PORT", "0");
and in the file
/bitrix/.settings_extra.php
(create it, if unavailable):<?php return array( 'cache' => array( 'value' => array( 'type' => 'memcache', 'memcache' => array( 'host' => 'unix:///tmp/memcached.sock', 'port' => '0', ), 'sid' => $_SERVER["DOCUMENT_ROOT"]."#01" ), ), ); ?>