Ubuntu: Remote Logins (SSHD) - Kill Session & Jobs at Timeout -
server scenario:
ubuntu 12.04 lts
torque w/ maui scheduler
hadoop
i building small cluster (10 nodes). users have ability ssh child node(ldap auth) unnecessary since computation jobs want run can submitted on head node using torque, hadoop, or other resource managers tied scheduler insure priority , proper resource allocation throughout nodes. users have priority on others.
problem:
you can't force user use batch system torque. if want hog resources on 1 node or head node can run script / code directly terminal / ssh session.
solution:
my main users or "superusers" want me set remote login timeout current cluster uses eliminate problem. (i not have access cluster can not grab configuration). want setup 30 minute timeout on remote sessions inactive(keystrokes), if running processes want session killed along job processes. eliminate people not using available batch system / scheduler.
question:
how can implement this? help!
i've seen sys admins solve not allowing ssh access nodes (often done using pam module in torque), there other techniques. 1 use pbstools. reaver script can setup kill user processes aren't part of jobs (or shouldn't on nodes). believe can configured notify you. admins forcibly kill things, others educate users, part you.
once people using jobs instead of ssh'ing directly, may want cpuset feature in torque well. can you try users use amount of resources request. best of luck.
edit: noted pam module 1 of common ways restrict ssh access compute nodes.
Comments
Post a Comment