简体   繁体   English

Amazon EC2服务器的存储限制

[英]Storage Limit for Amazon EC2 server

I am running a web application on AWS EC2 server. 我在AWS EC2服务器上运行Web应用程序。 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? 谁能告诉我在EC2服务器中存储文件是否有大小限制?

If you want the storage to survive a restart you'll have to mount an EBS volume. 如果要使存储在重新启动后仍然存在,则必须安装EBS卷。 An EBS volume can be up to 1TB. EBS卷最多可以达到1TB。 You can attach up to 20 EBS volumes to an instance, which will give you ~20TB worth of storage. 您最多可以将20个EBS卷附加到一个实例,这将为您提供约20TB的存储容量。

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. 如果您需要大量数据,则可能还需要考虑S3 ,从理论上讲它是不受限制的,但它需要您使用S3 API而不是直接使用filetystem。

I don't think there is a hard limit from the EC2 layer itself. 我认为EC2层本身没有硬性限制。 However you should consider the following points: 但是,您应该考虑以下几点:

  • is there a web server configuration for maximum allowed upload size? 是否有用于最大允许上传大小的Web服务器配置?
  • 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 :) 但是对于“普通图像”和“普通应用程序”,您应该只查看给出的前两点:)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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