Skip to content

Commit

Permalink
feat(swagger): manager, extend restore progress with bandwidth (#4082)
Browse files Browse the repository at this point in the history
Restore progress now contains download/stream bytes/duration
and host shard count, which allows us to calculate per shard
bandwidth on sctool side.
  • Loading branch information
Michal-Leszczynski authored Oct 29, 2024
1 parent 78e39cc commit 2c9c18d
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 0 deletions.
58 changes: 58 additions & 0 deletions v3/swagger/gen/scylla-manager/models/restore_host_progress.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions v3/swagger/gen/scylla-manager/models/restore_progress.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions v3/swagger/scylla-manager.json
Original file line number Diff line number Diff line change
Expand Up @@ -866,6 +866,12 @@
"$ref": "#/definitions/RestoreKeyspaceProgress"
}
},
"hosts": {
"type": "array",
"items": {
"$ref": "#/definitions/RestoreHostProgress"
}
},
"views": {
"type": "array",
"items": {
Expand Down Expand Up @@ -1102,6 +1108,34 @@
}
}
},
"RestoreHostProgress": {
"type": "object",
"properties": {
"host": {
"type": "string"
},
"shard_cnt": {
"description": "Host shard count",
"type": "integer"
},
"downloaded_bytes": {
"description": "Total bytes downloaded by host",
"type": "integer"
},
"download_duration": {
"description": "Total time spent by host on download in milliseconds",
"type": "integer"
},
"streamed_bytes": {
"description": "Total bytes load&streamed by host",
"type": "integer"
},
"stream_duration": {
"description": "Total time spent by host on load&stream in milliseconds",
"type": "integer"
}
}
},
"TaskRunValidateBackupProgress": {
"type": "object",
"properties": {
Expand Down

0 comments on commit 2c9c18d

Please sign in to comment.