Search index on multiple carbon-cache boxes.

Asked by Cody Stevens

I have 2 carbon-cache boxes that are clustered. 1/2 of my metrics go to one box and 1/2 to the other. There is a load balancer in front of them to handle the web requests. I have a cron generating the index file on each machine. Last night I noticed that when I do a search I only get results for whichever machine the load balancer has sent me to. This makes sense. Are there any plans to store this possibly in the webapp database? I have a mysql instance for the user saved graphs etc... because otherwise the same problem would exist. Or would a better approach be for me to combine the 2 into one file and distribute to both hosts?

Question information

Language:
English Edit question
Status:
Answered
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
chrismd (chrismd) said :
#1

You raise a good point, I use the search feature so seldom these days that I kind of forgot about this issue. Either approach sounds fine. The simplest method would probably be to merge and distribute the index files. Putting it in the database would make things more automatic (though I think we'd still have it generate a local index file from what's in the database rather than querying the database for every lookup). Let me know if you'd be willing to implement/contribute this.

Can you help with this problem?

Provide an answer of your own, or ask Cody Stevens for more information if necessary.

To post a message you must log in.