Clustering does not work in 0.9.6

Reported by Steve Keller on 2010-06-17
6
This bug affects 1 person
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_hosts=CLUSTER_SERVERS)

below the local_settings import section

Now clustering works :)

chrismd (chrismd) wrote :

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.

Changed in graphite:
status: New → Fix Committed
chrismd (chrismd) on 2011-01-18
Changed in graphite:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers