Managing Shared AWS HealthOmics Resources with Run Groups and Run Priority
When multiple users share a single AWS account for HealthOmics workflows, resource contention can block critical work. This guide explains how you can use run groups and run priority to fairly allocate compute resources and ensure urgent analyses are never stuck behind a long queue.
When multiple users share a single AWS account for HealthOmics workflows, resource contention can block critical work. This guide explains how you can use run groups and run priority to fairly allocate compute resources and ensure urgent analyses are never stuck behind a long queue.
The Challenge
AWS HealthOmics enforces account-level service quotas for workflow runs. For example, the default quota for maximum concurrent active runs using dynamic storage is 50 per region. When multiple users or teams share a single account, a single user can consume the entire quota by submitting a large batch of runs, leaving other users unable to start their workflows until those runs complete.
This creates two common pain points:
- Resource starvation — One user submits dozens of runs and consumes all available vCPUs or run slots, blocking everyone else in the account.
- Queue unfairness — When the account is saturated, all new runs enter a PENDING state. Without prioritization, runs are processed first-in-first-out, meaning an urgent clinical analysis submitted after a large research batch must wait for the entire batch to complete.
Solution 1: Run Groups — Partition Resources Across Teams
You can use run groups to cap the compute resources available to a specific user, team, or workload. By assigning each team its own run group with defined limits, you prevent any single team from consuming the entire account quota.
How It Works
A run group sets maximum values for:
- Max vCPUs — Total concurrent vCPUs across all active runs in the group
- Max GPUs — Total concurrent GPUs across all active runs in the group
- Max concurrent runs — Number of runs that can be active simultaneously
- Max run duration — Maximum time (in minutes) before a run is automatically failed
When a run group reaches any of its limits, additional runs in that group enter PENDING status and queue until capacity is available — without affecting runs in other groups or runs outside the group.
Example: Create Run Groups for Two Teams
You can create separate run groups for a research team and a clinical team, ensuring each has guaranteed access to resources:
# Research team: larger capacity for batch workloads aws omics create-run-group --name "research-team" \ --max-cpus 256 \ --max-runs 20 \ --max-duration 1440 # Clinical team: smaller but protected capacity for time-sensitive work aws omics create-run-group --name "clinical-team" \ --max-cpus 128 \ --max-runs 10 \ --max-duration 600
Each command returns the run group ID:
{ "arn": "arn:aws:omics:us-east-1:123456789012:runGroup/1234567", "id": "1234567", "tags": {} }
Starting a Run in a Run Group
When you start a run, you assign it to a run group using the --run-group-id parameter:
aws omics start-run \ --workflow-id 9876543 \ --role-arn arn:aws:iam::123456789012:role/omics-service-role \ --name "sample-analysis-042" \ --output-uri s3://my-output-bucket/results/ \ --run-group-id 1234567 \ --storage-type DYNAMIC \ --parameters file://params.json
Now, even if the research team submits 50 runs, only 20 can be active at once (capped by their run group), leaving account-level capacity available for the clinical team.
Design Recommendations
- Sum of run group limits should not exceed your account quota. If your account allows 50 concurrent runs and you want guaranteed capacity for each team, ensure the combined max-runs across all groups stays at or below 50.
- Use max-duration as a safety net. Setting a maximum run duration catches runaway workflows that would otherwise hold resources indefinitely.
- Leave headroom for ungrouped runs. Runs without a run group share the remaining account capacity, so you can reserve some quota for ad-hoc work.
Solution 2: Run Priority — Jump the Queue for Urgent Work
You can use the --priority parameter when calling start-run to control the order in which queued runs are promoted to active status. This lets you ensure that time-sensitive analyses start before less urgent work, even if they were submitted later.
How It Works
- Priority is an integer from 1 to 100,000. Lower numbers mean higher priority (priority 1 is the highest).
- If multiple runs share the same priority, the run that was submitted first takes precedence.
- Priority applies within a run group. If a run is not in a run group, its priority is compared against all other ungrouped runs.
Example: Prioritize an Urgent Clinical Run
Imagine the clinical team's run group is at capacity with 10 active runs and several queued. A new urgent sample arrives that must be processed immediately:
aws omics start-run \ --workflow-id 9876543 \ --role-arn arn:aws:iam::123456789012:role/omics-service-role \ --name "urgent-patient-sample-099" \ --output-uri s3://my-output-bucket/results/ \ --run-group-id 1234567 \ --priority 1 \ --storage-type DYNAMIC \ --parameters file://urgent-params.json
This run moves to the front of the queue within its run group. As soon as one active run completes, this high-priority run starts next — ahead of any previously queued runs with a higher priority number (lower urgency).
Example: Assign Default Priorities by Workload Type
You can establish a convention where different workload types use different priority tiers:
# Critical / clinical (highest priority) --priority 100 # Standard production pipelines --priority 1000 # Research / exploratory (lowest priority) --priority 10000
This ensures that when the queue backs up, clinical work always proceeds before research batches, and production pipelines fall in between.
Putting It All Together
By combining run groups and run priority, you can build a resource governance model for a shared HealthOmics account:
- Create run groups for each team or workload class to partition compute capacity.
- Set priority conventions so that urgent runs within each group are processed first.
- Use max-duration to automatically fail runaway runs and free resources.
This approach gives you fair resource sharing without requiring separate AWS accounts, while still allowing urgent work to jump the queue when it matters most.
Additional Resources
- Language
- English
Relevant content
asked 3 years ago
AWS OFFICIALUpdated a year ago
AWS OFFICIALUpdated 2 years ago