Add setting to override max memcached connections

Added MemcachedMaxConnections to allow max connection override as
actually the limit is 8192 connections but in some cases the environment
will create more than 8192 connections to each memcached server.

Closes-Bug: #1911664

Change-Id: Iaef7c01127327f709577bef3d2e96db840ba2b80
(cherry picked from commit bbed1ef736)
This commit is contained in:
David Hill 2020-11-20 10:43:57 -05:00 committed by Michele Baldessari
parent cb14f3e574
commit 1ec4e5eceb
2 changed files with 11 additions and 0 deletions

View File

@ -42,6 +42,10 @@ parameters:
to use when installed. This can be either a percentage ('50%') to use when installed. This can be either a percentage ('50%')
or a fixed value ('2048'). or a fixed value ('2048').
type: string type: string
MemcachedMaxConnections:
default: 8192
description: The maximum number of connections to be accepted by memcached
type: number
MonitoringSubscriptionMemcached: MonitoringSubscriptionMemcached:
default: 'overcloud-memcached' default: 'overcloud-memcached'
type: string type: string
@ -155,6 +159,7 @@ outputs:
"%{hiera('$NETWORK_uri')}" "%{hiera('$NETWORK_uri')}"
params: params:
$NETWORK: {get_param: [ServiceNetMap, MemcachedNetwork]} $NETWORK: {get_param: [ServiceNetMap, MemcachedNetwork]}
memcached::max_connections: {get_param: MemcachedMaxConnections}
memcached::max_memory: {get_param: MemcachedMaxMemory} memcached::max_memory: {get_param: MemcachedMaxMemory}
# https://access.redhat.com/security/cve/cve-2018-1000115 # https://access.redhat.com/security/cve/cve-2018-1000115
# Only accept TCP to avoid spoofed traffic amplification DoS on UDP. # Only accept TCP to avoid spoofed traffic amplification DoS on UDP.

View File

@ -0,0 +1,6 @@
---
features:
- |
Added ``MemcachedMaxConnections`` setting with a default of 8192 maximum
connections in order to allow an operator to override that value in
environments where memcached is heavily sollicited.