diveinto

Google Cloud 有办法限制网络流量么,就是比如月流量超过 40G 之后,就不再提供服务,不然太贵了

  •  
  •   diveinto · May 16, 2018 · 9594 views
    This topic created in 3107 days ago, the information mentioned may be changed or developed.

    https://user-images.githubusercontent.com/698482/40111399-4c3caa36-5935-11e8-9a6d-29cc90080339.png

    太贵了,设个上限免得下个月吃土

    11 replies  •  2018-05-26 10:01:11 +08:00
    cwek
    cwek
    May 16, 2018
    1
    可能要根据 GC 的 API 自动拉统计数据和停机?
    vast0906
    vast0906
    May 16, 2018
    2
    先声明谷歌云不是很了解,
    思路 1 监控网卡流量,到达一定阈值后关闭网络或者关机处理
    思路 2 通过 google api 查询使用流量,离阈值接近的时候 email 通知然后手动关机
    思路 3 看 google 的 console 是否有相关监控,监控然后报警,然后关机~~~~~~
    cctrv
    cctrv
    May 16, 2018 via iPhone
    3
    http://yoursite.com/2018/Limit-the-bandwidth-in-Linux.html

    Google 一下基於思路 1 有很多方案。
    思路 2 要自己寫腳本。
    a1en
    a1en
    May 16, 2018 via iPhone
    4
    gcp 好像不是实时的
    onsale
    onsale
    May 16, 2018
    5
    统计网卡流量最靠谱
    msg7086
    msg7086
    May 16, 2018
    6
    Google Cloud 面向大型企业用户,40GB 停机的话不太可能。40Gbps 停机倒是有可能的……
    diveinto
    diveinto
    OP
    May 17, 2018
    7
    谢谢啦,看来得自己做,有后续报告给大家
    bigtwo
    bigtwo
    May 17, 2018
    8
    很久前用 shell+cron 解决过
    应该是用的 ifconfig+awk 提取流量值,if 对比大小,iptables 封端口或关机
    goodniuniu
    goodniuniu
    May 17, 2018 via iPhone
    9
    真的很快,真的很可贵……
    tufu9441
    tufu9441
    May 18, 2018
    10
    也可以设置消费上限提醒呀
    hizzx
    hizzx
    May 26, 2018
    11
    期待后续
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2342 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 40ms · UTC 00:20 · PVG 08:20 · LAX 16:20 · JFK 19:20
    ♥ Do have faith in what you're doing.