hpchud / vcc-torque

A Torque batch scheduling cluster in Docker containers
3 stars 3 forks source link

improve handling of ports #5

Open joshiggins opened 7 years ago

joshiggins commented 7 years ago

We should only expose the ports that are needed instead of requiring --net=host.

joshiggins commented 7 years ago

Default ports for Torque

They can be changed, look here. If we want to change them, it's probably best to set these environment vars in the service files:

Additionally, in the hook that sets the $PBS_HOME/server_name file, it should set server_name to server_name:$PBS_BATCH_SERVICE_PORT.

But really the only problematic one is all privileged ports must be open (ports under 1024) and this is why we are using --net=host.

Privileged ports are disabled at compile time with the switch --disable-privports. This disables authentication between server and moms - potentially anyone could submit jobs as any other user. This can be fixed by using munge instead.