# How to set default global cluster

**URL:** <https://discourse.openondemand.org/t/how-to-set-default-global-cluster/936>\
**Category:** Feature Requests and Roadmap Discussion\
**Tags:** feature-request, question\
**Created:** [May 28, 2020, 10:34am UTC](https://discourse.openondemand.org/t/how-to-set-default-global-cluster/936 "2020-05-28T10:34:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baverhey](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/baverhey/32/605_2.png) [@baverhey](https://discourse.openondemand.org/u/baverhey)\
**Post date:** [May 28, 2020, 10:34am UTC](https://discourse.openondemand.org/t/how-to-set-default-global-cluster/936/1 "2020-05-28T10:34:29Z")

</div>

How to set default global cluster.

I know you can set sefault cluster on job templates.  
But we want to define our default cluster as selected in the dropdown when using the job composer.

I would like this added as a metadata info  
default\_cluster: true

or in /etc/ood/config/apps/myjobs/env

I want to create the patch if i get a push in the right direction.

---

<div class="post-metadata">

**Author:** ![efranz](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/efranz/32/27_2.png) [@efranz](https://discourse.openondemand.org/u/efranz)\
**Post date:** [May 28, 2020, 2:58pm UTC](https://discourse.openondemand.org/t/how-to-set-default-global-cluster/936/2 "2020-05-28T14:58:13Z")

</div>

I opened [https://github.com/OSC/ondemand/issues/517](https://github.com/OSC/ondemand/issues/517) which describes the changes to make. In the short term it is easier to have the configuration be based in the env.

I think “default\_cluster: true” in metadata of the cluster config is interesting. Though I wonder if we would add that to the job section instead, such as `jobs: default: true` as we are looking at supporting a default for login as well i.e `login: default: true`. Is there a use case to vary the two? Maybe not…

---

<div class="post-metadata">

**Author:** ![westburg.2](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@westburg.2](https://discourse.openondemand.org/u/westburg.2)\
**Post date:** [May 26, 2022, 4:11pm UTC](https://discourse.openondemand.org/t/how-to-set-default-global-cluster/936/3 "2022-05-26T16:11:37Z")

</div>

Closed on May 26, 2022, 4:11pm UTC


