From b993ec11031fc4f6399fa1f38e9b4dfe862fa825 Mon Sep 17 00:00:00 2001 From: Todd Schiller Date: Fri, 31 Mar 2023 23:17:09 -0400 Subject: [PATCH] Try fixing memcachier on Heroku (#513) --- openintel/settings.py | 17 ----------------- requirements.txt | 3 ++- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/openintel/settings.py b/openintel/settings.py index 40c47215..2933eae0 100644 --- a/openintel/settings.py +++ b/openintel/settings.py @@ -426,23 +426,6 @@ def _get_cache(): "binary": True, "username": env("MEMCACHIER_USERNAME"), "password": env("MEMCACHIER_PASSWORD"), - "behaviors": { - # Enable faster IO - "no_block": True, - "tcp_nodelay": True, - # Keep connection alive - "tcp_keepalive": True, - # Timeout settings - "connect_timeout": 2000, # ms - "send_timeout": 750 * 1000, # us - "receive_timeout": 750 * 1000, # us - "_poll_timeout": 2000, # ms - # Better failover - "ketama": True, - "remove_failed": 1, - "retry_timeout": 2, - "dead_timeout": 30, - }, }, } } diff --git a/requirements.txt b/requirements.txt index 0828cc04..657013fe 100644 --- a/requirements.txt +++ b/requirements.txt @@ -22,7 +22,8 @@ django-recaptcha==3.0.0 django-sendgrid-v5==1.1.0 psycopg2-binary==2.9.5 -pylibmc==1.6.3 +# Having problems deploying to Heroku with 1.6.3 +pylibmc==1.6.2 redis==4.4.4 rollbar==0.16.3