-
Notifications
You must be signed in to change notification settings - Fork 4.1k
reports: generate replication reports for secondary tenants #70557
Description
#66348 outlined a scheme to support zone configs for secondary tenants; we've implemented an MVP as part of #67679. One thing we skipped was replication reports and generating them for secondary tenants. The code generating these reports today sits under pkg/kv/kvserver/reports, and is very tightly coupled to the system config span (so it only works for the system tenant). We want to generate these same reports for secondary tenants. Probably we can hoist all that code out of pkg/kv, strip out the dependency on config.SystemSystem, generate them within the pods by power it using a view over system.{descriptor,zones}. To generate these reports, we need access to store descriptors and node liveness; we could expose RPCs through the Connector interface to retrieve these. (We should probably only export the portions relevant to these reports.)
Jira issue: CRDB-10117