Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cache Update Workflow

  1. Credential apis are provided (insert/query/delete credentials) are implemented by RootCoord.
  2. Credential modification apis persist credentials on etcd (or other storage like mysql), and create task called CredTask for updating call each proxy's api to invalidate local caches in all proxy components.CredTask will iterate all the proxy components, and call every proxy's rpc for updating the local cache until all of them are success.
  3. Auth interceptor in proxy component will just search firstly find credential records from local cache. If the cache missed, it will trigger rpc call to fetch record from RootCoord and update the local cache.


Etcd model for credentials

...