简体   繁体   中英

Storage Limit for Amazon EC2 server

I am running a web application on AWS EC2 server. Now I need to send some images to the server and store. Can anyone please tell me if there is a size limit to storing files in the EC2 server?

If you want the storage to survive a restart you'll have to mount an EBS volume. An EBS volume can be up to 1TB. You can attach up to 20 EBS volumes to an instance, which will give you ~20TB worth of storage.

If you need that much data you might also want to consider S3 , which is theoretically unlimited but it requires you to work with the S3 API rather than directly with a filestystem.

I don't think there is a hard limit from the EC2 layer itself. However you should consider the following points:

  • is there a web server configuration for maximum allowed upload size?
  • is there a server-side language configuration for maximum allowed size?
  • is there a filesystem limit?
  • or: if you store the images in a database, is there a limit?
  • is there an operating system limit?

Without knowing more about your application (eg the programing language, server software etc) it is hard to give a general answer. However for "normal images" and "normal applications", you should probably only look into the first two points given :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM