

# Using auto scaling for AWS Glue

Auto scaling lets AWS Glue add and remove workers during a job run. A run then uses the resources that the work needs instead of a fixed number of workers.

You can use auto scaling on AWS Glue in two ways:
+ **Managed scaling profile** – An AWS Glue managed configuration that automatically scales the number of workers for your job. You turn it on with `--scaling-profile balanced`. The managed scaling profile is available for Spark ETL jobs on AWS Glue 6.0 and later, and we recommend it for those jobs.
+ **Legacy auto scaling** – Auto scaling that you turn on with `--enable-auto-scaling`. Legacy auto scaling is available for ETL, interactive session, and streaming jobs on AWS Glue 3.0 and later.

For new jobs on AWS Glue 6.0 and later, we recommend the managed scaling profile. For existing jobs that you upgrade to AWS Glue 6.0 or later, we recommend comparing performance with both settings and choosing the one that fits your workload. The managed scaling profile takes priority when a run sets both `--scaling-profile balanced` and `--enable-auto-scaling true`.

This section covers the following topics.
+ [Using the managed scaling profile for AWS Glue](scaling-profile.md)
+ [Using legacy auto scaling for AWS Glue](auto-scaling-legacy.md)
+ [Monitoring and billing for auto scaling](auto-scaling-observability.md)