User guide
frequency, then you must increase the collection period for all the metrics classes.
However, you must ensure that you have adequate machine resource.
WINDOW_PERIOD is measured in seconds. The values are 900 (default) and 300 for
15-Minutes and 5-Minutes periods respectively. However, on special mix period,
you must set the value at 900 (15 Minutes)
WAVE_PERIOD is an internal window sliding period that is measured in seconds. This
value must be non-zero integer, and a denominator value for WINDOW_PERIOD. The
default value is 300 for 5 Minutes. The default value is recommended for most of
the scenarios. Therefore, you change the default value only when you have a
strong reason.
ACCOUNTING_WAIT_DURATION or PERFORMANCE_WAIT_DURATION is the amount of time to
wait for complete records for a period before writing to the CSV file. The
ACCOUNTING_WAIT_DURATION parameter is used for the accounting classes and the
PERFORMANCE_WAIT_DURATION parameter is used for the performance classes.
However, both the parameters function the same way. This value must be divisible
by WAVE_PERIOD. The default value is 300 for 5 Minutes.
For example, if ACCOUNTING_WAIT_DURATION and WAVE_PERIOD is 300, then the job
will buffer records for one sliding window period (ACCOUNTING_WAIT_DURATION and
WAVE_PERIOD), while the WINDOW_PERIOD is 900
Scenario 1
01:31 Received 100 accounting records with timestamp of 01:01 (Rounded down
to its window period: 01:00)
01:32 Received 200 accounting records with timestamp of 01:01 (Rounded down
to its window period: 01:00)
01:40 WAVE_PERIOD is triggered.
01:42 Received 200 accounting records with timestamp of 01:17 (Rounded down
to its window period: 01:15)
01:45 WAVE_PERIOD is triggered. There are no new records for the 01:00 period
because the wait period is 1 sliding window. The records for the 01:00
period will be written to the CSV file.
Scenario 2
01:31 Received 100 accounting records with timestamp of 01:01 (Rounded down
to its window period: 01:00)
01:32 Received 200 accounting records with timestamp of 01:01 (Rounded down
to its window period: 01:00)
01:40 WAVE_PERIOD is triggered.
01:42 Received 200 accounting records with timestamp of 01:17 (Rounded down
to its window period: 01:15)
01:45 WAVE_PERIOD is triggered. There are no new records for the 01:00 period.
The records for the 01:00 period will not be written to the CSV file.
01:46 Received 200 accounting records with timestamp of 01:19 (Rounded down
to its window period: 01:15)
01:50 WAVE_PERIOD is triggered. There are no new records for the 01:00 period
because the wait period is 1 sliding window. The records for the 01:00
period will be written to the CSV file.
Chapter 10. Modifying the collection strategy 67