diff options
author | Robert Drynkin <rob.drynkin@gmail.com> | 2024-01-23 13:27:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-23 13:27:12 +0100 |
commit | 8996d725415df609223652d1421ceea336c27f4d (patch) | |
tree | d8ec6d95121e4f3c8160e5278d2bc28f2a5997bc | |
parent | 0ef82a6246d2093ba366a4199b01ce45f90cc1cf (diff) | |
download | ydb-8996d725415df609223652d1421ceea336c27f4d.tar.gz |
Add use local self heal option to ds tool (#1191)
Co-authored-by: robdrynkin <robdrynkin@nebius.com>
-rw-r--r-- | ydb/apps/dstool/lib/dstool_cmd_cluster_set.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ydb/apps/dstool/lib/dstool_cmd_cluster_set.py b/ydb/apps/dstool/lib/dstool_cmd_cluster_set.py index 2b263853b7..1e1de3adb0 100644 --- a/ydb/apps/dstool/lib/dstool_cmd_cluster_set.py +++ b/ydb/apps/dstool/lib/dstool_cmd_cluster_set.py @@ -24,6 +24,9 @@ def add_options(p): g.add_argument('--pdisk-space-color-border', choices=choices, help='PDisk space color border') choices = kikimr_bsconfig.TSerialManagementStage.E.keys() g.add_argument('--disk-management-mode', type=str, choices=choices, help='Disk management mode') + g.add_argument('--enable-self-heal-local-policy', action='store_const', const=True, dest='self_heal_local_policy', help='Enable SelfHeal local policy for cluster') + g.add_argument('--disable-self-heal-local-policy', action='store_const', const=False, dest='self_heal_local_policy', help='Disable SelfHeal local policy for cluster') + common.add_basic_format_options(p) @@ -63,6 +66,8 @@ def create_request(args): cmd.MaxScrubbedDisksAtOnce.append(args.max_scrubbed_disks_at_once) if args.pdisk_space_color_border is not None: cmd.PDiskSpaceColorBorder.append(disk_color.TPDiskSpaceColor.E.Value(args.pdisk_space_color_border)) + if args.self_heal_local_policy is not None: + cmd.UseSelfHealLocalPolicy.append(args.self_heal_local_policy) return request |