diveinto

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

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

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