PhysarumSM / service-registry

Apache License 2.0
0 stars 0 forks source link

Add ability to specify service requirements in hash-lookup #8

Closed t-lin closed 4 years ago

t-lin commented 4 years ago

Rationale / use-case:

The hash-lookup service would thus return not only a docker hash associated with a service, but also its service requirements, such that the LCA manager can identify an appropriate target node / allocator.

hivanco commented 4 years ago

@t-lin Re: the discussion today (Jun 25), reading your original comment on this issue, it seems like I would still need to define a separate set of "allocation" requirements for compute resources. Using your example above, the CPU or RAM requirements for the node we allocate service B on could be different than the CPU or RAM requirements that service B's proxy uses when finding suitable peers to contact.

t-lin commented 4 years ago

I'm not quite sure what you mean. The way I'm thinking, when service B's proxy wants to find suitable peers to contact, it would focus more on those service's network requirements, since that's a relational metric (i.e. relative with respect to service B). We can hopefully assume that any instance of those services were allocated on nodes that meet their compute requirements. On the other hand, if service B's proxy wants to find peers to contact and can't find any, then it needs to find suitable nodes to allocate on... and in this case it'd need to find nodes that meet the intended service's compute requirements (absolute) + network requirements (relative).

I suppose you could keep "allocation" separate to represent the compute requirements (e.g. CPU, RAM, etc.), which are absolute, and "perf" to mean network merics, which are relational/relative (i.e. RTT and bandwidth)?

Let me know if this is all still kinda fuzzy.