cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Cluster policy type

thrinadhReddy
New Contributor II

Hi guys,

I am creating a cluster policy through json. 

"runtime_engine": {

"type": "fixed"

"value": "PHOTON"

}

When I run the above code... PHOTON option is getting enabled but graying out... What would I specify in type field so that the photon option should not be grayed out.

Thank you ๐Ÿ˜Š

4 REPLIES 4

Kaniz_Fatma
Community Manager
Community Manager

Hi @thrinadhReddyIt appears that youโ€™re trying to configure the runtime_engine in Databricks cluster policy using JSON. The PHOTON option is getting enabled but greyed out, and youโ€™d like to know how to prevent that. Letโ€™s dive into this!

  1. What is Photon?

  2. Grayed Out Option:

    • If the Photon option is grayed out, it might be due to certain limitations or compatibility issues.
    • For example, Photon acceleration is not supported for ML Runtimes2. If youโ€™re using an ML runtime, you wonโ€™t be able to enable Photon.
    • To avoid the grayed-out behavior, consider using a standard Databricks Runtime (above 9.1 LTS) and explicitly enable Photon.
  3. Solution:

    • If you want to use Photon, ensure that youโ€™re using a compatible runtime version (not an ML runtime) and follow these steps:
      • Create a cluster using Databricks Runtime (not ML Runtime).
      • Enable Photon by selecting the โ€œUse Photon Accelerationโ€ checkbox during cluster creation or editing.
      • Adjust worker and driver types as needed for optimal performance.

Remember to check the runtime version and compatibility when configuring Photon in your cluster.

 

Hi Kaniz,

Thanks for the reply.

Yes. This is exactly what I am looking for.

"It appears that youโ€™re trying to configure the runtime_engine in Databricks cluster policy using JSON. The PHOTON option is getting enabled but greyed out, and youโ€™d like to know how to prevent that. Letโ€™s dive into this!"

I don't want it to be grayed out.. I just want it to be checked and accessible...

I used standard Databricks Runtime (11.3 LTS (Scala 2.12, Spark 3.3.0)).

Is there anything other than type=fixed, so that it won't gray out.

Yeshwanth
Honored Contributor
Honored Contributor

@thrinadhReddy

This section includes a reference for each of the available policy types. There are two categories of policy types: fixed policies and limiting policies.

Fixed policies prevent user configuration on an attribute. The two types of fixed policies are:

https://docs.databricks.com/en/admin/clusters/policy-definition.html#supported-policy-types

Beast regards,

Yesh

Hi Yeshwant,

I did go through that link. No combination of choices work in my scenario. I tried all type options, nothing works.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!