Clustering does not work in 0.9.6
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graphite |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I opened a question, 114206 Cluster servers - what am i doing wrong?, a week ago. I got the response that I was doing nothing wrong, and some debugging hints. After eliminating firewall or other network issues as a cause, I did the following:
Added the following to remote_storage.py:
from graphite.logger import log
and added a log.info line to FindRequest.send()
When nothing showed up in the info.log, logging to storage.py and added the following to
the __init__ method of Store:
# - sk debugging
msg = ""
for h in remote_hosts:
msg += h + ","
log.info ("Store using remote hosts: " + msg)
Got this in the info log:
Thu Jun 17 13:45:33 2010 :: Store using remote hosts:
Implying that remote_hosts was empty.
Looked at settings.py, found that the constructor to Store is called before the
local_settings.py file is imported, so CLUSTER_SERVERS is not respected.
Moved the two lines:
LOCAL_STORE = Store(DATA_DIRS)
STORE = Store(DATA_DIRS, remote_
below the local_settings import section
Now clustering works :)
Changed in graphite: | |
status: | Fix Committed → Fix Released |
Doh... yea we actually fixed this in trunk a couple months ago but I just haven't put out a new release yet. I completely forgot it was still present in 0.9.6, sorry. Thanks for bringing this to my attention again, I'll try to get another release out soon.