
S3 객체 스토리지 앞에 Nginx 프록시를 설정했는데 지금까지 아무런 문제 없이 파일을 다운로드할 수 있습니다.
그러나 30개의 다른 서버에서 동시에 동일한 파일을 다운로드하려고 하면 처음 10~11개의 서버만 계속 다운로드할 수 있고 나머지는 다음 오류와 함께 취소됩니다.
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
이것은 파일을 다운로드하기 위해 실행 중인 명령입니다.
sudo curl -f -Ls https://cdn.mydomain.com/files/somefile.tar.gz | tar xvz
그리고 이것은 아래의 nginx 구성 파일입니다 /etc/nginx/sites-enabled/cdn.conf
.
server {
listen 80;
server_name cdn.mydomain.com;
if ($host != "cdn.mydomain.com") {
return 444;
}
access_log /var/log/nginx/reverse-access.log;
error_log /var/log/nginx/reverse-error.log;
location /files {
proxy_pass https://myBucket.s3.nl-ams.scw.cloud/files;
proxy_set_header X-Real-IP $remote_addr;
}
}
My는 nginx.conf
서버에 nginx를 처음 설치할 때 생성되는 기본 파일입니다.
무엇이 이것을 제한하는지 모르겠지만 이 설정에서 더 많은 동시 다운로드를 허용하려면 어떻게 해야 합니까?