Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
Morpheus
-
None
Description
This UI work is needed for GA of PITR feature (in Developer Preview in Neo) for Morpheus.
PITR PRD Addendum for GA – this doc is to explain the current status of PITR feature (DP in Neo) and the requirements for GA in Morpheus (PITR for Couchstore storage backend).
The UI requirements are listed in the doc.
UI Requirements:
1) In bucket create/edit, show PITR options and allow changes
2) When bucket information is displayed (in Buckets), show current PITR settings info
PITR settings – these are the defaults for a Couchstore bucket:
The values of pitrMaxHistoryAge and pitrGranularity are in seconds. The default values are:
|
"pitrEnabled":false
|
"pitrGranularity":600
|
"pitrMaxHistoryAge":86400
|
Allowed minimum/maximum values:
The values of pitrMaxHistoryAge and pitrGranularity are in seconds.
|
pitrMaxHistoryAge: period of time the PITR info will be kept on storage before the information is compacted away – the value should correspond to how often the backups are done (so that a backup is done of the PITR info before the information is compacted away) -- value must be in range 1 to 172800 inclusive
|
|
pitrGranularity: the granularity window the user will be using when restoring -- value must be in range 1 to 18000 inclusive
|
Getting current pitr settings for a bucket:
curl -X GET http://localhost:8091/pools/default/buckets/test-bucket
|
-u Administrator:password
|
Changing pitr settings for a bucket:
In 7.1, need to be in DP mode.
|
Example:
|
curl -X POST http://localhost:8091/pools/default/buckets/test-bucket
|
-u Administrator:password
|
-d pitrEnabled=true
|
-d pitrMaxHistoryAge=86400
|
-d pitrGranularity=300
|
Example of error returned when pitr settings values are out of range:
% curl -X POST http://localhost:8091/pools/default/buckets/test-bucket -u Administrator:password -d pitrEnabled=true -d pitrMaxHistoryAge=0 -d pitrGranularity=0 | jq .
|
{
|
"errors": {
|
"pitrGranularity": "The value of pitrGranularity (0) must be in the range 1 to 18000 inclusive",
|
"pitrMaxHistoryAge": "The value of pitrMaxHistoryAge (0) must be in the range 1 to 172800 inclusive"
|
},
|
"summaries": {
|
. . .
|
}
|
}
|