WL#12441: REST endpoints for metadata-cache

Affects: Server-8.0   —   Status: Complete

Motivation

MySQL Router exposes monitoring data via REST endpoints.

The metadata-cache component of the router takes care of:

  • querying the data from the metadata servers
  • communicating with the routing component for
    • liveness of group replication backends
    • liveness of network connections
  • maintains a cache of the metadata that is refreshed on trigger or TTL

User Stories

  1. As a tester I want to wait until metadata component has fetched data before sending traffic to the routing component to avoid false-positive test-results.
  2. As a devop I want to be able to configure a liveness test in the load-balancer to send only traffic to the router when it has valid metadata of the cluster.

Goal

Add REST endpoints for the metadata-cache that expose

  • current known cluster nodes and their state
  • success and failure counters
  • time of last fetch
  • current configuration