Skip to content

Burst (EC2) members of a hybrid job array never read the hybrid registry, so they cannot discover local nodes #918

Closed

Description

@scttfrdmn

Found while fixing #904.

The hybrid registry (spawn-hybrid-registry) is written by every hybrid member (local nodes and, after #904, spawn burst instances), but it is only read by LocalProvider.DiscoverPeers (pkg/provider/local.go). EC2Provider.DiscoverPeers (pkg/provider/ec2.go) only runs DescribeInstances on spawn:job-array-id, so a burst instance sees its EC2 siblings but never the local nodes it was launched to work alongside. registry.PeerRegistry.DiscoverPeers and registry.DiscoverPeersForJobArray have no non-test callers.

spawn burst's help says burst instances "coordinate with local instances", so the discovery is one-way: local nodes see burst instances, burst instances don't see local nodes.

Verified by reading the code; no instances launched.

Suggested: when Config.Burst is set (added in #904), have the EC2 provider merge registry peers into its tag-based result (or read the registry instead), with a test that a burst member's discovery includes a provider=local registry entry.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions