Answer the question
In order to leave comments, you need to log in
How to configure memcached on Vesta + Bitrix?
Good afternoon!
Tell me, I can’t set up memcached on 1C-Bitrix (centos7). There is a Vesta panel.
When configuring, it issues Cache storage: cacheenginenone
And the scaling control module (scale) is not displayed
Specified in /bitrix/.settings.php (prescribed in .settings_extra.php as well)
'cache' => array(
'value' => array (
'type' => 'memcache',
'memcache' => array(
'host' => '127.0.0.1',
'port' => '11211',
'sid' => $_SERVER["DOCUMENT_ROOT"]."#site01",
),
),
'readonly' => false,
),
PORT="11211"
USER="bitrix"
MAXCONN="10240"
CACHESIZE="2048"
OPTIONS="-t 8 -s /tmp/memcached.sock"
Answer the question
In order to leave comments, you need to log in
it doesn't make sense if you don't have a cluster and don't need to balance sessions.
memcached will not give you an increase in relation to the file cache + opcache
it connects via TCP \ IP and even through a socket it will not actually give any increase.
But problems with caching can arise, especially in deferred functions and complex components.
not worth the hassle.
nvme drives handle IO just fine, while others don't take sms at the moment.
the fastest way Bitrix works is nginx + FPM
Also, upgrading the PHP version gives a good increase sometimes up to 30% (nevertheless, it works faster and faster every day.
Well, the main emphasis is on the quality cache of components
OPTIONS="-t 8 -s /tmp/memcached.sock" - this tells memcached to work over a socket. In this case, the ability to work via TCP / UDP is disabled
Link to the memcached documentation where it says this
Your configuration should look like this
'memcache' => array(
'host' => 'unix:///tmp/memcached.sock',
'port' => '0',
'sid' => $_SERVER["DOCUMENT_ROOT"]."#site01",
),
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question