V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
cmichael
V2EX  ›  Amazon Web Services

aws ec2 上为什么占用的空间越来越大?

  •  
  •   cmichael · 151 天前 · 1275 次点击
    这是一个创建于 151 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我用的是免费的 ec2 ,现在收到这个消息:

    Your AWS account xxxxx has exceeded 85% of the usage limit for one or more AWS Free Tier-eligible services for the month of November.

    Product AWS Free Tier Usage as of 11/27/2023 Usage Limit AWS Free Tier Usage Limit AmazonEC2 25.84750204 GB-Mo 30 GB-Mo 30.0 GB-Mo for free for 12 months as part of AWS Free Usage Tier (Global-EBS:VolumeUsage)

    是不是每个月有 30G 的存储空间限额(流量是好象 100G )?

    我用 df -h 查,没占用那么多空间: Filesystem Size Used Avail Use% Mounted on udev 476M 0 476M 0% /dev tmpfs 98M 508K 97M 1% /run /dev/xvda1 30G 2.8G 26G 10% / tmpfs 487M 0 487M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/xvda15 124M 12M 113M 10% /boot/efi tmpfs 98M 4.0K 98M 1% /run/user/1000

    那为什么会出现?

    3 条回复    2023-11-28 15:03:49 +08:00
    Freakr
        1
    Freakr  
       150 天前
    文件删了句柄没关?
    zidian
        2
    zidian  
       150 天前
    不管你用了多少,人家只看你申请了多少。
    baobao1270
        3
    baobao1270  
       150 天前
    1. 是每个月只有 30G
    2. 他这个是按你创建 EC2 的时候输入的磁盘大小算的,不是按实际大小
    3. 这个邮件他每个月都会提醒,不用管他
    4. 下次记得发帖子发 markdown 格式的,你这 df 的结果根本没法看

    不知道楼主有没有学过量纲分析,AWS EBS 的计费单位不是 $/GB ,而是 $ * (GB * s)^-1 。也就是
    Charge on EBS = Unit price * Data size in GB * Seconds
    你的存储大小没有达到 85%,但是因为这个月过了 85%,所以他每个月都会发
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2768 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 05:36 · PVG 13:36 · LAX 22:36 · JFK 01:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.