测试环境,cs4.3+xen6.2,
今天测试cpu和内存超载,在全局设置里,修改以下参数,原始参数应该是1,现在改为2,意思是超载2倍。
|
cpu.overprovisioning.factor
|
Used for CPU overprovisioning calculation; available CPU will be (actualCpuCapacity * cpu.overprovisioning.factor)
|
2
|
|
|
mem.overprovisioning.factor
|
Used for memory overprovisioning calculation
|
2
|
|
|
|
重启,查看控制板,无效。
在网上和群里咨询,原来在ui里无法设置超载(估计是个bug),表面上设置好了,但结果无效。
解决办法:
登入mysql数据库,打开cloud库,找到cluster表和cluster_details表,
cluster表,该表显示集群号。注意记下需要超载的集群ID是多少。
|
1
|
1FA01XenClu01
|
d7f20561-f1c0-4ee1-b4df-a67e52ffd9a3
|
|
2
|
wh-4FA0Clu05
|
06d79fbe-5f90-4ed2-9792-3f227659eb58
|
|
3
|
jnxencluster01
|
7a64a25e-3d89-4eb4-814e-5bd38cf25724
|
|
4
|
NULL
|
5544a237-8f5a-46ac-ad26-fe22e6882291
|
cluster_datails表,根据cluster_id编号,修改对应的value值,超2倍就改为2.
memoryOvercommitRatio表示内存超载
cpuOvercommitRatio表示cpu超载。
|
1
|
1
|
memoryOvercommitRatio
|
2.0
|
|
2
|
1
|
cpuOvercommitRatio
|
2.0
|
|
3
|
2
|
memoryOvercommitRatio
|
1.0
|
|
4
|
2
|
cpuOvercommitRatio
|
1.0
|
|
5
|
3
|
memoryOvercommitRatio
|
1.0
|
|
6
|
3
|
cpuOvercommitRatio
|
1.0
|
|
7
|
4
|
memoryOvercommitRatio
|
1.0
|
|
8
|
4
|
cpuOvercommitRatio
|
1.0
|
建议超载前,请将集群中的所有vm删除清空,否则在控制面板显示的cpu内存使用量和实际使用量不符。
超载后,每建立一个虚拟机所占用的cpu内存感觉都要比实际的多,2倍超载后,大概实际能使用到1.5倍左右的量。大家参考着用吧。
阅读(3986) | 评论(0) | 转发(0) |