test move apps to memcached02
This commit is contained in:
parent
2cf38c1f17
commit
c88ab2cb08
7 changed files with 30 additions and 2 deletions
|
@ -392,7 +392,11 @@ LOGGING = {
|
||||||
CACHES = {
|
CACHES = {
|
||||||
'default': {
|
'default': {
|
||||||
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
|
'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache',
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
'LOCATION': 'memcached02:11211',
|
||||||
|
{% else %}
|
||||||
'LOCATION': 'memcached01:11211',
|
'LOCATION': 'memcached01:11211',
|
||||||
|
{% endif %}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -158,7 +158,11 @@ $wgParserCacheType = CACHE_MEMCACHED;
|
||||||
$wgMessageCacheType = CACHE_MEMCACHED;
|
$wgMessageCacheType = CACHE_MEMCACHED;
|
||||||
$wgSessionsInMemcached = true;
|
$wgSessionsInMemcached = true;
|
||||||
$wgMemCachedServers = array (
|
$wgMemCachedServers = array (
|
||||||
0 => 'memcached01:11211',
|
{% if env == 'staging' %}
|
||||||
|
0 => 'memcached02:11211',
|
||||||
|
{% else %}
|
||||||
|
0 => 'memcached01:11211',
|
||||||
|
{% endif %}
|
||||||
);
|
);
|
||||||
|
|
||||||
## To enable image uploads, make sure the 'images' directory
|
## To enable image uploads, make sure the 'images' directory
|
||||||
|
|
|
@ -51,7 +51,11 @@ CACHE = {
|
||||||
"backend": "dogpile.cache.null",
|
"backend": "dogpile.cache.null",
|
||||||
"expiration_time": 100,
|
"expiration_time": 100,
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
"url": "memcached02{{env_suffix}}:11211",
|
||||||
|
{% else %}
|
||||||
"url": "memcached01{{env_suffix}}:11211",
|
"url": "memcached01{{env_suffix}}:11211",
|
||||||
|
{% endif %}
|
||||||
"distributed_lock": True,
|
"distributed_lock": True,
|
||||||
"lock_timeout": 5,
|
"lock_timeout": 5,
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,7 +50,11 @@ SESSION_COOKIE_NAME = 'elections'
|
||||||
DOGPILE_CACHE = {
|
DOGPILE_CACHE = {
|
||||||
'backend': 'dogpile.cache.memcached',
|
'backend': 'dogpile.cache.memcached',
|
||||||
'arguments': {
|
'arguments': {
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
'url': ["memcached02:11211"],
|
||||||
|
{% else %}
|
||||||
'url': ["memcached01:11211"],
|
'url': ["memcached01:11211"],
|
||||||
|
{% endif %}
|
||||||
'distributed_lock': True,
|
'distributed_lock': True,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,11 @@ config = {
|
||||||
"backend": "dogpile.cache.memcached",
|
"backend": "dogpile.cache.memcached",
|
||||||
"expiration_time": None,
|
"expiration_time": None,
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
"url": "memcached02",
|
||||||
|
{% else %}
|
||||||
"url": "memcached01",
|
"url": "memcached01",
|
||||||
|
{% endif %}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -54,7 +54,11 @@ config = {
|
||||||
"backend": "dogpile.cache.memcached",
|
"backend": "dogpile.cache.memcached",
|
||||||
"expiration_time": 3600, # 1 hour
|
"expiration_time": 3600, # 1 hour
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
"url": "memcached02:11211",
|
||||||
|
{% else %}
|
||||||
"url": "memcached01:11211",
|
"url": "memcached01:11211",
|
||||||
|
{% endif %}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
@ -43,7 +43,7 @@ git_repo_path = /var/cache/fedoracommunity/git.fedoraproject.org
|
||||||
# and fill in the user info here. Never check this file into git with
|
# and fill in the user info here. Never check this file into git with
|
||||||
# this information filled in
|
# this information filled in
|
||||||
fedoracommunity.connector.fas.minimal_user_name={{ fcommFasUser }}
|
fedoracommunity.connector.fas.minimal_user_name={{ fcommFasUser }}
|
||||||
fedoracommunity.connector.fas.minimal_user_password={{ fcommFasPassword }}
|
fedoracommunity.connector.fas.minimal_user_password={{ fcommFasPassword }}
|
||||||
|
|
||||||
# This is insecure, use only for testing
|
# This is insecure, use only for testing
|
||||||
fedora.clients.check_certs = True
|
fedora.clients.check_certs = True
|
||||||
|
@ -146,7 +146,11 @@ beaker.session.key = fedoracommunity
|
||||||
beaker.session.secret = {{ fcommBeakerSessionSecret }}
|
beaker.session.secret = {{ fcommBeakerSessionSecret }}
|
||||||
|
|
||||||
beaker.cache.type = ext:memcached
|
beaker.cache.type = ext:memcached
|
||||||
|
{% if env == 'staging' %}
|
||||||
|
beaker.cache.url = memcached02:11211
|
||||||
|
{% else %}
|
||||||
beaker.cache.url = memcached01:11211
|
beaker.cache.url = memcached01:11211
|
||||||
|
{% endif %}
|
||||||
beaker.cache.lock_dir = /var/cache/fedoracommunity/beaker
|
beaker.cache.lock_dir = /var/cache/fedoracommunity/beaker
|
||||||
|
|
||||||
# If you'd like to fine-tune the individual locations of the cache data dirs
|
# If you'd like to fine-tune the individual locations of the cache data dirs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue