# Set multiple login nodes in Clusters

**URL:** <https://discourse.openondemand.org/t/set-multiple-login-nodes-in-clusters/1582>\
**Category:** Get Help\
**Created:** [July 16, 2021, 2:13am UTC](https://discourse.openondemand.org/t/set-multiple-login-nodes-in-clusters/1582 "2021-07-16T02:13:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wooloo1121](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/wooloo1121/32/566_2.png) [@wooloo1121](https://discourse.openondemand.org/u/wooloo1121)\
**Post date:** [July 16, 2021, 2:13am UTC](https://discourse.openondemand.org/t/set-multiple-login-nodes-in-clusters/1582/1 "2021-07-16T02:13:39Z")

</div>

Hi,

We want to set multiple login nodes at Cluster shell access, but didn’t find any instructions on how to do this? Could you provide any guidance?

Thank you very much and look forward to your reply.

Best,  
Karin

---

<div class="post-metadata">

**Author:** ![azric](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/azric/32/63_2.png) [@azric](https://discourse.openondemand.org/u/azric)\
**Post date:** [July 16, 2021, 10:09am UTC](https://discourse.openondemand.org/t/set-multiple-login-nodes-in-clusters/1582/2 "2021-07-16T10:09:07Z")

</div>

We have 2 login nodes (logiin2 & login3 - don’t ask).cluster…. under a single DNS entry called login.clister…. THis effects a rround robin distribution of the incoming ocnnections be they from OOD, or ssh.

Will that do what you need?

Ric

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [July 16, 2021, 3:47pm UTC](https://discourse.openondemand.org/t/set-multiple-login-nodes-in-clusters/1582/3 "2021-07-16T15:47:50Z")

</div>

That’s right. Most sites just have the clusters point to a DNS entry that resolves to many hosts. If you would like to specify say 1-4 nodes specifically in the `Clusters` drop down menu (that is you specify the hosts specifically and not the DNS entry that round robins to them) - I made this documentation ticket for that strategy. There’s another topic here on discourse where I said the same, but can’t now find it (though I only looked for a second).

> <https://github.com/OSC/ood-documentation/issues/539>
>
> This discourse topic came in today about login clusters, and it reminded me of s…ome other topic that I can't now quickly find.
> 
> https://discourse.openondemand.org/t/set-multiple-login-nodes-in-clusters/1582
> 
> In any case, the original topic wanted a cluster that was just a login node, so it appeared in the "Clusters" drop down menu but you could not actually schedule anything on it. 
> 
> The advice I gave was to have a cluster configuration like so that doesn't have a \`v2.job\` section. Only metadata and login information.
> \`\`\`yaml
> \---
> v2:
> metadata:
> title: "Pitzer Login Only"
> url: "https://www.osc.edu/supercomputing/computing/pitzer"
> hidden: false
> login:
> host: "pitzer.osc.edu"
> \`\`\`
> 
> The topic currently in discourse (linked above) seems to indicate that they would like specific login hosts to show up in their dropdown menus. I.e., break pitzer into 4 distinct hosts/menu items.
> 
> You'd accomplish this by creating a cluster file for each like so:
> \`\`\`yaml
> \# clusters.d/pitzer\_01\_login.yml
> \---
> v2:
> metadata:
> title: "Pitzer Login 01"
> url: "https://www.osc.edu/supercomputing/computing/pitzer"
> hidden: false
> login:
> host: "pitzer-login01.hpc.osc.edu"
> \`\`\`

But the basic premise is you define a cluster file in `clusters.d` that only has data for the shell applications and if you want to specific hosts, well then you just create individual files for each host.

---

<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, 3:42pm UTC](https://discourse.openondemand.org/t/set-multiple-login-nodes-in-clusters/1582/4 "2022-05-26T15:42:50Z")

</div>

Closed on May 26, 2022, 3:42pm UTC


