[08:54] manadart_, do you have write access to Thumper's grafana? I do, but we should make sure several people can see the details. [08:56] jam: I assume I don't; none of the menus allow me to change anything. [08:56] manadart_, you have to "sign in" from the little icon on the bottom left. [10:06] interestingly, the firewall worker has a per-machine watcher for the units, a per-application watcher etc. Any ideas why that is the case instead of watching all units, applications etc? [10:07] achilleasa, can only think of granularity [10:07] achilleasa, but even then it's a weak argument [10:07] but in a large model... [10:07] it's one watch loop (==goroutine) for each [10:07] achilleasa, we totally could optimise for that [10:08] achilleasa, yeah - hence my "weak argument" [10:08] yeap... that's my plan [10:08] because I need to also monitor spaces [10:08] manadart_: ^^^ this means getting a SpaceInfos API method [10:10] * stickupkid tries to make witty joke about manadart_ and a dentist [10:11] stickupkid: we will have to drill the bits we need out of the API. Good enough? :D [10:11] hahaha [10:12] achilleasa, I'm unsure, it might be a painful extraction [10:12] It will be painful, but I am pretty sure it will be the _crown_ of the refactoring process [10:13] I think you're just _filling_ in the pieces here [10:14] We might need to polish some methods and scale the requests to make it whiter than white [10:18] But as you know, when you introduce new APIs you might get teething problems that need to be addressed, rough edges that you need to be extracted etc [10:18] however working with FLOSS is fun [11:41] stickupkid: there is much more room for optimization it seems.... e.g here(https://github.com/juju/juju/blob/develop/worker/firewaller/firewaller.go#L545-L564) we grab instance details for each machine in the model. However, the Instances method now (after the instancepoller changes) accepts a slice of instance.Id [11:42] soo 500 machines -> 500 API calls to the provider + 500 calls to grab the ingress rules (if we are using instance fw) [11:43] (although the latter calls might be already cached in the instance data depending on the provider) [11:43] nice and fast - lol [11:44] * achilleasa senses another long PR description coming up... [12:16] stickupkid: https://github.com/juju/juju/pull/11901 [12:16] i have to look at static anaylsis and i think there are a couple of tests which need fixing. but can start on the review [12:17] rebasing to your change was interesting. i think i got it right [14:13] stickupkid: approved 313 [15:00] fix for intermittent unit test failure, review please: https://github.com/juju/juju/pull/11903 [15:00] achilleasa, stickupkid, manadart_ ^^ [16:41] review please https://github.com/juju/juju/pull/11904 [16:51] hml: looking at 11904; ticked 11903 [16:51] achilleasa: ty [16:52] btw, was the ports one caused by my refactoring changes? I wonder whether I missed a sort call somewhere [16:56] hml: left some comments [17:26] achilleasa: reading, ty [17:28] achilleasa: on the ports thing, is order important? i was wondering, but it’s also a very old test [17:43] achilleasa: updated 11904