Service Discovery #258

Open
opened 2025-11-07 11:18:27 +00:00 by brianmcgee · 1 comment
Member

We currently support claiming hosts, but we want to extend this behaviour to service discovery.

  • configurable service types and merge strategies
  • generic data model (JSON) such that we don't require a code update to introduce a new service type with it's own merge strategies.

This needs fleshed out more by @lassulus and @Mic92, ideally with concrete examples.

#213 is related

We currently support claiming hosts, but we want to extend this behaviour to service discovery. * configurable service types and merge strategies * generic data model (JSON) such that we don't require a code update to introduce a new service type with it's own merge strategies. This needs fleshed out more by @lassulus and @Mic92, ideally with concrete examples. #213 is related
brianmcgee added the
Type
Enhancement
6
label 2025-11-07 11:18:27 +00:00
Owner

Intent: As of now all our configuration is defined in one place, which makes it not possible for different people with different configuration repositories to have services they can use within the same network.

For some services we want to be able to put parts of configuration that is needed to communicate with other machines into data mesher. In most cases this will be bootstrap information:

  • Let's take monitoring as an example. Someone may host prometheus on one machine and other people advertise to the network via datamesher what services at which port are available for monitoring. The data-mesher eventually will pick up this information and some custom integration in the prometheus services will make sure to pick up this information.
  • Another example could be a wireguard VPN, where one would connect to some bootstrap nodes and other nodes can be dynamically learned from data-mesher nodes on those instances. This allow dynamic re-configuration without having to update all machines manually.

The difference between data mesher and other established systems such as consul or etcd is, that data-mesher has a different trust model where only certain nodes are allowed to sign new data and everyone can redistribute the configuration in a eventual consistent way (we don't require a quorum, which would not work for our rather unreliable network setup).

Ideally data-mesher would provide us with an interface where nodes could define the part of their configuration with an interface that can be configured via Nix.

Intent: As of now all our configuration is defined in one place, which makes it not possible for different people with different configuration repositories to have services they can use within the same network. For some services we want to be able to put parts of configuration that is needed to communicate with other machines into data mesher. In most cases this will be bootstrap information: - Let's take monitoring as an example. Someone may host prometheus on one machine and other people advertise to the network via datamesher what services at which port are available for monitoring. The data-mesher eventually will pick up this information and some custom integration in the prometheus services will make sure to pick up this information. - Another example could be a wireguard VPN, where one would connect to some bootstrap nodes and other nodes can be dynamically learned from data-mesher nodes on those instances. This allow dynamic re-configuration without having to update all machines manually. The difference between data mesher and other established systems such as consul or etcd is, that data-mesher has a different trust model where only certain nodes are allowed to sign new data and everyone can redistribute the configuration in a eventual consistent way (we don't require a quorum, which would not work for our rather unreliable network setup). Ideally data-mesher would provide us with an interface where nodes could define the part of their configuration with an interface that can be configured via Nix.
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: clan/data-mesher#258