Skip to content

Commit

Permalink
Try fixing memcachier on Heroku (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
twschiller authored Apr 1, 2023
1 parent 16098af commit b993ec1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 18 deletions.
17 changes: 0 additions & 17 deletions openintel/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
},
}
}
Expand Down
3 changes: 2 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b993ec1

Please sign in to comment.