[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
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> | | Cc | | | 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
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> <nguyenhuukhoinw@gmail.com> Date 02/15/2023 11:51 To OpenStack Discuss<openstack-discuss@lists.openstack.org> <openstack-discuss@lists.openstack.org> Cc 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
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> | | Cc | | | 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
Okay. I will investigate. The problem is that cpu_util was removed from Ceiliometer. I will keep you updated. Thank you much. On Wed, Feb 15, 2023, 8:28 PM 陈克 <joykechen@163.com> wrote:
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> <nguyenhuukhoinw@gmail.com> 日期 2023年02月15日 21:07 收件人 陈克<joykechen@163.com> <joykechen@163.com> 抄送至 openstack-discuss<openstack-discuss@lists.openstack.org> <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> <nguyenhuukhoinw@gmail.com> Date 02/15/2023 11:51 To OpenStack Discuss<openstack-discuss@lists.openstack.org> <openstack-discuss@lists.openstack.org> Cc 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
Hi, We had the same problem, this patch handles the deprecated "cpu_util" metric: https://review.opendev.org/c/openstack/watcher/+/898791 It was merged recently, so it will be included in the upcoming Watcher release. Regards, Lucian ________________________________ From: Nguyễn Hữu Khôi <nguyenhuukhoinw@gmail.com> Sent: Wednesday, February 15, 2023 3:32 PM To: 陈克 <joykechen@163.com> Cc: Rong Zhu <aaronzhu1121@gmail.com>; openstack-discuss <openstack-discuss@lists.openstack.org> Subject: Re: [Watcher] How use Watcher to scheduler Openstack resource without cpu_usage Okay. I will investigate. The problem is that cpu_util was removed from Ceiliometer. I will keep you updated. Thank you much. On Wed, Feb 15, 2023, 8:28 PM 陈克 <joykechen@163.com<mailto:joykechen@163.com>> wrote: 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><mailto:nguyenhuukhoinw@gmail.com> 日期 2023年02月15日 21:07 收件人 陈克<joykechen@163.com><mailto:joykechen@163.com> 抄送至 openstack-discuss<openstack-discuss@lists.openstack.org><mailto: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<mailto: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><mailto:nguyenhuukhoinw@gmail.com> Date 02/15/2023 11:51 To OpenStack Discuss<openstack-discuss@lists.openstack.org><mailto:openstack-discuss@lists.openstack.org> Cc 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
participants (3)
-
Lucian Petrut
-
Nguyễn Hữu Khôi
-
陈克