Skip to content
This repository has been archived by the owner on Aug 28, 2019. It is now read-only.

Slurm and Gold support for Karrage 2.x.

Notifications You must be signed in to change notification settings

Karaage-Cluster/karaage-limits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 

Repository files navigation

Instructions

Common instructions

  1. Install this project under /usr/local/src/

  2. Create symlink, depends on python version.

    To find python path, at command line:

     python
     import sys
     sys.path
     exit()
    

    To create the symlinks:

     ln -s /usr/local/src/karaage-limits/kglimits /usr/local/lib/python2.5/site-packages/kglimits
     ln -s /usr/local/src/karaage-limits/kglimits /usr/local/lib/python2.6/dist-packages/kglimits
    
  3. Test, at command prompt.

     kg-manage shell
     import kglimits.gold
     import kglimits.slurm
    

Gold instructions

Skip this section if not using gold.

  1. Install gold command line.

  2. Ensure gold installed under /usr/local/gold/bin/ and works as www-data user.

  3. Add project to gold that has no access. Call it null_project (or whatever else you want).

  4. In /etc/karaage/global_settings.py add:

     INSTALLED_APPS += (
         'kglimits.gold',
     )
     GOLD_NULL_PROJECT = "null_project"
    
  5. Test and fix breakage. Log file /tmp/gold.log will help resolve problems.

Slurm instructions

Skip this section if not using slurm.

  1. Install slurm command line

  2. Add to /etc/sudoers:

     www-data ALL=(slurm) NOPASSWD: /usr/local/slurm/latest/bin/sacctmgr
    
  3. Test as www-data

     sudo -uslurm /usr/local/slurm/latest/bin/sacctmgr -ip
    
  4. Install these files in python path.

  5. Add project to slurm that has no access. Call it null_project (or whatever else you want).

  6. In /etc/karaage/global_settings.py add:

     INSTALLED_APPS += (
         'kglimits.slurm',
     )
     SLURM_NULL_PROJECT = "null_project"
    
  7. Test and fix breakage. Log file /tmp/slurm.log will help resolve problems.

About

Slurm and Gold support for Karrage 2.x.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages