Skip to content

Commit

Permalink
Merge pull request Telmate#125 from V-Paranoiaque/feature/mbps
Browse files Browse the repository at this point in the history
Add parameters to the disk to set read/write limits
  • Loading branch information
ggongaware committed Dec 16, 2019
2 parents ecb0b33 + cc9ac1a commit 7adcc1b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions proxmox/resource_vm_qemu.go
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,36 @@ func resourceVmQemu() *schema.Resource {
Optional: true,
Default: false,
},
//Maximum r/w speed in megabytes per second
"mbps": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 0,
},
//Maximum read speed in megabytes per second
"mbps_rd": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 0,
},
//Maximum unthrottled read pool in megabytes per second
"mbps_rd_max": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 0,
},
//Maximum write speed in megabytes per second
"mbps_wr": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 0,
},
//Maximum unthrottled write pool in megabytes per second
"mbps_wr_max": &schema.Schema{
Type: schema.TypeInt,
Optional: true,
Default: 0,
},
},
},
},
Expand Down

0 comments on commit 7adcc1b

Please sign in to comment.