Skip to content

reports: generate replication reports for secondary tenants #70557

@irfansharif

Description

@irfansharif

#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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-multitenancyRelated to multi-tenancyA-sql-observabilityRelated to observability of the SQL layerA-zone-configsC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions