Memcached allows the definition of multiple server:port pairs according the docs.
The docs also allows when using multiple pairs to add to each pair a weight such as 'mem1.domain.com', 11211, 33.
'memcached_servers' => [
// hostname, port and optional weight. Also see:
// http://www.php.net/manual/en/memcached.addservers.php
// http://www.php.net/manual/en/memcached.addserver.php
['localhost', 11211],
//[other.host.local', 11211],
],
But the way how envvars are defined, allow only one pair without weight:
'memcached_servers' => [
[
getenv('OWNCLOUD_MEMCACHED_HOST'),
getenv('OWNCLOUD_MEMCACHED_PORT'),
],
],
What is the correct way defining multiple memcached servers with envvars ?
@DeepDiver1975
Memcached allows the definition of multiple
server:portpairs according the docs.The docs also allows when using multiple pairs to add to each pair a weight such as
'mem1.domain.com', 11211, 33.But the way how envvars are defined, allow only one pair without weight:
What is the correct way defining multiple memcached servers with envvars ?
@DeepDiver1975