Walter_C
Databricks Employee
Databricks Employee

Enabling Photon Acceleration on your Databricks cluster reduces the available executor memory because Photon uses a different memory management strategy compared to standard Spark. Photon is designed to optimize performance by leveraging the underlying hardware more efficiently, but this comes at the cost of reduced memory allocation for Spark executors.

To address the issue of reduced executor memory when Photon is enabled, you can try the following approaches:

  1. Increase the Node Size: Upgrade your cluster to use larger node types with more memory. For example, you can switch from Standard_DS4_v2 to Standard_DS5_v2, which provides more memory and CPU resources.

  2. Adjust Spark Configuration: You can fine-tune Spark configurations to optimize memory usage. For instance, increasing the number of shuffle partitions can help distribute the workload more evenly and reduce memory pressure on individual executors. You can set this configuration at the cluster level:

     

    spark.sql.shuffle.partitions 1000