running second carbon-cache on same machine

Asked by Jimmy

Is it possible to configure a second carbon-cache to run on the same machine? I see in the carbon.conf example a reference to the cache:foo.

# To configure special settings for the 'foo' carbon-cache instance, uncomment this:
[cache:foo]
LINE_RECEIVER_PORT = 2103
PICKLE_RECEIVER_PORT = 2104
CACHE_QUERY_PORT = 7102
# and any other settings you want to customize, defaults are inherited
# from [carbon] section.

When I remove the comments and start up carbon, it only starts 1 carbon listening on the default port 2003.

Am I missing something?

Question information

Language:
English Edit question
Status:
Solved
For:
Graphite Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Leinartas
Solved:
Last query:
Last reply:
Revision history for this message
Best Michael Leinartas (mleinartas) said :
#1

You should be able to specify the instance on the commandline with the --instance option:
carbon-cache.py --instance=foo start

Note that the default carbon instance is instance 'a'

Revision history for this message
Jimmy (jimmyattime) said :
#2

thanks, this worked.

Revision history for this message
Jimmy (jimmyattime) said :
#3

Thanks Michael Leinartas, that solved my question.