Open sti-jans opened 3 years ago
Hi.
The example is simple, because there is only replication, no aggregation, no backend, no renames. Something like this (mentioning only important parameters) should work.
consensus = "none"
# absense of consensus and not being a leader will guarantee that nothing will be sent to backend,
# even connection will not be established.
start-as-leader = false
[carbon]
# interval is still meaningful, because it triggers some cleanup, but it can be left at a default vaule
interval = 30000
[network]
# a list of nodes to replicate metrics to
nodes = [ "127.0.0.1:8181" ]
# how often to send snapshots
snapshot-interval = 1000
# a maximum length of the snapshot queue, drops older snapshots in case remote node cannot receive them
max-snapshots = 1
Thanks for the answer!
What value for max-snapshots can I take to start with? Is the default value ok?
Default value means to loose each snapshot. If you have ehough memory, it's usually better to have all the snapshots for the whole aggregation interval. The bigger value is totally useless and even destructive because these will be metrics for the previous period. Note, that metrics in the snapshot are still realtime, meaning there's no timestamp inside.
So for i.e. 30 seconds interval and snapshot taken every 1 second, max-snapshots should be between 1 and 30.
Hello!
I want to clarify some details.