app/vmctl: document that -vm-native-step-interval command-line option now supports week value

This is a follow-up for d322ee4b35

Updates https://github.com/VictoriaMetrics/VictoriaMetrics/issues/4738
This commit is contained in:
Aliaksandr Valialkin 2023-08-12 07:32:11 -07:00
parent 9ac0d980f9
commit f7f29a1840
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1
4 changed files with 9 additions and 8 deletions

View File

@ -826,7 +826,7 @@ It is possible split migration process into set of smaller batches based on time
migrating large volumes of data as this adds indication of progress and ability to restore process from certain point migrating large volumes of data as this adds indication of progress and ability to restore process from certain point
in case of failure. in case of failure.
To use this you need to specify `--vm-native-step-interval` flag. Supported values are: `month`, `day`, `hour`, `minute`. To use this you need to specify `--vm-native-step-interval` flag. Supported values are: `month`, `week`, `day`, `hour`, `minute`.
Note that in order to use this it is required `--vm-native-filter-time-start` to be set to calculate time ranges for Note that in order to use this it is required `--vm-native-filter-time-start` to be set to calculate time ranges for
export process. export process.
@ -836,7 +836,7 @@ Every range is being processed independently, which means that:
so it is possible to restart process starting from failed range. so it is possible to restart process starting from failed range.
It is recommended using the `month` step when migrating the data over multiple months, It is recommended using the `month` step when migrating the data over multiple months,
since the migration with `day` and `hour` steps may take longer time to complete because of additional overhead. since the migration with `week`, `day` and `hour` steps may take longer time to complete because of additional overhead.
Usage example: Usage example:
```console ```console

View File

@ -361,8 +361,9 @@ var (
Usage: "The time filter may contain different timestamp formats. See more details here https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html#timestamp-formats", Usage: "The time filter may contain different timestamp formats. See more details here https://docs.victoriametrics.com/Single-server-VictoriaMetrics.html#timestamp-formats",
}, },
&cli.StringFlag{ &cli.StringFlag{
Name: vmNativeStepInterval, Name: vmNativeStepInterval,
Usage: fmt.Sprintf("Split export data into chunks. Requires setting --%s. Valid values are '%s','%s','%s','%s'.", vmNativeFilterTimeStart, stepper.StepMonth, stepper.StepDay, stepper.StepHour, stepper.StepMinute), Usage: fmt.Sprintf("Split export data into chunks. Requires setting --%s. Valid values are '%s','%s','%s','%s','%s'.", vmNativeFilterTimeStart,
stepper.StepMonth, stepper.StepWeek, stepper.StepDay, stepper.StepHour, stepper.StepMinute),
Value: stepper.StepMonth, Value: stepper.StepMonth,
}, },
&cli.BoolFlag{ &cli.BoolFlag{

View File

@ -8,10 +8,10 @@ import (
const ( const (
// StepMonth represents a one month interval // StepMonth represents a one month interval
StepMonth string = "month" StepMonth string = "month"
// StepDay represents a one day interval
StepDay string = "day"
// StepWeek represents a one week interval // StepWeek represents a one week interval
StepWeek string = "week" StepWeek string = "week"
// StepDay represents a one day interval
StepDay string = "day"
// StepHour represents a one hour interval // StepHour represents a one hour interval
StepHour string = "hour" StepHour string = "hour"
// StepMinute represents a one minute interval // StepMinute represents a one minute interval

View File

@ -837,7 +837,7 @@ It is possible split migration process into set of smaller batches based on time
migrating large volumes of data as this adds indication of progress and ability to restore process from certain point migrating large volumes of data as this adds indication of progress and ability to restore process from certain point
in case of failure. in case of failure.
To use this you need to specify `--vm-native-step-interval` flag. Supported values are: `month`, `day`, `hour`, `minute`. To use this you need to specify `--vm-native-step-interval` flag. Supported values are: `month`, `week`, `day`, `hour`, `minute`.
Note that in order to use this it is required `--vm-native-filter-time-start` to be set to calculate time ranges for Note that in order to use this it is required `--vm-native-filter-time-start` to be set to calculate time ranges for
export process. export process.
@ -847,7 +847,7 @@ Every range is being processed independently, which means that:
so it is possible to restart process starting from failed range. so it is possible to restart process starting from failed range.
It is recommended using the `month` step when migrating the data over multiple months, It is recommended using the `month` step when migrating the data over multiple months,
since the migration with `day` and `hour` steps may take longer time to complete because of additional overhead. since the migration with `week`, `day` and `hour` steps may take longer time to complete because of additional overhead.
Usage example: Usage example:
```console ```console