<acct-file>set by the Hub
Records do not go out one at a time: they accumulate and are sent in a batch. The line sets how often. The default is 5m, the minimum is 1m.
This is exactly the delay of your analytics. An event that happened right after a batch was sent will reach the receiver a whole interval later. It cannot be set below a minute — that is an engine limitation.
The batch’s second limit is size, max-size. The batch goes out on whichever condition comes first: on a large stream it goes out by size without waiting for the interval.
For regular file accounting the same role belongs to move-interval — the manual specifically notes that for a webhook this line should be used, not that one.
Next to it is max-size 1M: during a spike the batch goes out by size before the minute is up. Our receiver rejects a body larger than 32 MB with a 413 response, so the margin between 1M and the receiver’s ceiling is thirtyfold.
The interval is chosen by who looks at the data:
| Value | When |
|---|---|
| 1m (minimum) | the data is shown to a person in real time |
| 5m (default) | reporting, accumulation in a data store |
| more | the receiver is expensive per request, and freshness is not needed |
The batch also goes out by size — max-size sets the second condition.
# the minimum interval — the data goes to a dashboard people watch <acct-file /var/log/pmta/mtahub-webhook.json> http-webhook-url https://hub.example.com/api/telemetry/pmta/7 http-webhook-max-interval 1m max-size 1M </acct-file>
what people get wrong and how it ends2 mistakes▶
§ 3.3.11.2
our experience
1 relation
watch -n5 'ls -la /var/log/pmta/mtahub-webhook*'
3 articles
◇What the node tells about itself and through which channelsSeven observation surfaces: the web monitor, the console in four formats, the log, accounting, accounting search, metrics and export to external analytics.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Five ways for a queue to hand off a messageA queue does not have to use SMTP: it can write to a file, run a program, call over HTTP or discard.