/srv/irclogs.ubuntu.com/2016/05/17/#launchpad-dev.txt

lifelessblr: de nada00:05
wgrantcjwatson: Do we actually need the depopulation job, or will update-pkgcache do that automatically if we explicitly set it to None there?11:02
cjwatsonwgrant: I initially thought we needed to set fti to None as well in order to get ftiupdate to do anything, but looking at it again I think I was wrong.11:07
wgrantcjwatson: The triggers? They should fire on any column change.11:09
wgrantAny change to a relevant column, that is.11:09
cjwatsonYeah, I just misread the guard at the top of ftiupdate11:09
cjwatsonApparently yesterday wasn't one of my cleverer days11:09
wgrantHeh, I outright rejected one of your branches for the first time, so indeed.11:10
wgrantAh, which I see you've fixed. Excellent, thanks.11:11
cjwatsonYep, although I think it needs further work as per my comment.11:14
wgrantWhat's your concern?11:15
wgrantUnless someone has requested a great many builds recently, or snuck in thousands for an architecture that will never build, there should not be many living BuildQueues.11:15
wgrantBuildQueues existing only for pending or building builds.11:15
cjwatsonAh, good.  That was my initial assumption when I wrote that code and then I realised I didn't remember if BQ was left around afterward.11:17
cjwatsonfixing the excessive join11:19
wgrantGreat.11:19
wgrantBFJ is forever, but BQ lives up to its name.11:19
cjwatsonWhat's the difference between the two feature flags you propose in git-ref-commits?11:20
wgrantOne prevents memcached from being DoSed or causing problems, while the other prevents turnip from being DoSed.11:21
wgrantUseful for working out which is screwed, if nothing else.11:21
wgrantOur memcached cluster has not been tested with significant load in some time.11:21
wgrantBut we at least need the latter one.11:22
cjwatsonOh I see, right.11:22
cjwatsonProbably need to at least synthesise the most recent commit out of the information we have in the latter case.11:23
wgrantIf it's not going to be on by default, maybe, yeah.11:23
wgrantAvoid regressing behaviour from current, plus it's a handful of lines of TAL, right?11:23
cjwatsonDoesn't even need to be in TAL, I was thinking of having getCommits do it11:23
cjwatsonThat's entirely dynamic, the results of that never wind up in the DB11:24
cjwatsonSo getCommits could reasonably say "shrug, this is all I've got"11:24
wgrantAh, of course.11:24
wgrantI would also consider potential for mischief through very large commit messages. But with the feature flags in place that is easy to manually mitigate once discovered.11:26
cjwatsonDisabling the "use memcache" flag would of course significantly increase the load on turnip.11:26
wgrantIt would.11:26
cjwatsonProbably ought to see if we can do something about turnip scaling soon, at least splitting some of the layers.  There's the cgit bodge, but it occurred to me that perhaps we could proxy it to the pack backend.11:31
wgrantYeahhh, I'd been considering that.11:31
wgrantThat makes it a slightly more complicated marginally less bodgy bodge that doesn't inhibit scaling.11:32
cjwatsonwgrant: https://code.launchpad.net/~cjwatson/launchpad/package-cache-drop-changelog/+merge/294894 updated13:41
wgrantcjwatson: Much simpler, thanks.13:42
cjwatsonHm, re getLog, I think I also need to ensure a fallback for the frozen GitRef case.14:01
cjwatsonOh, no, the commits will still be in the repository, so that bit is fine.14:01
wgrantExactly.14:01
cjwatsonwgrant: Also, I was thinking last night of adding a ~registry-viewable memcache stats page to the web UI.14:03
cjwatsonUnless scripts/memcache-stats output is already available somewhere we can see.14:03
wgrantI've never seen it.14:04
cjwatsonThough graphs would be more useful.14:08
cjwatsonhttps://lpstats.canonical.com/graphs/ allegedly has various memcached things but they're all empty.14:08
cjwatsonI have no idea where to look for what's supposed to generate that; no matches in tuolumne14:09
wgrantThey'd be in tuolumne-lp-configs, but nothing there either.14:09
cjwatsonYeah that's what I meant14:09
cjwatsonPresumably they'd have to come off the appservers14:10
cjwatsonThere's a bit of Nagios monitoring but it's very basic14:12
* cjwatson tries to understand why update-pkgcache even exists at all14:27
cjwatsonI don't quite see why we couldn't just fill in cache rows when we touch xPPHs14:27
cjwatsonWe can't fill in all the columns of DSPC until we have binaries, but we could fill that in when we get BPPHs14:28
cjwatsonEr, that's DistributionSourcePackageCache not DistroSeriesPackageCache14:29
wgrantCalculating the entire everything on every BPPH creation would be a bit odd. But it could probably be optimised to be reasonable.14:32
wgrantJust need to watch out for bloat etc.14:32
cjwatsonWe still need to do counters and such in update-pkgcache14:33
cjwatsonIt's a bit odd because you have to look at all BPRs for a source, yes; it would probably do a hell of a lot less work total14:33
wgrantLess work than current update-pkgcache, indeed.14:33
cjwatsonSeems to make more sense to only update caches when things change14:34
wgrantLess work than an update-pkgcache that was written with a mind, probably not.14:34
cjwatsonCould be when we process a build rather than on each individual BPPH, though still watching out for copies and removals14:35
wgrantRight, the only sensible place for it is in publishBinaries14:36
wgrantIf we were going to do it inline.14:36
cjwatsonHow else had you been thinking of improving update-pkgcache (aside from obvious query optimisations and such)?  Its current overall design is all about getting all the published sources and binaries and materialising them, so that would be similar order of work to the queries for NMAF publication of all archives, which doesn't sound like the ten minutes you suggested in Asana14:38

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