Skip to content

Conversation

un-def
Copy link
Collaborator

@un-def un-def commented Sep 1, 2025

A new DSTACK_SERVER_JOB_NETWORK_MODE with three modes:

  • HOST_FOR_MULTINODE_ONLY (1) The new opt-in mode. "bridge" by default, unless it's a multinode run
  • HOST_WHEN_POSSIBLE (2) The current default. "host" by default, unless the job occupies only a part of the instance.
  • FORCED_BRIDGE (3) Same as legacy DSTACK_FORCE_BRIDGE_NETWORK=true Always "bridge", even for multinode runs.

To opt-in:

export DSTACK_SERVER_JOB_NETWORK_MODE=1

DSTACK_FORCE_BRIDGE_NETWORK is deprecated but supported with a migration warning

A new `DSTACK_SERVER_JOB_NETWORK_MODE` with three modes:
  - HOST_FOR_MULTINODE_ONLY (1)
    The new opt-in mode.
    "bridge" by default, unless it's a multinode run
  - HOST_WHEN_POSSIBLE (2)
    The current default.
    "host" by default, unless the job occupies only a part of
    the instance.
  - FORCED_BRIDGE (3)
    Same as legacy DSTACK_FORCE_BRIDGE_NETWORK=true
    Always "bridge", even for multinode runs.

To opt-in:

    export DSTACK_SERVER_JOB_NETWORK_MODE=1

`DSTACK_FORCE_BRIDGE_NETWORK` is deprecated but supported with
a migration warning
@un-def un-def requested a review from jvstme September 1, 2025 16:04
@un-def un-def merged commit 8a05d0a into master Sep 9, 2025
28 checks passed
@un-def un-def deleted the pr_job_network_mode_server_setting branch September 9, 2025 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant