How to apply jitter in Harvest (rpm/deb/native) #2856
Replies: 3 comments 5 replies
-
Hello @rahulguptajss I've applied the change and restart the harvest. How can I know if it is working? This functionality is only for the performance information, right? I've applied the config at the same level that collector. Is that correct? |
Beta Was this translation helpful? Give feedback.
-
Hi @cgrinds I have executed the command that you said but I don't see the jitter parameter in the log. 2024-04-25T16:45:45+02:00 INF collector/collector.go:585 > Collected Poller=POLLER apiMs=232 calcMs=0 collector=ZapiPerf:Volume exportMs=176 instances=178 instancesExported=366 metrics=4806 metricsExported=5228 parseMs=53 pluginMs=1 pollMs=289 skips=0 zBegin=1714056344924 Maybe the jitter was implemented in the nightly version? Thanks. |
Beta Was this translation helpful? Give feedback.
-
Hello @cgrinds I have tested without luck, I don't see the jitter parameters. I don't know what I am doing wrong. |
Beta Was this translation helpful? Give feedback.
-
What is jitter?
By default, Harvest sends all ZAPI/REST requests at almost the same time. To smear the collector startup times across a wider window, you can use jitter with a given time, let's say one minute, then all requests are distributed across that minute randomly.
Jitter can be configured for any of the Harvest collectors, including: Ems, Rest, RestPerf, StorageGrid, Zapi, ZapiPerf
Note:
ZapiPerf
Step 1: Create
custom.yaml
Navigate to the
zapiperf
directory:cd /opt/harvest/conf/zapiperf
Create
custom.yaml
:Update the file with the following content. If you already have
custom.yaml
then just add below line in the file at top ofcustom.yaml
Step 2: Restart Harvest
RestPerf
Step 1: Create
custom.yaml
Navigate to the
restperf
directory (assuming this should be different from zapiperf):cd /opt/harvest/conf/restperf
Create
custom.yaml
:Update the file with the following content. If you already have
custom.yaml
then just add below line in the file at top ofcustom.yaml
Step 2: Restart Harvest
Beta Was this translation helpful? Give feedback.
All reactions