service_manager: multi-instance suffix support (hero_codescalers / mycelium) #96

Open
opened 2026-05-07 19:12:38 +00:00 by mik-tf · 0 comments
Owner

Tracked from #90.

The upstream nu modules service_codescalers.nu and service_mycelium.nu support N instances:

  • instance 0 → service: <name>, actions: <name>_server, <name>_admin
  • instance N → service: <name>_N, actions: <name>_server_N, <name>_admin_N
  • sockets: <name>/rpc.sock vs <name>N/rpc.sock

The v2 port covers instance 0 only.

Fix: parameterize HeroService::start(ctx, instance: u32) or add per-instance struct-impl factories. The trait change is a small one and worth doing for these two services.

Limitation: in hero_codescalers.rs, mycelium.rs.

Tracked from #90. The upstream nu modules `service_codescalers.nu` and `service_mycelium.nu` support N instances: - instance 0 → service: `<name>`, actions: `<name>_server`, `<name>_admin` - instance N → service: `<name>_N`, actions: `<name>_server_N`, `<name>_admin_N` - sockets: `<name>/rpc.sock` vs `<name>N/rpc.sock` The v2 port covers instance 0 only. **Fix**: parameterize `HeroService::start(ctx, instance: u32)` or add per-instance struct-impl factories. The trait change is a small one and worth doing for these two services. `Limitation:` in hero_codescalers.rs, mycelium.rs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lhumina_code/hero_router#96
No description provided.