DataSync Bandwidth

0

I have a limit to use 200Mbps bandwidth from NFS server side. I want to configure bandwidth via cdk while I am creating the task. Now I know we have an Option BytesPerSecond[1] But I am confused about the units in AWS console for DataSync Transfer Jobs the units for bandwidth is MiB/s. So what units should I use in my cdk code. So that my dataAgent has maximum bandwidth for 200Mbps.

The document [1] states that. "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)."

But console takes 1MiB/s. This gets very confusing to understand.

I tried something With respect to cdk we have to send speed with units bytes per second. It would be shown in console in MiB/s. So in my case if I have 199 Mbps(I left 1mbps knowingly) of bandwidth. i'll send 24875000("=23.72 * 1024 * 1024") via cdk and it will shown in console as 23.72 MiB/s.

But in above case, the document should show 1Mib instead of 1 MB I don't know what I am missing here can somebody help me please.

Thankyou

1 Answer
0

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 be BytesPerSecond.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

profile picture
EXPERT
GK
answered 21 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions