From e9b68ee197334e4d7d32b7f46f41c29947f2533e Mon Sep 17 00:00:00 2001 From: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> Date: Sun, 26 May 2024 08:35:05 +0300 Subject: [PATCH] Throttler multi-metrics: an incremental PR Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com> --- go/vt/vttablet/tabletserver/throttle/throttler.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/go/vt/vttablet/tabletserver/throttle/throttler.go b/go/vt/vttablet/tabletserver/throttle/throttler.go index d59a7c92e7c..160c2e7a027 100644 --- a/go/vt/vttablet/tabletserver/throttle/throttler.go +++ b/go/vt/vttablet/tabletserver/throttle/throttler.go @@ -148,8 +148,9 @@ type throttlerTopoService interface { GetSrvKeyspace(ctx context.Context, cell, keyspace string) (*topodatapb.SrvKeyspace, error) } -// Throttler is the main entity in the throttling mechanism. This service runs, probes, collects data, -// aggregates, reads inventory, provides information, etc. +// Throttler is the main entity in the tablet throttling mechanism. +// It collectes (multi) metrics, reads configuration from topo, and throttles requests based on the +// identity of the requesting apps and of collected metrics type Throttler struct { keyspace string shard string