Changes between Initial Version and Version 1 of DRM4G/ResourceConfiguration/TorquePBSResource


Ignore:
Timestamp:
Sep 16, 2016 7:01:57 PM (6 years ago)
Author:
minondoa
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DRM4G/ResourceConfiguration/TorquePBSResource

    v1 v1  
     1= How to configure a TORQUE/PBS resource =
     2
     3In order to configure a TORQUE/PBS cluster accessed through ssh protocol, you should follow the next steps:
     4
     51. Configure the `meteo` resource. If you do not have a [wiki:DRM4G#Resourcesection private_key] file, you can generate one by executing [http://www.openbsd.org/openssh/manual.html ssh-keygen]. This command will generate a public key (`~/.ssh/id_rsa.pub`) that will be necessary later on. 
     6{{{
     7#!sh
     8[user@mycomputer~]$ drm4g resource edit
     9[meteo]
     10enable            = true
     11communicator      = ssh
     12username          = user
     13frontend          = mar.meteo.unican.es
     14private_key       = ~/.ssh/id_rsa
     15lrms              = pbs
     16queue             = short
     17max_jobs_running  = 2
     18max_jobs_in_queue = 6
     19}}}
     201. List and check if resource has been created successfully :
     21{{{
     22#!sh
     23[user@mycomputer~]$ drm4g resource list
     24RESOURCE            STATE               
     25meteo               enabled
     26
     27}}}
     281. Copy the public key (`~/.ssh/id_rsa.pub`) to `authorized_keys` file on the remote frond-end, and adds the private key to the agent for the ssh authorization:
     29{{{
     30#!sh
     31
     32[user@mycomputer~]$ drm4g id meteo init
     33Starting ssh-agent ...
     34 WARNING: ssh-agent is already running
     35--> Add '/home/user/.ssh/id_rsa' into ssh-agent for 168 hours
     36 Lifetime set to 7 days, 0:00:00
     37--> Copy '/home/user/.ssh/id_rsa' to ~/.ssh/authorized_keys file on 'ui.macc.unican.es'
     38
     39}}}
     401. Show information about the identity:
     41{{{
     42#!sh
     43[user@mycomputer~]$ drm4g id meteo info
     44--> Display '/home/user/.ssh/id_rsa' key
     45ssh-rsa AAAAB3NzaC1yc2EAAAADAQAABAQDcUYc9tDOYptqAWf7YzgN2NY9F+AtObtVvgh0PsIWZvDx1ml6j9n7zihiHFwnNIQh1q1EpIku/Jg8kyKOnbpm+2prnIhURoAWxO+rlzCF0Q4hHHW5svNNR6doCZ9mNNswi1uHaVpwhu8EKgfPyH+oNI/inSnJ/QQRHILyjUvaNbQPuXwVBpYjpvOAFOYA2VZqi+IfTq13lks7DCBfv3DK1w38aDQ9xFP/hYlQKwC/DwJo1q2CWxg5WZhgHFRG/1nyVH/nTbjOMTRZS61Gre58UUab/wSZQc6rTkrTitnCdAujIUx5eiOhM90JfDj+VUriLTnXCkwUC4+h
     46}}}
     47
     48That's it! Now, you can summit jobs to `meteo`.