zoukankan      html  css  js  c++  java
  • Windows Azure VM两shut down 道路

    今天调查Azure当价格,找到下面的语句,来自http://azure.microsoft.com/en-us/pricing/details/virtual-machines/

    * If my deployed instance is in the "stopped" state, do I still get billed?

    If your instance is in the Stopped Deallocated state, it is not billed. If your instance is in the Stopped Allocated state, it is still occupying compute resources and will be billed for virtual cores allocated, not the software license itself.

    意思是假设你的VM在Stopped状态下,你依然会被征收CPU使用的费用。而在Stopped Deallocated状态下,全然免费。

    可是却没有提及如何才干达到这两种状态,经过測试发现

    1. stopped状态: 远程登录到VM中,进行shut down操作,VM状态会变成Stop状态

    2. Stopped Deallocated状态: 登录到Azure Portal中,选择VM,点击以下的shutdownbutton。VM就会变成Stopped Deallocated状态

    image

    注意,在点击ShutDownbutton后,会提示If you continue, the IP addresses that were assigned to this virtual machine will be released. Are you sure you want to shut down virtual machine **** ?

    意思是这台VM使用的IP地址会被释放,当年再次启动的时候,一个新的地址会被分配给它。

    DNS NAME不会改变,因此尽量不要使用IP地址。

     

    这一点上Amazon的AWS EC2略微好一点,无论如何shut down VM,都是一个状态,并且shut down后不会被收费。

     

    微软的两种shut down方式不太会影响已经上线的server,由于上线后基本不会关机。仅仅是会影响开发。測试阶段,整体来是问题不大。

    可是还是希望微软可以改进,合并shutdown状态。

     

    注: 网友@盛亚评论

    “CPU time一直也是收费的。除非彻底删除,假设delete这一个VM。但保留了他的磁盘映像,和仍处于打开状态VM当相同的电荷。这点和MS中国方面证实后,。”

    版权声明:本文博客原创文章,博客,未经同意,不得转载。

  • 相关阅读:
    理解z-index
    别在最好的年纪辜负最好的自己
    一劳永逸的flex布局
    移动端常见的兼容性问题
    css代码颜色十六进制大全
    把select的小图标替换成 自己想要的图片
    HTML中的<select>标签如何设置默认选中的选项
    js获取元素,窗口的宽度、高度
    jQuery.NiceScroll简单的API
    Linux搭建ftp服务器简单教程及使用方法
  • 原文地址:https://www.cnblogs.com/mengfanrong/p/4655563.html
Copyright © 2011-2022 走看看