Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
server: pod-to-pod fanout for statements api on tenant
Previously, the Statements endpoint implementation was purely local in its execution and reported only in-memory data on the current tenant. This change initializes a gRPC and gRPC-gateway server on the tenant, much like we do on the hosts already, and uses the newly added InstanceID subsystem for tenants to implement a gRPC-based fanout for the Statements endpoint implementation. The fanout is done much in the same manner as on hosts and we expose the status server endpoints via HTTP on the tenant as well. This change is necessary to support serverless observability features and provide our UIs access to the Statements endpoint. Future work may move this API to SQL-only Resolves cockroachdb#64477 Release note (api change): tenant pods now expose the Statements API at `/_status/statements` on their HTTP port. REVIEWER NOTE: This change is based on cockroachdb#66600 which is still in progress, please only review the final commit. Once cockroachdb#66600 is merged, only the final commit will remain on rebase.
- Loading branch information