<acct-file>
By default one thread handles sending, and batches go out one after another. The line lets you raise their number — the ceiling is 50.
This is rarely needed and only under one condition: batches must appear faster than one thread manages to send them. With a one-minute interval this means sending one batch takes more than a minute — that is, the receiver is slow or the batch is huge.
Record order is not guaranteed with several threads. Batches go out in parallel, and the receiver may get them in a different order than they were assembled in. For accounting this usually does not matter — the records have their own timestamps — but a receiver that relies on order will break.
Compression is worth trying first. http-webhook-transfer-encoding reduces the transferred volume, and that is often enough instead of parallelizing.
The line will come in handy if the fleet’s stream grows so much that minute batches stop fitting into a minute.
Raise it only for a measured reason:
| Value | When |
|---|---|
| 1 (default) | almost always |
| 2–5 | batches do not manage to go out within the interval |
| up to 50 | a very large stream and a fast receiver |
Before that, compression is worth trying — it is cheaper for both sides.
# raise it only when batches do not fit into the interval <acct-file /var/log/pmta/webhook.json> http-webhook-url https://hub.example.com/api/telemetry/pmta/7 http-webhook-max-interval 1m http-webhook-max-connections 4</acct-file>
what people get wrong and how it ends2 mistakes▶
our experience
our experience
2 relations
ls -la /var/log/pmta/*.json | wc -l
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.