Ubuntu HPC master and compute node network setup

From Notes_Wiki
Revision as of 07:49, 21 February 2023 by Saurabh (talk | contribs)

Home > Ubuntu > HPC setup with openpbs and openmpi > Master and compute node network setup

After initial template is built using Ubuntu HPC Common setup of all HPC nodes, we need to differentiate between master and compute nodes from network perspective.

  1. On compute nodes disable firewall using:
    systemctl stop ufw
    systemctl disable ufw
  2. On all nodes set proper hostname using:
    hostnamectl set-hostname <hostname>
  3. For master node ensure that it is connected to both public and private networks (Two NIC)
  4. For compute nodes connect them only on private network
  5. For all nodes assign static IPs (Compute-private; Master - Both public and private). Make a note of hostname to IP association
  6. On master enable net.ipv4.ip_forward=1
  7. On master enable MASQUERADE in POSTROUTING chain in nat table
  8. On compute nodes test outgoing Internet access via master
  9. On master node set password less SSH from master to compute root user using:
    ssh-keygen
    ssh-copy-id root@<compute-node-private-ip>
    This should be done for all compute nodes in cluster
  10. On master node test the root ssh connectivity from master to all compute nodes. It should not prompt for any password.
  11. On master node enable iptables to persist after reboot via Persistent firewall in Ubuntu
  12. Apart from public and private networks, also assign appropriate infiniband IPs to each node, if applicable
    IP assignment for infiband does not work via Network Manager or netplan. To assign infiniband IPs use 'crontab -e' with:
    @reboot /usr/sbin/ip addr add 172.16.2.13/24 dev ibs1
    @reboot /usr/sbin/ip link set ibs1 up

Home > Ubuntu > HPC setup with openpbs and openmpi > Master and compute node network setup