Skip to content
Snippets Groups Projects
Commit 6bdb9972 authored by Alexander Pace's avatar Alexander Pace
Browse files

Turning off django-elasticache

According to the docs, it seems like this is helpful in the case that
you have a cluster of elasticache nodes, but i'm only using one.
So I *think* that specifying the rules right should have the nodes
talk to the correct server and it should just work with memcached
parent b7529b53
No related branches found
No related tags found
1 merge request!46Refreshed look and feel
Pipeline #98160 passed
......@@ -34,7 +34,7 @@ before_script:
DJANGO_SETTINGS_MODULE: "config.settings.container.dev"
DJANGO_TWILIO_ACCOUNT_SID: "fake_sid"
DJANGO_TWILIO_AUTH_TOKEN: "fake_token"
DJANGO_AWS_ELASTICACHE_ADDR: "local_host:80"
DJANGO_AWS_ELASTICACHE_ADDR: "fake_server:80"
LVALERT_OVERSEER_PORT: "2"
LVALERT_SERVER: "fake_server"
LVALERT_USER: "fake_user"
......
......@@ -86,13 +86,26 @@ ALERT_EMAIL_FROM = get_from_env('DJANGO_ALERT_EMAIL_FROM')
# AWS Elasticache settings:
AWS_ELASTICACHE_ADDR = get_from_env('DJANGO_AWS_ELASTICACHE_ADDR')
CACHES['default'] = {
'BACKEND': 'django_elasticache.memcached.ElastiCache',
#CACHES['default'] = {
# 'BACKEND': 'django_elasticache.memcached.ElastiCache',
# 'LOCATION': AWS_ELASTICACHE_ADDR,
# 'OPTIONS': {
# 'IGNORE_CLUSTER_ERRORS': True,
# },
# }
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': AWS_ELASTICACHE_ADDR,
'OPTIONS': {
'IGNORE_CLUSTER_ERRORS': True,
},
}
},
# For API throttles
'throttles': {
'BACKEND': 'django.core.cache.backends.db.DatabaseCache',
'LOCATION': 'api_throttle_cache', # Table name
},
}
MIDDLEWARE = [
'core.middleware.maintenance.MaintenanceModeMiddleware',
'events.middleware.PerformanceMiddleware',
......
......@@ -32,7 +32,7 @@ phonenumbers==8.8.11
python-ldap==3.1.0
python-memcached==1.59
# Install django-elasticache along with python memcached:
git+git://github.com/gusdan/django-elasticache.git#egg=django-elasticache
#git+git://github.com/gusdan/django-elasticache.git#egg=django-elasticache
scipy==1.2.1
sentry-sdk==0.7.10
service_identity==17.0.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment