AWS Elastic Beanstalk - 增加实例磁盘容量 [英] AWS Elastic Beanstalk - Increase Instance Disk Capacity

查看:29
本文介绍了AWS Elastic Beanstalk - 增加实例磁盘容量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将 ElasticBeanstalk 用于具有较大初始空间要求的应用程序.它超过了 EC2 实例上 EBS 磁盘的默认 8GB 容量.

I'm trying to use ElasticBeanstalk for an app with some big initial space requirements. It exceeds the default 8GB capacity of the EBS disk on the EC2 instances.

我尝试通过使用更大的 EC2 实例类型来增加磁盘容量.例如,我使用了 m3.large,AWS 告诉我应该为我提供 1x32GB 的存储空间.

I tried to increase the disk capacity by using a bigger EC2 instance type. For instance, I used an m3.large, which AWS tells me should provide me with 1x32GB of storage.

但是,当 Beanstalk 环境启动时,它仍然只显示 8GB.我尝试在实例上运行resize2fs"命令,但它没有将卷扩展到超过 8GB.

However, when the Beanstalk environment launches, it still only shows 8GB. I tried to run the "resize2fs" command on the instance, but it didn't expand the volume to anything over 8GB.

有谁知道如何在 ElasticBeanstalk 环境中获得更大的实例存储?

Does anyone know how to get bigger instance storage on ElasticBeanstalk environments?

推荐答案

您看到的 8 GB 磁盘是安装在 / 上的 EBS 根卷.无论您使用哪种实例类型,这都是一样的,这就是为什么它仍然只显示 8 GB.32 GB 的存储是附加到实例的临时存储(不是 EBS).它可能没有自动安装,但肯定存在.

The 8 GB disk you are seeing is an EBS root volume mounted on /. That's the same no matter what instance type you use, which is why it still only shows 8 GB. The 32 GB of storage is ephemeral storage attached to the instance (not EBS). It's possible that it's not mounting automatically but it's certainly there.

两种选择:

  1. 您可以尝试安装 32 GB 的临时存储.

  1. You can try to get that 32 GB ephemeral storage mounted.

您可以创建和挂载任何大小的单独 EBS 卷需要:http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.htmlhttp://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html

You can create and mount a separate EBS volume of whatever size you need: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-creating-volume.html http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html

无论哪种方式,您都需要进行任何所需的更改以指向这个新存储,无论您在文件系统中的哪个位置安装它.这可以通过更改配置或创建从旧位置到新文件系统的符号链接.

Either way, you will need to make whatever changes are required to point to this new storage, where ever you mount it in the filesystem. That can be by changing your configurations or creating symlinks from the old location to the new filesystem.

这篇关于AWS Elastic Beanstalk - 增加实例磁盘容量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆