How to install Open Composer

1. Installation

Open Composer runs on Open OnDemand. Save Open Composer in your Open OnDemand application directory: /var/www/ood/apps/sys/.

# cd /var/www/ood/apps/sys/
# git clone https://github.com/RIKEN-RCCS/OpenComposer.git

2. Setting

Create ./conf.yml.erb with reference to ./conf.yml.erb.sample.

# cd OpenComposer
# cp conf.yml.erb.sample conf.yml.erb
Item nameSetting
apps_dirApplication directory
schedulerJob scheduler (slurm, pbspro, sge, fujitsu_tcs)
clusterCluster properties
data_dirDirectory where submitted job information is stored (Default is ${HOME}/composer)
login_nodeLogin node when you launch the Open OnDemand web terminal
ssh_wrapperCommand for using the job scheduler of another node using SSH
binPATH of commands of job scheduler
bin_overridesPATH of each command of job scheduler
sge_rootDirectory for the Grid Engine root (SGE_ROOT)
footerText in the footer
thumbnail_widthWidth of thumbnails for each application on the home page
navbar_colorColor of navigation bar
dropdown_colorColor of dropdown menu
footer_colorColor of footer
category_colorBackground color of the home page category
description_colorBackground color of the application description in the application page
form_colorBackground color of the text area in the application page

The apps_dir is required and either scheduler or cluster is required.

2.1. bin_overrides

This setting is optional.

If the job scheduler is slurm, set sbatch, scontrol, scancel, and sacct as follows.

bin_overrides:
  sbatch:   "/usr/local/bin/sbatch"
  scontrol: "/usr/local/bin/scontrol"
  scancel:  "/usr/local/bin/scancel"
  sacct:    "/usr/local/bin/sacct"

If the job scheduler is pbspro, set qsub, qstat, and qdel as follows.

bin_overrides:
  qsub:   "/usr/local/bin/qsub"
  qstat: "/usr/local/bin/qstat"
  qdel:  "/usr/local/bin/qdel"

If the job scheduler is sge, set qsub, qstat, qdel, and qacct as follows.

bin_overrides:
  qsub:   "/usr/local/bin/qsub"
  qstat: "/usr/local/bin/qstat"
  qdel:  "/usr/local/bin/qdel"
  qacct: "/usr/local/bin/qacct"

If the job scheduler is fujitsu_tcs, set pjsub, pjstat, and pjdel as follows.

bin_overrides:
  pjsub:  "/usr/local/bin/pjsub"
  pjstat: "/usr/local/bin/pjstat"
  pjdel:  "/usr/local/bin/pjdel"

2.2. cluster

This setting is optional.

Set this when using multiple job schedulers. The name and scheduler are required and set the cluster name and scheduler respectively. Other scheduler related settings (bin, bin_overrides, sge_root) are also possible. Note that when setting cluster, scheduler, bin, bin_overrides, sge_root cannot be set outside of cluster.

cluster:
  - name: "fugaku"
    scheduler: "fujitsu_tcs"
  - name: "prepost"
    scheduler: "slurm"
    bin_overrides:
      sbatch:   "/usr/local/bin/sbatch"

3. Registration for Open OnDemand

3.1. By administrator

When you save Open Composer to /var/www/ood/apps/sys/, the Open Composer icon will be displayed on the Open OnDemand home page. If it is not displayed, check /var/www/ood/apps/sys/OpenComposer/manifest.yml.

You can also display Open Composer applications on the Open OnDemand home page. For example, if you want to display an application /var/www/ood/apps/sys/OpenComposer/sample_apps/Slurm, create a directory with the same name in the Open OnDemand application directory (# mkdir /var/www/ood/apps/sys/Slurm). Then, create the following Open OnDemand configuration file manifest.yml in that directory.

# /var/www/ood/apps/sys/Slurm/manifest.yml
---
name: Slurm
url: https://<your Open OnDemand URL>/pun/sys/OpenComposer/Slurm

3.2. By general user

You can also install Open Composer with general user privileges. However, the App Development feature in Open OnDemand needs to be enabled in advance by an administrator.

Select "My Sandbox Apps (Development)" under "</> Develop" in the navigation bar (If your web browser window size is small, it will display "</>" instead of "</> Develop").

Navbar

Click "New App".

New App

Click "Clone Existing App".

Clone an existing app

Enter any name in "Directory name" (here we enter OpenComposer), enter "https://github.com/RIKEN-RCCS/OpenComposer.git" in "Git remote", and click "Submit".

New repository

Click "Launch Open Composer".

Bundle Install