Commit f5f5490
committed
Reduce HostRegexTableLoadBalancer RPCs for OOB checks (#6446)
The StatusThread.updateStatus() method in the Manager calls
gatherTableInformation to get information about all of the
TabletServers in the cluster, then calls balanceTablets().
balanceTablets() creates a partitioned view of the status
information and uses that when creating the BalanceParams
to pass to table balancer's balance().
The HostRegexTableLoadBalancer.balance method will periodically
check for tablets that are hosted outside of the defined
regex. Prior to this change it was making an RPC call to
every tablet server outside of the defined regex.
This change uses the gathered tablet server information
such that the RPC call is made to the tablet server if
the information indicates that the tablet server is
hosting tablets for the table. The RPC is necessary
to get the extent information to create the migrations,
but it's only necessary when the tablet server is
hosting tablets for the table.1 parent b874c0e commit f5f5490
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
421 | 421 | | |
422 | 422 | | |
423 | 423 | | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
424 | 432 | | |
425 | 433 | | |
426 | 434 | | |
| |||
0 commit comments