dstack icon indicating copy to clipboard operation
dstack copied to clipboard

[Feature]: Configuration for master node network selection

Open TheBits opened this issue 9 months ago • 2 comments

Problem

A job running in multimode mode must correctly identify the IP address of the master node. A master node instance can have multiple network addresses, and we must select the desired address to using it.

Solution

I suggest adding the --network flag to dstack pool add-ssh command. Using this option, we can specify which IP-network (and IP-address) to use from those available on the master node.

The master node must store the IP address of the desired network. The workers will receive the address of the master node.

Workaround

Multinode now works because the master node only has one IP address for the internal network.

Would you like to help us implement this feature by sending a PR?

Yes

TheBits avatar May 13 '24 06:05 TheBits

Why dstack run? I thought it must be dstack pool add-ssh.

peterschmidt85 avatar May 13 '24 06:05 peterschmidt85

Oh, yes, you're right.

TheBits avatar May 14 '24 07:05 TheBits