cancel
Showing results for 
Search instead for 
Did you mean: 
Administration & Architecture
Explore discussions on Databricks administration, deployment strategies, and architectural best practices. Connect with administrators and architects to optimize your Databricks environment for performance, scalability, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable ability to choose PHOTON

noorbasha534
Contributor

Dear all,

as an administrator, I want to restrict developers from choosing 'photon' option in job clusters. I see this in the job definition when they choose it -

"runtime_engine": "PHOTON"

How can I pass this as input in the policy and restrict developers from using photon...

Thank you for the guidance..

Br,

Noor.

2 REPLIES 2

Isi
Contributor

Hi @noorbasha534 ,

To restrict developers from selecting Photon in job clusters, you need to define a cluster policy that enforces constraints on the "runtime_engine" field.

{
  "runtime_engine": {
    "type": "fixed",
    "value": "STANDARD",
    "hidden": true
  }
}

 

•The "type": "fixed" ensures that users cannot modify this value.
• The "value": "STANDARD" forces clusters to only use the Standard runtime, effectively blocking Photon.
•The "hidden": true prevents developers from even seeing this option in the UI.

“I created a new policy called ‘test’ to verify the restrictions, and as you can see, the option doesn’t appear in the menu! 🙂 “ (Without hidden It will appear but you cant select it)

Captura de pantalla 2025-03-18 a las 14.46.36.png
Hope this helps 🙂

Isi

noorbasha534
Contributor

ah nice...i will try on my side. thanks much.

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group