migrating a BIG site, issues, how to?

0

THE SHORT QUESTION: How do I upload a huge website to EB?


IN MORE DETAILS:

I have inherited a website that must be migrated. (old host got bought out, new company will not support or install PostgreSQL)

The site is huge over 40GB and over 125,000 files. (after I cleaned things up and removed tmp data) The site is going to be replaced, so I am not about to do a major restructure on it.

The database is ready in RDS, but trying to upload the files has not worked. I didn't even try to upload a zip to the AWS Console. I think it would exceed MAX_POST_SIZE, So I installed EB CLI. It works, I can eb shh without issue.

I ran eb deploy and after 3 hours, I went home for the day and left it running. I came in this morning to "ERROR: FileTooLargeError - Archive cannot be any larger than 512MB"

Can EB handle a large website? What if I want to make a small change, do I have to re-zip and upload the entire website every time??? This seems wasteful, even uploading 10MB for a "2-bit change"

at this point I am leaning towards just spinning up an EC2 and running it in a "traditional" manner. but I want to use EB for the application I am developing now, and it will grow to an even larger size. Of course it will be designed for distributed data using S3 for the bulk of content.

Chad777
질문됨 6년 전802회 조회
3개 답변
0

So I ended up just setting up an Amazon Linux EC2 with Apache2 & php. I let filezilla upload the files over sftp without any issues.

As per usual, automagic didn't work.

Chad777
답변함 6년 전
0

Hello,

There is a maximum size limit to the application zip file being uploaded to Beanstalk for deployment, in this case it is 512MB. This is a hard limit and cannot be changed.

For more information, please see:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features.deployment.html

In general, for assets such as images, it would be better to have them stored in S3 and served by S3, where the Beanstalk environment's EC2 instances only runs your code. That way, serving images are offloaded to S3, and subsequent deployments due to EC2 instance replacements or scale out by your Beanstalk environments autoscaling group will be much faster.

Thanks,
Brennon

답변함 6년 전
0

So the answer then is no, there is no other way. Yes, the site limit is 512Mb. And yes, you must re-deploy the entire site for a 2 bit change. Bummer.

Chad777
답변함 6년 전

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

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

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

관련 콘텐츠