PhysarumSM / service-manager

LCA and Proxy
Apache License 2.0
0 stars 0 forks source link

Proxy should always try to allocate on performant node #64

Open t-lin opened 4 years ago

t-lin commented 4 years ago

Two issues:

  1. Currently the proxy's logic (both HTTP and L4) tries to find an existing service, and if none exists, it simply allocates on the node with least latency. This doesn't guarantee the node with least latency is performant (in test cases ran so far, we always left a node meeting the service's performance requirements. Instead, it should always try to allocate on a performant node.
  2. If an existing service does exist and it fails the performance check, it tries to allocate on a performant node. Right now its looking for a node using the found service's existing performance as a bound.