/srv/irclogs.ubuntu.com/2020/08/13/#juju.txt

jammanadart_, do you have write access to Thumper's grafana? I do, but we should make sure several people can see the details.08:54
manadart_jam: I assume I don't; none of the menus allow me to change anything.08:56
jammanadart_, you have to "sign in" from the little icon on the bottom left.08:56
achilleasainterestingly, 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:06
stickupkidachilleasa, can only think of granularity10:07
stickupkidachilleasa, but even then it's a weak argument10:07
achilleasabut in a large model...10:07
achilleasait's one watch loop (==goroutine) for each10:07
stickupkidachilleasa, we totally could optimise for that10:07
stickupkidachilleasa, yeah - hence my "weak argument"10:08
achilleasayeap... that's my plan10:08
achilleasabecause I need to also monitor spaces10:08
achilleasamanadart_: ^^^ this means getting a SpaceInfos API method10:08
* stickupkid tries to make witty joke about manadart_ and a dentist10:10
achilleasastickupkid: we will have to drill the bits we need out of the API. Good enough? :D10:11
stickupkidhahaha10:11
stickupkidachilleasa, I'm unsure, it might be a painful extraction10:12
achilleasaIt will be painful, but I am pretty sure it will be the _crown_ of the refactoring process10:12
stickupkidI think you're just _filling_ in the pieces here10:13
stickupkidWe might need to polish some methods and scale the requests to make it whiter than white10:14
achilleasaBut 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 etc10:18
achilleasahowever working with FLOSS is fun10:18
achilleasastickupkid: 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.Id11:41
achilleasasoo 500 machines -> 500 API calls to the provider + 500 calls to grab the ingress rules (if we are using instance fw)11:42
achilleasa(although the latter calls might be already cached in the instance data depending on the provider)11:43
stickupkidnice and fast - lol11:43
* achilleasa senses another long PR description coming up...11:44
hmlstickupkid: https://github.com/juju/juju/pull/1190112:16
hmli have to look at static anaylsis and i think there are a couple of tests which need fixing. but can start on the review12:16
hmlrebasing to your change was interesting.  i think i got it right12:17
hmlstickupkid: approved 31314:13
hmlfix for intermittent unit test failure, review please:  https://github.com/juju/juju/pull/1190315:00
hmlachilleasa, stickupkid, manadart_ ^^15:00
hmlreview please https://github.com/juju/juju/pull/1190416:41
achilleasahml: looking at 11904; ticked 1190316:51
hmlachilleasa:  ty16:51
achilleasabtw, was the ports one caused by my refactoring changes? I wonder whether I missed a sort call somewhere16:52
achilleasahml: left some comments16:56
hmlachilleasa:  reading, ty17:26
hmlachilleasa:  on the ports thing, is order important?  i was wondering, but it’s also a very old test17:28
hmlachilleasa:  updated 1190417:43

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!