Skip to content

spored registers every job-array member with the hybrid registry, which only hybrid/burst arrays use #904

Closed

Description

@scttfrdmn

Found while fixing #899 (PR #902).

pkg/agent/agent.go calls registry.NewPeerRegistry + Register + StartHeartbeat for any instance with spawn:job-array-id, and buildJobArrayMemberConfig tags every --count member that way. Until #902 this failed early with "Missing Region". With a region set, ordinary members now reach DynamoDB, but:

  • spored-instance-role grants no DynamoDB actions → AccessDenied, and
  • the spawn-hybrid-registry table only exists in accounts where spawn burst has run (registry.EnsureTable) → ResourceNotFound.

So every --count / --mpi member still logs a Failed to register with hybrid registry warning, plus heartbeat noise. Nothing reads the registry for non-hybrid arrays: EC2 peer discovery uses tags, and MPI peers come from the cohort Assembler.

Suggested: register only hybrid members (local provider, or spawn:burst=true), and leave ordinary arrays alone. Assert that intent in a test.

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