Skip to content

MWAA environment stuck as “Unavailable” since recent AWS outage — unable to apply configuration changes

0

Hi everyone,

Since the AWS outage a few weeks ago, our MWAA (Managed Workflows for Apache Airflow) environment has been showing the status “Unavailable”.

Even though production is technically running fine, we can’t make any configuration updates. Every time we attempt to apply changes, for example, adjusting celery.worker_autoscale from 10,1 to 20,1, the environment status changes to “Rolling back” and eventually returns to “Unavailable”, similar to what happened during the outage. The exact same configuration works in another environment with the status "Available".

We’ve also tried to update other parameters to improve parallelism and reduce processing time/cost, but none of these updates are being applied.

Here’s our current setup for context:

Configuration option Custom value celery.worker_autoscale 20,1 core.dag_concurrency 20 core.parallelism 20 Maximum worker count 10 Minimum worker count 1 Maximum web server count 2 Minimum web server count 2 Scheduler count 2 Environment class mw1.medium

Is anyone else experiencing this issue? Is there a way to recover an MWAA environment stuck as “Unavailable” or to have AWS Support force the environment into a “Healthy” state so configuration updates can be applied again?

Any suggestions or insights would be greatly appreciated!

Thanks, Daniel

2 Answers
1

Hi,

Yes, during the service disruption event occurred on 10/20, this behavior was commonly observed by multiple customers, in some cases, it came back in 15-20 minutes, while in others it took little longer but I don;t recall issue persisting up until now.

Having said that however, most of these reported issues were resolved by end of the event. If you are still encountering this issue, I'd highly encourage you to reach out to AWS support giving details of your MWAA environment, support will be able to assist and help in resolving the issue.

Let me know if you have any questions further, happy to help.

AWS
EXPERT

answered 10 months ago

0

When an Amazon MWAA environment is stuck in an "Unavailable" state after an outage, it can prevent you from applying configuration changes. Even though your DAGs may be running, the environment management functionality is impaired.

Here are some steps you can take to address this issue:

  1. Test your environment configuration locally using the aws-mwaa-local-runner or aws-mwaa-docker-images tools available on GitHub. This can help verify that your configuration is valid before attempting to apply it.

  2. Run the Verify Environment script from AWS Support Tools to check your Amazon VPC network setup and configuration for your MWAA environment. This might identify networking issues that could be preventing the environment from becoming available.

  3. If you're trying to update parameters like celery.worker_autoscale, consider that when an environment update fails, MWAA rolls back to the previous stable version of the environment. Your environment being stuck in "Unavailable" suggests there might be an underlying issue preventing successful updates.

  4. For your specific configuration, consider these optimization suggestions:

  • The celery.worker_autoscale setting controls how many tasks can run concurrently on a worker. Setting it to 20,1 might be too high for your environment class (mw1.medium), causing resource constraints.
  • Ensure your worker, scheduler, and webserver logs are set to WARNING level instead of INFO to reduce excessive logging that could impact performance.
  • Consider staggering task execution to distribute the workload more evenly.
  1. Since you mentioned that production is technically running fine, you might want to create a new environment with your desired configuration and migrate your workloads to it, rather than continuing to try to fix the current one.

  2. As you suggested, contacting AWS Support would be appropriate in this situation. They can investigate the specific state of your environment and potentially help recover it or provide guidance on creating a new environment with your desired configuration.

This appears to be an unusual situation where the environment is functional enough to run DAGs but is stuck in a state that prevents configuration updates, likely due to the previous outage affecting the control plane functionality.
Sources
Troubleshooting: Creating and updating an Amazon MWAA environment - Amazon Managed Workflows for Apache Airflow
Resolve tasks stuck in running state in Amazon MWAA environment | AWS re:Post
Resolve MWAA SIGTERM SIGKILL errors | AWS re:Post

answered 10 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.