Skip to content

Throttle device parsing problem #357

@leonidgurevich

Description

@leonidgurevich

Hi,
Here is the problem:
For blkio_config we receive parsing error when using string for rate like in following:
device_write_bps:

  • path: /dev/sdb
    rate: '1024k'

Error message states that only integer is expected, while spec states that for device_write_bps and device_read_bps both an integer or a string is allowed - see below:

device_read_bps, device_write_bps
Set a limit in bytes per second for read / write operations on a given device. Each item in the list must have two keys:

  • path, defining the symbolic path to the affected device
  • rate, either as an integer value representing the number of bytes or as a string expressing a byte value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions