Parameter name
|
Description
|
Default value
|
Comment
|
||
---|---|---|---|---|---|
host
|
database host
|
Mandatory
|
|||
port
|
database port
|
Mandatory
|
|||
database
|
database name where the value_stream table exists
|
Mandatory
|
|||
username
|
database user
|
Mandatory
|
|||
password
|
database password
|
Mandatory
|
|||
partition_start_date
|
Define from which point of time you want to create partitions. It may be in the past or future.
|
The last value of the “time” column in the value_stream table. If there is no data, the start date=current..
|
Optional
Possible formats:
• YYYY-MM-DD
• YYYY-MM-DD HH:MM
• YYY-MM-DD HH:MM:SS
• YYYY-MM-DD HH:MM:SS.MS
|
||
partition_end_date
|
Define from which point of time you want to stop creating partitions.
|
Mandatory
Possible formats:
• YYYY-MM-DD
• YYYY-MM-DD HH:MM
• YYY-MM-DD HH:MM:SS
• YYYY-MM-DD HH:MM:SS.MS
Must be in the future and at least greater than the last value of the “time” column plus the interval. If there is no data, then it must be greater than current + interval.
|
|||
partition_interval
|
Mandatory interval for each partition
|
Possible formats:
• 1h or hours
• 1d or 1day
• 1 month
• 1y or 1year
|
|||
repartition_all_data
|
Mandatory
|
no
|
Possible values:
• yes or no
• if = yes (optional), the script will ignore the start date and repartition all data
|
|
To prevent repeatedly providing certain parameters, you can edit the script and set the following parameters: DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD.
|