Limits and performance
Size Athena workloads, control concurrency, manage costs, and plan for performance.
Set practical resource and concurrency limits before production demand grows. These guardrails protect workgroup stability and cost as workloads, API traffic, and BI usage increase.
Operational boundaries
Compute sizing
Dev / reference retail dataset
Default workgroup; enforce scan limits in dev
Full backfill
Run during off-peak; watch data scanned in the Athena console
Daily incrementals
Partition or time-filter aggressively in SQL
Semantic API / BI
Separate workgroup optional (query vs. build)
Concurrency and API replicas
Athena workgroups have concurrent query limits. Align Vulcan concurrent_tasks and API replicas with your workgroup's quotas.
api:
replicas: 2
resources:
limits:
cpu: "4000m"
memory: "3Gi"Scheduling and latency floor
Schedule after upstream lands in S3
Avoid partial external table reads
Prefer timezone: UTC in production
Avoid DST surprises
endOn ≥ 1 to 2 years out
An expired endOn halts the workflow silently
concurrencyPolicy: Forbid
Prevents overlapping incrementals
Athena's engine startup is usually lower than a cold Databricks warehouse start, but varies by query. The semantic API adds roughly 1.5 to 3 seconds of overhead (validate in your stack). Large scans are dominated by S3 read volume.
Performance reference
Validate on a known dataset and catalog scale before publishing SLOs. Measure data scanned per model run (the primary cost driver), plan/run duration (concurrency and partition design), semantic query wall time (API + scan volume), and incremental window width (bytes touched per run).
Cost guardrails
Athena charges primarily for data scanned. Reduce scanned bytes before raising limits or adding capacity.
Workgroup limits
Set a bytes-scanned limit for every workgroup. Use a lower limit in development to catch unpartitioned queries early.
Set concurrency limits to match the workgroup quota and expected load. Reserve separate workgroups for scheduled builds and interactive workloads when they can compete.
Query timeouts
Set the workgroup query timeout to bound runaway queries. Set a shorter timeout for interactive workloads than for scheduled transformations.
Treat timeout failures as signals to improve filters, partitions, or query design. Do not resolve them by increasing the limit without checking scanned bytes.
Cost attribution
Use separate workgroups for each environment. Assign separate S3 result prefixes to retain an environment-level audit trail.
Tag DataOS resources with the engine and owning product. Use the same product identifier in AWS cost allocation tags and billing reports.
Storage
For external Parquet, apply S3 lifecycle rules to staging data and obsolete query results. Keep source retention separate from query-result retention.
For managed tables, design partitions around common filters. Compact small files and remove obsolete files through your organization's retention policy.
Last updated
Was this helpful?