Changelog

Faster retries

Retries are now faster and bursts of retries no longer swamp the log store.

Before each retry, Outpost looks up the latest delivery attempt for the event and destination. On ClickHouse, that lookup used to read more data the longer you kept logs. It now starts from the time of the attempt that failed, so its cost no longer grows with retention. With 8 million attempts over 30 days, one lookup dropped from about 300 ms of ClickHouse CPU to about 14 ms.

The scheduler now runs at most RETRY_MAX_CONCURRENCY retries at once per process (default 100) and adds jitter to its backoff, so failed lookups don't all come back at the same moment. Set RETRY_LOOKUP_BATCH_SIZE to combine the lookups of retries running at the same time into one query. In our tests, a batch size of 50 cut the ClickHouse CPU spent on lookups by about three quarters. CLICKHOUSE_MAX_OPEN_CONNS, CLICKHOUSE_DIAL_TIMEOUT_SECONDS and CLICKHOUSE_READ_TIMEOUT_SECONDS tune the ClickHouse connection pool, with defaults unchanged.

Available now in v1.7.0.