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
Changes the allocator vacate command default polling settings and also
adds `--max-poll-retries` and `--poll-frequency` flags which allow the
user to control the track settings providing the newly changed defaults.
Signed-off-by: Marc Lopez <marc5.12@outlook.com>
Co-authored-by: Papapetrou Patroklos <1743100+ppapapetrou76@users.noreply.github.com>
@@ -170,6 +171,8 @@ var vacateAllocatorCmd = &cobra.Command{
170
171
SkipDataMigration: skipDataMigration,
171
172
OverrideFailsafe: ec.Bool(overrideFailsafe),
172
173
},
174
+
MaxPollRetries: uint8(maxRetries),
175
+
TrackFrequency: pollFrequency,
173
176
}
174
177
iflen(args) ==1&&allocatorDownRaw!="" {
175
178
params.AllocatorDown=&allocatorDown
@@ -200,4 +203,5 @@ func init() {
200
203
vacateAllocatorCmd.Flags().Bool("override-failsafe", false, "If false (the default) then the plan will fail out if it believes the requested sequence of operations can result in data loss - this flag will override some of these restraints. [true|false]")
201
204
vacateAllocatorCmd.Flags().String("skip-snapshot", "", "Skips the snapshot operation on the specified cluster IDs. ONLY available when the cluster IDs are specified. [true|false]")
202
205
vacateAllocatorCmd.Flags().String("skip-data-migration", "", "Skips the data-migration operation on the specified cluster IDs. ONLY available when the cluster IDs are specified and --move-only is true. [true|false]")
-k, --kind string Kind of workload to vacate (elasticsearch|kibana)
59
59
-m, --maintenance Whether to set the allocator(s) in maintenance before performing the vacate
60
+
--max-poll-retries int Optional maximum plan tracking retries (default 2)
60
61
--move-only Keeps the cluster in its current -possibly broken- state and just does the bare minimum to move the requested instances across to another allocator. [true|false] (default true)
61
62
--override-failsafe If false (the default) then the plan will fail out if it believes the requested sequence of operations can result in data loss - this flag will override some of these restraints. [true|false]
63
+
--poll-frequency duration Optional polling frequency to check for plan change updates (default 10s)
62
64
--skip-data-migration string Skips the data-migration operation on the specified cluster IDs. ONLY available when the cluster IDs are specified and --move-only is true. [true|false]
63
65
--skip-snapshot string Skips the snapshot operation on the specified cluster IDs. ONLY available when the cluster IDs are specified. [true|false]
64
66
--skip-tracking Skips tracking the vacate progress causing the command to return after the move operation has been executed. Not recommended.
0 commit comments