Wednesday, 2025-03-26

jneo8Hi Watcher team,... (full message at <https://matrix.org/oftc/media/v1/media/download/AQxrMkw85N8c6ZKVAsJ8Px-MmM710lKoMpxlg8Yllka8COq2Fvi2QU-i7CIcrDTQXZSNmeXzcVWy3dx-dJGLoEJCeWGFIm8QAG1hdHJpeC5vcmcvcXl1TllleWxkWWRrUWlBQ2lLY1lHb2F5>)02:12
sean-k-mooneyjneo8: it currently how its desgined yes, one thing that may be able to help is using nova notificatoin with watcher. watcher has the ablity to consome notificaiton but i have not had time to see if they cna be used today to refresh the cache03:50
jneo8I see, can I open an issue as follow up and we can discuss there?03:51
sean-k-mooneyam sure. the default interval is 1 hour. we are overriedign that in our downstream to i think 15mins initally until we get some expricne with the load that cretes03:54
sean-k-mooneyya i set them to 900 seconds https://github.com/openstack-k8s-operators/watcher-operator/blob/main/templates/00-default.conf#L104-L11103:55
sean-k-mooneyin ci we reduce ti 120 second but i dont think that would be reasonable to production03:55
sean-k-mooneyjneo8: its defintly on of the design choices that we need to revisit03:56
sean-k-mooneyjneo8: this is the current notifcaiotn code https://github.com/openstack/watcher/blob/035e6584c78e2b23a3afef8aaa1ff7696ab9f684/watcher/decision_engine/model/notification/nova.py#L252-L36304:00
sean-k-mooneythat should update the chaced model when instnace are migrated and services are disabled04:01
sean-k-mooneybut only if you have enabel notifcaions in nova and configure watcher to consume them04:01
sean-k-mooneyi have nto had time to audit that code to ensure it still works however04:03
sean-k-mooneyjneo8: that shoudl do what you want in theory by updating the cache as the move operations complete rather then waiting for the perodic to run04:04
jneo8Thanks sean, very helpful instruction.05:39
jneo8I open an [issue](https://bugs.launchpad.net/watcher/+bug/2104220) as follow up.05:39
opendevreviewJoan F Gilabert proposed openstack/watcher master: Set number of decimal digits in efficacy indicator  https://review.opendev.org/c/openstack/watcher/+/94519909:45

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!