1、opensctack支持内存复用,openstck配置文件中默认的复用比例是1.5,但是这个比例可以调节,比例从几倍到几十倍。这个复用还是基于底层的KVM的机制。在openstack中想调整这个复用比例需要修改nova的配置文件。
2、修改nova的配置文件
在控制节点修改vi /etc/nova/nova.conf
搜索需要修改的内容
默认是: #ram_allocation_ratio=1.5 复用比例是1.5
修改后:ram_allocation_ratio=2 我用的复用比例是2,这个值根据自己业务去设置
3、重启nova的所有服务
建立脚本nova-restart-service.sh
[root@controller ~]# vi nova-restart-service.sh
/bin/systemctl restart openstack-nova-objectstore
/bin/systemctl restart openstack-nova-spicehtml5proxy
/bin/systemctl restart openstack-nova-cert
/bin/systemctl restart openstack-nova-conductor
/bin/systemctl restart openstack-nova-console
/bin/systemctl restart openstack-nova-consoleauth
/bin/systemctl restart openstack-nova-novncproxy
/bin/systemctl restart openstack-nova-scheduler
/bin/systemctl restart openstack-nova-xvpvncproxy
直接执行这个脚本就OK了
[root@controller ~]# sh nova-restart-service.sh
如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞0
添加新评论0 条评论