-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…improvements for large number of tablets Summary: This diff adds a variety of speedups, that help in all cases, but especially in cases where there are a large number of tablets. - Add ssh multiplexing to run_ssh_cmd - This allows us to reuse ssh connections, that way we don't incur the ssh startup cost on every command - Combine chain of ssh commands to single command - This reduces the number of requests we're sending, and also allows us to do retries on the entire command chain - Add parallelism to find_tablet_replicas - Previously we made `yb-admin list_tablet_servers` calls sequentially for each tablet, which could take a long time. Changing this use half of the `--parallelism` flag set (with a max of 16 to not overload the master) This also fixes the issue of not retrying on checksum failures, as we now will retry the entire command chain Original diff: https://phabricator.dev.yugabyte.com/D15306 Original commit: 29d2c2c Test Plan: Tested on a large setup with 10 nodes rf3, 100 tables with 100 tablets each. Previously doing a restore took 11.5 hours, with these improvements, it took under 2 hours. Also saw similar number at a different scale with a single table with 100 tablets, which went from 11 minutes to 2 minutes. Generic backup tests: ybd --cxx-test tools_yb-backup-test_ent ybd --java-test org.yb.pgsql.TestYbBackup --tp 1 ybd --java-test org.yb.cql.TestYbBackup --tp 1 ybd --java-test org.yb.cql.ParameterizedTestYbBackup --tp 1 Reviewers: oleg Reviewed By: oleg Subscribers: oleg, bogdan, jenkins-bot Differential Revision: https://phabricator.dev.yugabyte.com/D15494
- Loading branch information
Showing
1 changed file
with
82 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters