DB checks OK in middleware.

This commit is contained in:
Samuel Clay 2015-08-05 20:05:54 -07:00
parent 0784201444
commit 9bf765ba07
2 changed files with 14 additions and 16 deletions

View file

@ -243,6 +243,7 @@ class UserAgentBanMiddleware:
if 'profile' in request.path: return
if 'haproxy' in request.path: return
if 'dbcheck' in request.path: return
if 'account' in request.path: return
if 'push' in request.path: return
if getattr(settings, 'TEST_DEBUG'): return

View file

@ -95,31 +95,28 @@ backend maintenance
backend postgres
option httpchk GET /_dbcheck/postgres
server postgres-db01 127.0.0.1:8888 check inter 2000ms
server postgres-db01 127.0.0.1:8000 check inter 2000ms
backend mongo
option httpchk GET /_dbcheck/mongo
server mongo-db22 127.0.0.1:8888 check inter 2000ms
server mongo-db22 127.0.0.1:8000 check inter 2000ms
backend redis
option httpchk GET /_dbcheck/redis?pool=main
server redis-db40 127.0.0.1:8888 check inter 2000ms
server redis-db40 127.0.0.1:8000 check inter 2000ms
backend redis_story
option httpchk GET /_dbcheck/redis?pool=story
server redis-db41 127.0.0.1:8888 check inter 2000ms
server redis-db41 127.0.0.1:8000 check inter 2000ms
backend redis_sessions
option httpchk GET /_dbcheck/redis?pool=sessions
server redis-db42 127.0.0.1:8888 check inter 2000ms
server redis-db42 127.0.0.1:8000 check inter 2000ms
backend elasticsearch
option httpchk GET /_dbcheck/elasticsearch
server elasticsearch-db10 127.0.0.1:8888 check inter 2000ms
server elasticsearch-db10 127.0.0.1:8000 check inter 2000ms
frontend stats
listen stats
bind :1936 ssl crt newsblur.pem
default_backend stats
backend stats
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
stats auth sclay:password
stats refresh 15s
stats enable
stats hide-version
stats realm Haproxy\ Statistics
stats uri /
stats auth sclay:password
stats refresh 15s