ITADN

[BUG]: Need a way to set Julia bind interface

#1093OpenViRb3 创建于 2025-12-04
bug
V
ViRb3commented
### What happened? The built-in Slurm controller, when enabled, will bind on the first interface it finds when it tries to establish a connection between the nodes. If the nodes happen to have a public internet access, this means that the nodes will try to talk to each other over the public internet, which is usually firewalled. One needs to set the `julia --bind-to=10.8.0.0.1` parameter, but I couldn't see a way to do it. I ended up with this interesting workaround: ```bash cd /opt/pysr-env/julia_env/pyjuliapkg/install/bin if [ ! -f julia_real ]; then mv julia julia_real fi cat << EOT > julia #!/bin/bash exec "$PWD/julia_real" --bind-to=${PRIVATE_IP} "\$@" EOT chmod +x julia cd - ``` This might be a problem with other distributed controllers as well.
2 条评论