-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 2.8] [#11799] YSQL/Docdb: Update all tablets when a remote …
…server is unreachable Summary: For network errors YBClient/Metacache should not only update the specific tablet but should also MarkTSFailed() to help share the knowledge with other tablets. This can improve the recovery time, esp for cases with a lot of tablets. Also introducing a new Gflag `update_all_tablets_upon_network_failure` (defaults to `true`) which can be used to disable this feature. Original Revision/Commit: https://phabricator.dev.yugabyte.com/D16073 1b8f992 Test Plan: Jenkins: rebase 2.8 Jenkins + repro manually 1) Create a dev-cluster with a lot of tablets `bin/yb-ctl restart --tserver_flags 'fail_whole_ts_upon_network_failure=true,txn_slow_op_threshold_ms=3000,enable_tracing=true,tracing_level=2,rpc_connection_timeout_ms=15000' --replication_factor 3 --ysql_num_shards_per_tserver 24` 2) Run yb-sample apps with 16 readers and 16 writers ``` java -jar yb-sample-apps.jar \ --workload SqlSecondaryIndex \ --nodes $HOSTS \ --verbose true --drop_table_name postgresqlkeyvalue --num_threads_read $NUM_READERS --num_threads_write $NUM_WRITERS \ --num_reads 15000000 --num_writes 75000000 \ ``` 3) Cause a network partition using `iptables drop` to isolate 127.0.0.3 and compare recovery times with and without the feature. without this change, the recovery takes over 5 mins. With the change, the operations recover in about 30-40sec. Reviewers: timur, sergei, bogdan Reviewed By: bogdan Subscribers: kannan, ybase Differential Revision: https://phabricator.dev.yugabyte.com/D16185
- Loading branch information
1 parent
ac03db9
commit 29ecc1d
Showing
4 changed files
with
18 additions
and
2 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
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
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
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