我正在尝试使用AWS CLI启动ec2实例,但默认根卷仅为8GB。如何使用具有100GB根卷的CLI使用CLI启动ec2实例?
我正在尝试此命令,
aws ec2 run-instances --image-id ami-xxxxx --count 1 --instance-type t2.micro \
--subnet-id xxxxxxx \
--key-name my-key \
--security-group-ids sg-xxxxxx \
--no-associate-public-ip-address \
--user-data file://test.sh \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=test-server}]'
Run Code Online (Sandbox Code Playgroud)
我尝试添加以下参数,但无法正常工作。
--block-device-mapping DeviceName=/dev/sda1,Ebs={VolumeSize=100}--block-device-mapping /dev/sda1=:100:false--block-device-mappings <value> (将辅助EBS卷添加到实例)。我们使用 kong api 网关作为所有 api 的单一网关。我们的api很少(1500-2000ms)面临延迟问题。后来当我们检查时,由于“速率限制”插件,正在创建延迟。当我们禁用插件时,延迟会得到改善,并且响应与我们直接从 IP 获得的响应相同(接近 300 毫秒)。我正在尝试设置 redis 节点来缓存数据库查询,我不确定我们如何配置 kong 以从 redis 本身读取。我们如何将数据库查询缓存到 redis 节点。我们正在为 kong 使用 postgresql。