← Back to team overview

graphite-dev team mailing list archive

Re: [Question #260936]: Running multiple carbon caches and rabbitmq

 

Question #260936 on Graphite changed:
https://answers.launchpad.net/graphite/+question/260936

    Status: Open => Answered

Denis Zhdanov proposed the following answer:
Hi Krzystof,

2015-01-19 14:56 GMT+01:00 Krzysztof
<question260936@xxxxxxxxxxxxxxxxxxxxx>:

> Question #260936 on Graphite changed:
> https://answers.launchpad.net/graphite/+question/260936
>
> Description changed to:
> Hi guys,
>
> I want to run monitoring stack based on collectd+carbon+rabbitmq however
> I have few questions.
>
> I will be pulling quite a lot of metrics about 500hosts to monitor with
> interval of 1 minute (some important metrics will be collected more
> often, not less than 10secs) so I assume about 200k metrics/minute. Do I
> need multiple carbon caches to handle this amount of traffic? Or a
> single carbon cache should be enough? (carbon will be on quite powerful
> server with 6 SSD disks).

I would recommend to run 4-6 carbon caches (behind relay with
consistance-hashing routing) to utilize your disk horsepower wisely. IMO
single carbon instance is not able to do so.

Second question is about RabbitMQ. By default carbon creates exclusive
> queues - I want to use rabbit for zero downtime - when server with
> carbon will die rabbitmq will be collecting the metrics. But when carbon
> disconnects, the exclusive queue dissapears. Why by defualt carbon
> creates exclusive queue? I can possibly change the code of the amqp
> section in carbon .py files but is it a good idea?
>
> For now I have an idea of running a single queue in rabbit and use
> carbon-relay to spread metrics over multiple carbon-caches? Is it a good
> idea?
>
> There were also performance problems with txamqp plugin in earlier
> version of carbon, are those problems still occuring? And is the pickle
> protocol still best option for scalability?
>
I'm doubt that many people still running Graphite with AMQP transport... I
have no such experience unfortunately, but maybe someone has...

WBR,
   Denys

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.