MattHodge / Graphite-PowerShell-Functions

A group of PowerShell functions that allow you to send Windows Performance counters to a Graphite Server, all configurable from a simple XML file.
https://hodgkins.io/using-powershell-to-send-metrics-graphite
GNU General Public License v3.0
218 stars 71 forks source link

Question About behavior on load balanced environments. #35

Closed toni-moreno closed 9 years ago

toni-moreno commented 9 years ago

Hi @MattHodge I'm using your powerful tools to send windows stats to graphite and we are working on a environment with load balancers in front of several graphite carbon daemons.

I would like to know how Graphite-powershell-Functions works when configured as a service on this environment. ( always assuming TCP connections)

In a failover contingency scenario ( one graphite carbon fails and close all its TCP connections).

In a recovery scenario (we can recover a carbon server after a crash and load balancers are beginning to distribute load again over all our carbon servers).

Thank you very much

MattHodge commented 9 years ago

Hey @toni-moreno.

is Graphite-Powershell-Service able to do a reconnection?
in that case which is reconnection frequency until it finally reconnects?

A new connection to the server is created and torn down at every interval defined by your setting for <MetricSendIntervalSeconds> in the configuration file for both TCP and UDP connections. It should reconnect just fine.

is Graphite-Powershell-Service able to Force a Reconnect (periodically each 3 or 6 hours perhaps) to enabling load redistribution over all carbon servers?

As it reconnects every time metrics are sent, this won't be a problem :) Happens every few seconds.