How to choose blob block size in Azure

I want to use blobs append in Azure storage. When I load blob, I have to choose the block size. What should I consider when choosing a block size? I see no difference if I upload a file with a large size and then the size of the block. How to choose the right block size?

+4
source share
2 answers

According to your description, I did some research, you could refer to it for a better understanding of the blob add blocks:

I just checked CloudAppendBlob.AppendTextand CloudAppendBlob.AppendFromFile. If the file size or text content size is less than 4 MB, it will be loaded into a new separate block. Here I used CloudAppendBlob.AppendTextto add text content (byte size less than 4 MB) three times, you can refer to network traces as follows:

enter image description here

For content sizes> 4 MB, the client SDK will split the content into small pieces (4 MB) and load them into each block. Here I downloaded a file of about 48.8 MB in size, you can refer to network routes as follows:

enter image description here

, . , , , , . , , , , 4 , , .

+3

, :

  • Append Blob 4 MB, .
  • , 50000 blocks , 50000, . , 100- 100- , 1048576 (100x1024x1024/100) , 50000, .
  • , , Internet speed. , 4 . . , 256-512 , .
+1

Source: https://habr.com/ru/post/1680179/


All Articles