Skip to content

Commit

Permalink
feat: extends manifest with cpu count
Browse files Browse the repository at this point in the history
This adds number of cpu available on scylla node to the manifest file.
  • Loading branch information
VAveryanov8 committed Jan 8, 2025
1 parent 3fc9989 commit afa978b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/service/backup/backupspec/manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ type ManifestContent struct {
Schema string `json:"schema"`
Rack string `json:"rack"`
ShardCount int `json:"shard_count"`
CPUCount int `json:"cpu_count"`
StorageSize uint64 `json:"storage_size"`
InstanceDetails InstanceDetails `json:"instance_details"`

Expand Down
1 change: 1 addition & 0 deletions pkg/service/backup/worker_manifest.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (w *worker) createTemporaryManifest(ctx context.Context, h hostInfo, tokens
if err != nil {
return ManifestInfoWithContent{}, errors.Wrap(err, "client.NodeInfo")
}
c.CPUCount = int(nodeInfo.CPUCount)
c.StorageSize = nodeInfo.StorageSize

instanceMeta, err := w.Client.CloudMetadata(ctx, h.IP)
Expand Down

0 comments on commit afa978b

Please sign in to comment.