PhysarumSM / service-manager

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

Peer Cache Redesign for Per-Service Reqs #62

Closed t-lin closed 4 years ago

t-lin commented 4 years ago

As part of the work to fully achieve #46, pcache's handling of soft and hard limits needs to be re-designed to be per-service.

Right now it institutes a universal soft and hard limit, assuming all services are homogenous. In reality, services have different requirements. The pcache should compare against a service's custom requirements when doing its periodic updates. With PhysarumSM/service-registry#8 we now store a service's requirements in the registry.

General plan:

Some other minor clean-up and refactoring for clarity: