(Optional) Configuring Dynamic Resource Allocation
The dynamic resource allocation feature allocates resources as you need them and releases them when you do not need them, rather than reserving the resources. For more information, see Configuring Dynamic Resource Allocation in the Spark Guide.