S3 sync command is using 90% of CPU of the server

0

Hello There,

I have S3 sync script in the server, but when the script is running it is consuming the 80 % -90% of CPU of the server.

Below is my script;

#!/bin /bash
####################################################################
LOCALPATH="/var/www/html"
DATE=$(date +%d-%m-%Y)
echo $DATE
S3=backup
S3LOCATION="folder-backup"
###################################################################
cd $LOCALPATH
/usr/local/bin/aws s3 sync . s3://$S3/$S3LOCATION/$DATE/

My server is having 2 vCPU and 8Gib Ram and the HDD size is 50
the utilization of HDD is 13GB

Can yo please suggest why CPU is reaching so high at the time of s3 sync in the server

질문됨 4년 전1527회 조회
1개 답변
0

Hello
Here is a link that talks about CLI configuration. See if playing with some of the values for max concurrent request, multipart-threshold or multipart-chunksize helps

https://docs.aws.amazon.com/cli/latest/topic/s3-config.html

RT

rtt
답변함 4년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠