-
Notifications
You must be signed in to change notification settings - Fork 4
How to configure a TORQUE PBS resource
Antonio S. Cofiño edited this page Jan 10, 2022
·
1 revision
In order to configure a TORQUE/PBS cluster accessed through ssh protocol, you should follow the next steps:
- Configure the
meteo
resource. If you do not have a [wiki:DRM4G#Resourcesection 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
- List and check if resource has been created successfully :
[user@mycomputer~]$ drm4g resource list
RESOURCE STATE
meteo enabled
- Copy the public key (
~/.ssh/id_rsa.pub
) toauthorized_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'
- Show information about the identity:
[user@mycomputer~]$ drm4g id meteo info
--> Display '/home/user/.ssh/id_rsa' key
ssh-rsa AAAAB3NzaC1yc2EAAAADAQAABAQDcUYc9tDOYptqAWf7YzgN2NY9F+AtObtVvgh0PsIWZvDx1ml6j9n7zihiHFwnNIQh1q1EpIku/Jg8kyKOnbpm+2prnIhURoAWxO+rlzCF0Q4hHHW5svNNR6doCZ9mNNswi1uHaVpwhu8EKgfPyH+oNI/inSnJ/QQRHILyjUvaNbQPuXwVBpYjpvOAFOYA2VZqi+IfTq13lks7DCBfv3DK1w38aDQ9xFP/hYlQKwC/DwJo1q2CWxg5WZhgHFRG/1nyVH/nTbjOMTRZS61Gre58UUab/wSZQc6rTkrTitnCdAujIUx5eiOhM90JfDj+VUriLTnXCkwUC4+h
That's it! Now, you can summit jobs to meteo
.