Search code examples
pythonamazon-web-servicesaws-glue-spark

AWS Glue Python shell Configuration DPU


does 1 dpu setting change when I use glue python shell instead of glue spark?. I recently saw a post Maximum number of concurrent tasks in 1 DPU in AWS Glue and I saw they were talking about glue spark, but not from aws glue python shell, that's why I have that doubt.


Solution

  • As per this doc an AWS Glue job of type Python shell can be allocated either 1 DPU or 0.0625 DPU.By default, AWS Glue allocates 0.0625 DPU to each Python shell job.

    You are billed $0.44 per DPU-Hour in increments of 1 second, rounded up to the nearest second, with a 1-minute minimum duration for each job of type Python shell.

    A single DPU provides processing capacity that consists of 4 vCPUs of compute and 16 GB of memory as per this.

    At max you can provide 1 DPU as it doesn't need many resources because there is no distributed processing involved. You try giving more than 1 DPU and will encounter error as shown below:

    enter image description here