如何 sizing 一台物理机上可以承载多少 VMware 虚拟机?
twt企业IT社区 2018-05-18
来自社区“VMware vSphere性能优化设计在线答疑”活动,提问者:sharkbing,由社区专家解答
如何去sizing 一台物理机上可以承载多少vmware 虚拟机?
@chinesezzqiang 某央企
好问题。
确定了虚拟机的配置后,就可以通过简单计算得出主机的配置。以下只是example:
比如虚拟机的内存为8G,CPU是4核。那么公司预计是100个虚拟机的总量(1年内),那么建议每个主机25个虚拟机,25*8=200G内存,CPU一般不是虚拟机的性能瓶颈。预留一些内存给系统,所以可以采用256G内存、2颗intel12core的主机即可。(不考虑IO方面的需求)
@chengzuqiao 江西省农村信用社
这个要根据你们应用使用资源情况分配,没有一定的标准,反正资源可动态调配
@Jerry Lee BRS CE
首先,考虑ESX主机的性能效率,一般维持在主机性能压力70%左右。最高不建议超过85%。
其次,若是考虑ESX主机和虚拟机数量平衡,一般会在正式部署前进行性能压力测试,制作多种生产规格的虚拟机模板,并在虚拟机上安装CPU/内存/磁盘IO等压力测试工具,逐批增加各规模虚拟机数量,直至ESX主机达到性能70%、85%。
最后,若对生产的ESX主机有高可用或者容灾要求,部署虚拟机前需要评估虚拟机实际的生产压力,然后平均的在压力空闲的ESX上部署。
@a520520168 索菲亚
host的内存有多少,虚机的总和肯定不能超过这个数,这是肯定的了。。。。然后还要预留给系统什么的。一般就OK了。。。。CPU要算那个核数和线程数。超了会争抢。网卡和disk io的话就要观察了。
分享 Vsphere HA 几个实用知识点
penguin23 twt企业IT社区 2017-10-09
1、Vsphere HA的主机准入控制策略
它分为允许故障主机数、资源预留百分比、指定故障转移主机、不预留故资源。
因为在Vsphere HA中每个HOST随时都有可能承担重启HOST切换过来。一般的都将要考虑不同的VM Failover的下一HOST配置。
A.指定故障主机数:给重要的VM预留出本主机的资源。
B.资源预留百分比:按百分比预留整个Cluster资源。如,cluster中主机所有主机内存为220G,预留10%即22G。
C.指定故障转移主机,因为需要一台host一直处于stand by状态。
D.不预留资源。
2、通过设置VM的权重,让重要VM可获取预留的资源。
注意点是当Cluster中有2台host宕机时,他会先启动第1台host上的VM,等启动完成后才会启动第2台host上的VM,尽管第2台host上的VM权重可能比第1台host上的要高。
Find OUT:哪个是Cluster中的第1Host。
3、关于Vsphere主机的标准交换机、分布式交换机的个人总结;
A、标准交换机可配置创建与分布式交换机相同的对应Vlan网络。
B、将Vmkernel单独配置标准交换机种,可避免再删除分布式交换机时候遇到麻烦。
4、Reset Esxi主机,重置root密码,重置Esxi Host网络的配置。