Txoj hauv kev zoo tshaj plaws rau daim ntawv thov upload cov ntaub ntawv loj hauv s3 yog dab tsi?
Txoj hauv kev zoo tshaj plaws rau daim ntawv thov upload cov ntaub ntawv loj hauv s3 yog dab tsi?

Video: Txoj hauv kev zoo tshaj plaws rau daim ntawv thov upload cov ntaub ntawv loj hauv s3 yog dab tsi?

Video: Txoj hauv kev zoo tshaj plaws rau daim ntawv thov upload cov ntaub ntawv loj hauv s3 yog dab tsi?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Kaum ib hlis
Anonim

Cov loj tshaj plaws ib leeg ntaub ntawv uas tau uploaded hauv Amazon S3 Lub thoob hauv ib qho kev ua haujlwm PUT yog 5 GB. Yog koj xav tau upload loj cov khoom (> 5 GB), koj yuav txiav txim siab siv multipart upload API, uas tso cai rau upload cov khoom los ntawm 5 MB mus txog 5 TB.

Ib yam li ntawd, ntawm cov ntaub ntawv loj npaum li cas koj yuav tsum siv ntau ntu upload?

Cov Multipart Upload API yog tsim rau txhim kho cov upload kev paub rau cov khoom loj. Koj tuaj yeem upload cov khoom hauv ntu . Cov khoom no qhov chaw tuaj yeem ua uploaded ywj siab, nyob rau hauv tej kev txiav txim, thiab nyob rau hauv parallel. Koj siv tau a Multipart Upload rau cov khoom los ntawm 5 MB rau 5 TB ib qhov loj.

Kuj Paub, multipart upload ua haujlwm li cas ntawm s3? Multipart Upload tso cai rau koj upload ib yam khoom raws li ib txheej txheej. Tom qab tag nrho cov seem ntawm koj cov khoom yog uploaded , Amazon S3 ces nthuav tawm cov ntaub ntawv raws li ib yam khoom. Nrog rau qhov tshwj xeeb no koj tuaj yeem tsim kev sib luag uploads , pause thiab resume ib yam khoom upload , thiab pib uploads ua ntej koj paub tag nrho cov khoom loj.

Raws li txoj cai, AWS CLI puas tuaj yeem ua ntau feem upload kom hloov cov ntaub ntawv loj sai?

Thaum koj upload cov ntaub ntawv loj rau Amazon S3, nws yog qhov kev coj ua zoo tshaj plaws los txhawb nqa multipart uploads . Yog tias koj siv lub AWS Command Line Interface ( AWS CLI ), tag nrho cov qib siab aws s3 lus cia li ua a multipart upload thaum khoom yog loj . Cov lus txib siab no suav nrog aws s3cp ib aws s3 sib.

Dab tsi yog qhov max loj ntawm cov khoom uas tuaj yeem rub tawm los ntawm s3 console?

Amazon tus kheej S3 khoom tau ntau hauv qhov loj los ntawm qhov tsawg kawg nkaus ntawm 0 bytes rau a siab kawg ntawm 5 terabytes. Cov cov khoom loj tshaj plaws uas tuaj yeem rub tawm hauv ib qho PUT yog 5 gigabytes. Rau khoom loj dua 100 megabytes, cov neeg siv khoom yuav tsum xav txog siv lub Multipart Upload muaj peev xwm.

Pom zoo: