Skip to content

Resources

John Yocum edited this page May 10, 2019 · 16 revisions

Hostgroups

As the name implies, a hostgroup is a collection of cluster nodes in Grid Engine. Hostgroups can be used to group together hosts for any reason, such as hardware capabilities, or system sponsor. In our case, we're using them to divide systems up based on their sponsor (owner).

List Hostgroups

qconf -shgrpl

Show Hostgroup

qconf -shgrp @mesa

Create Hostgroup

Using the qconf utility, create a new hostgroup named "@mesa". The utility will then open the default EDITOR, presenting a config file.

qconf -ahgrp @mesa

Example of a hostgroup configuration:

group_name @mesa
hostlist compute-0-0.brain.local compute-0-1.brain.local compute-0-2.brain.local

Modify Hostgroup

qconf -mhgrp @mesa

Delete Hostgroup

qconf -dhgrp @test

Queues

List Queues

qconf -sql

Show Queue Configuration

qconf -sq all.q

Creating a Queue

  1. Export the all.q queue, to use as a base for the new queue

     qconf -sq all.q > mesa.q
    
  2. Edit mesa.q using an editor of your choice. In most cases, you'll only need to modify qname, hostlist, and slots.

  3. Load the new configuration

     qconf -Aq mesa.q
    

Disable Queue

qmod -d all.q

Enable Queue

qmod -e all.q

Monitoring