Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(dags): raise us query log export memory cap to 26 gib (#110563)

Vasco de Krijger3710b358c90a
diff --git a/posthog/dags/export_query_log_archive_to_s3.py b/posthog/dags/export_query_log_archive_to_s3.py
index d9c0587da9d6..2494beab8c4c 100644
--- a/posthog/dags/export_query_log_archive_to_s3.py
+++ b/posthog/dags/export_query_log_archive_to_s3.py
@@ -198,7 +198,10 @@ SETTINGS s3_truncate_on_insert = 1, max_threads = {config.max_threads},
@dagster.job(
partitions_def=daily_partitions,
resource_defs={
- "cluster": OpsClickhouseClusterResource(max_execution_time=2 * 60 * 60, max_memory_usage=20 * ONE_GB)
+ "cluster": OpsClickhouseClusterResource(
+ max_execution_time=2 * 60 * 60,
+ max_memory_usage=(26 if settings.CLOUD_DEPLOYMENT == "US" else 20) * ONE_GB,
+ )
},
tags={
"owner": JobOwners.TEAM_ANALYTICS_PLATFORM.value,