Version 1 (modified by minondoa, 5 years ago) (diff)

--

# How to configure a TORQUE/PBS resource

In order to configure a TORQUE/PBS cluster accessed through ssh protocol, you should follow the next steps:

1. Configure the meteo resource. If you do not have a private_key file, you can generate one by executing ssh-keygen. This command will generate a public key (~/.ssh/id_rsa.pub) that will be necessary later on.
[user@mycomputer~]$drm4g resource edit [meteo] enable = true communicator = ssh username = user frontend = mar.meteo.unican.es private_key = ~/.ssh/id_rsa lrms = pbs queue = short max_jobs_running = 2 max_jobs_in_queue = 6  2. List and check if resource has been created successfully : [user@mycomputer~]$ drm4g resource list
RESOURCE            STATE
meteo               enabled


3. 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:
[user@mycomputer~]$drm4g id meteo init Starting ssh-agent ... WARNING: ssh-agent is already running --> Add '/home/user/.ssh/id_rsa' into ssh-agent for 168 hours Lifetime set to 7 days, 0:00:00 --> Copy '/home/user/.ssh/id_rsa' to ~/.ssh/authorized_keys file on 'ui.macc.unican.es'  4. Show information about the identity: [user@mycomputer~]$ drm4g id meteo info
--> Display '/home/user/.ssh/id_rsa' key