← Back to team overview

graphite-dev team mailing list archive

[Question #664243]: Find results slow when using CLUSTER_SERVERS in two node setup

 

New question #664243 on Graphite:
https://answers.launchpad.net/graphite/+question/664243

I am trying to set up two nodes to have a high availablility setup. I am using the following local_settings.py

DEBUG = True
MEMCACHE_HOSTS = ['172.27.174.55:11211', '172.27.172.181:11211']
DEFAULT_CACHE_DURATION = 60
DEFAULT_CACHE_POLICY = [(0, 60), # default is 60 seconds
                        (7200, 120), # >= 2 hour queries are cached 2 minutes
                        (21600, 180), # >= 6 hour queries are cached 3 minutes
                        (43200, 360), # >= 12 hour queries are cached 6 minutes
                        (86400, 600)] # >= 24 hour queries are cached 10 minutes


SECRET_KEY = 'dA"%hBb24,>UhUj%`7VUb3uMFbs9!cCx'
REMOTE_EXCLUDE_LOCAL = False
CLUSTER_SERVERS=["172.27.174.55","172.27.172.181"]



I see  slow find results with over 3 seconds in the logs:

2018-02-09,15:03:12.749 :: Got a find result for <FindQuery: carbon.agents.* from Fri Feb  9 08:57:14 2018 until Fri Feb  9 15:05:14 2018> after 3.116738s
2018-02-09,15:03:12.749 :: Got all find results for <FindQuery: carbon.agents.* from Fri Feb  9 08:57:14 2018 until Fri Feb  9 15:05:14 2018> in 3.117328s

After commenting out the following:

#REMOTE_EXCLUDE_LOCAL = False
#CLUSTER_SERVERS=["172.27.174.55","172.27.172.181"]

I get much faster response times:

2018-02-09,15:04:48.227 :: Got a find result for <FindQuery: carbon.agents.*.* from Fri Feb  9 09:00:41 2018 until Fri Feb  9 15:08:41 2018> after 0.002134s
2018-02-09,15:04:48.232 :: Got all find results for <FindQuery: carbon.agents.*.* from Fri Feb  9 09:00:41 2018 until Fri Feb  9 15:08:41 2018> in 0.007380s


Does anybody know what I'm missing here?



-- 
You received this question notification because your team graphite-dev
is an answer contact for Graphite.