Okay.
Next, I think you need to modify Watcher's code according to the configured data source (e.g., Ceilometer) so that Watcher can get accurate data.
I'm sorry I'm busy this week and can't actually modify the code through the environment to give you a further reply.
You are welcome to verify the effect by changing the code. If it is convenient, you can add me and rongzhu to the review.
Thank you!
---- 回复的原邮件 ----
发件人 Nguyễn Hữu Khôi<nguyenhuukhoinw@gmail.com> 日期 2023年02月15日 21:07 收件人 陈克<joykechen@163.com> 抄送至 openstack-discuss<openstack-discuss@lists.openstack.org> 主题 Re: [Watcher] How use Watcher to scheduler Openstack resource without cpu_usage Thank you for your reply.I am using openstack Xena version. I have read that this metric was removed from Train.I want to do virtual machine migration or server load balancing.On Wed, Feb 15, 2023, 8:02 PM 陈克 <joykechen@163.com> wrote:Hello,
what resource optimization do you want to do with watcher?
If you just want to save energy, you don't need to pay attention to cpu_usage.
If you want to do virtual machine migration or server load balancing, please provide the specific version of the missing cpu_usage, or submit a watcher commit, we will analyze it together, thank you!
---- Replied Message ----
From Nguyễn Hữu Khôi<nguyenhuukhoinw@gmail.com> Date 02/15/2023 11:51 To OpenStack Discuss<openstack-discuss@lists.openstack.org> Subject [Watcher] How use Watcher to scheduler Openstack resource without cpu_usage Hello guys.I want to use watcher to scheduler openstack resources but some openstack versions are missing cpu_usage metric. How do we use Watcher without it?Thank you.Nguyen Huu Khoi