Skip to content

Commit f10dd0b

Browse files
committed
fix(stats): lower aggregation bucket size
1 parent 2c82efc commit f10dd0b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

invenio.cfg

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,9 @@ from zenodo_rdm.stats.proxies import current_stats_search_client
470470

471471
for _agg in STATS_AGGREGATIONS.values():
472472
_agg.setdefault("params", {})["client"] = current_stats_search_client
473+
# NOTE: Originally was 10_000, but when under heavy load, this can cause timeouts
474+
# and aggregations processing getting stuck.
475+
_agg.setdefault("params", {})["max_bucket_size"] = 5_000
473476

474477
INDEXER_MQ_PUBLISH_KWARGS = {
475478
"retry": True,

0 commit comments

Comments
 (0)