You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue discusses reducing topo calls in tabletgateway's WaitForTablets(...) when --keyspaces_to_watch is provided
Today, the .WaitForTablets(...) func calls srvtopo.FindAllTargets(...)(from go/vt/srvtopo) that has no option to filter by keyspace, so it does fetches for every available keyspace. Later the targets that don't match --keyspaces_to_watchare nil-ed out in go/vt/discovery
The improvement proposed is to not-fetch keyspaces we don't need when --keyspaces_to_watch. This would happen earlier by passing the expected keyspaces to srvtopo.FindAllTargets(...) and supporting a fallback when no --keyspaces_to_watch is defined
Use Case(s)
Deployments of vtgate with --keyspaces_to_watch defined
The text was updated successfully, but these errors were encountered:
Feature Description
This issue discusses reducing topo calls in
tabletgateway
'sWaitForTablets(...)
when--keyspaces_to_watch
is providedToday, the
.WaitForTablets(...)
func callssrvtopo.FindAllTargets(...)
(fromgo/vt/srvtopo
) that has no option to filter by keyspace, so it does fetches for every available keyspace. Later the targets that don't match--keyspaces_to_watch
are nil-ed out ingo/vt/discovery
The improvement proposed is to not-fetch keyspaces we don't need when
--keyspaces_to_watch
. This would happen earlier by passing the expected keyspaces tosrvtopo.FindAllTargets(...)
and supporting a fallback when no--keyspaces_to_watch
is definedUse Case(s)
Deployments of
vtgate
with--keyspaces_to_watch
definedThe text was updated successfully, but these errors were encountered: