- Newest
- Most votes
- Most comments
Hi
CDK: Uses bytes per second (BytesPerSecond). AWS Console: Displays bandwidth in megabytes per second (MiB/s).
bytes_per_second (Union[int, float, None]) – A value that limits the bandwidth used by AWS DataSync . For example, if you want AWS DataSync to use a maximum of 1 MB, set this value to 1048576 (=1024*1024).
-
In CDK you need to convert bandwidth
200Mbps * 1024 * 1024 = 209,715,200 bytes/s
so your value would beBytesPerSecond.value(209715200)
-
In Console 199 will translate to approximately 209.72 MiB/s, which is close to your 200Mbps limit
-
The document mentions "1 MB" because it's technically accurate. However, most network speeds are measured in megabits (Mbps), not megabytes (MB).
-
AWS uses Mebibytes (MiB) which is based on powers of 2 (1024) for data transfer, while "MB" is based on powers of 10 (1000). This is why the console displays MiB/s. Please refer to this link https://docs.aws.amazon.com/datasync/latest/userguide/configure-bandwidth.html
Relevant content
- asked 2 years ago
- asked a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
https://www.convertunits.com/from/bytes+per+second/to/Mbps If I use the above converter it says 209715200 is equal to approx 1677 Mbps
similarly https://www.convertunits.com/from/MiB/s/to/Mbps 209Mib/s is equal to approx 1753 Mbps
Can you explain this.
There is difference for the conversion you are suing because of rounding , I suggest you to check with python program to get accurate value, you can also check from docs https://docs.aws.amazon.com/datasync/latest/userguide/configure-bandwidth.html