*** sballe has quit IRC | 00:15 | |
*** sballe has joined #openstack-dns | 00:15 | |
*** dguerri has quit IRC | 00:28 | |
*** dguerri has joined #openstack-dns | 00:34 | |
*** dguerri has quit IRC | 00:43 | |
openstackgerrit | Endre Karlson proposed a change to stackforge/designate: Part 1 of FloatingIP PTR record functionality https://review.openstack.org/58316 | 00:44 |
---|---|---|
*** nosnos has joined #openstack-dns | 00:53 | |
*** shawni has joined #openstack-dns | 01:02 | |
*** shawni has quit IRC | 01:06 | |
*** rossk has quit IRC | 01:14 | |
*** rossk has joined #openstack-dns | 01:15 | |
*** rossk has quit IRC | 01:15 | |
*** rossk has joined #openstack-dns | 01:16 | |
*** rossk has quit IRC | 01:29 | |
*** rossk has joined #openstack-dns | 01:29 | |
*** CaptTofu has quit IRC | 01:34 | |
*** CaptTofu has joined #openstack-dns | 01:34 | |
*** CaptTofu has quit IRC | 01:35 | |
*** CaptTofu has joined #openstack-dns | 01:35 | |
*** CaptTofu has quit IRC | 01:39 | |
*** nosnos has quit IRC | 01:43 | |
*** nosnos has joined #openstack-dns | 01:44 | |
*** rossk has quit IRC | 01:46 | |
*** msisk_ has joined #openstack-dns | 02:02 | |
*** msisk_ has quit IRC | 02:04 | |
*** nosnos has quit IRC | 02:43 | |
*** eankutse has joined #openstack-dns | 02:57 | |
*** rektide_ is now known as rektide | 03:10 | |
*** vipul is now known as vipul-away | 03:48 | |
*** vipul-away is now known as vipul | 03:52 | |
*** msisk has quit IRC | 03:55 | |
*** eankutse has quit IRC | 04:45 | |
*** sballe_ has joined #openstack-dns | 05:23 | |
*** sballe has quit IRC | 05:26 | |
*** jmcbride has joined #openstack-dns | 05:29 | |
*** jmcbride has quit IRC | 05:33 | |
*** amrit has quit IRC | 06:18 | |
*** zigo_ is now known as zigo | 06:46 | |
*** pavelk has joined #openstack-dns | 08:14 | |
*** CaptTofu has joined #openstack-dns | 09:17 | |
*** CaptTofu has quit IRC | 09:19 | |
*** CaptTofu has joined #openstack-dns | 09:19 | |
*** CaptTofu has quit IRC | 09:24 | |
kiall | artom: humm.. Looks like that index isn't missing.. at least with MySQL.. | 10:21 |
kiall | I think this only affects SQLite .. Since SQLite doesn't natively support ALTER TABLE.. | 10:25 |
kiall | So, SQLA actually creates a new table, copies data, deletes the old, renames the new | 10:25 |
kiall | Wow - Test run on my laptop is taking AGES.. | 10:27 |
kiall | This can't be right ;) | 10:30 |
kiall | 13.5s before vs 105.334s after the patchset is applied | 10:31 |
openstackgerrit | Kiall Mac Innes proposed a change to stackforge/designate: Ensure SQLite has the correct unique_record index https://review.openstack.org/65446 | 10:37 |
ekarlso | artom: you here ? | 10:47 |
*** CaptTofu has joined #openstack-dns | 11:55 | |
ekarlso | tror /win 49 | 11:56 |
kiall | ekarlso: ? | 11:57 |
ekarlso | wrong window :) | 11:57 |
*** artom_ has joined #openstack-dns | 12:43 | |
artom_ | kiall, I'll have to make sure it only migrates the database once for every repo... | 12:44 |
artom_ | ekarlso, connected from home :) | 12:44 |
*** sballe_ has quit IRC | 12:45 | |
*** sballe_ has joined #openstack-dns | 12:45 | |
artom_ | kiall, the SSD makes it hard to judge runnning time ;) | 12:46 |
kiall | ;) | 12:47 |
*** rjrjr has joined #openstack-dns | 13:05 | |
*** sballe_ has quit IRC | 13:06 | |
*** artom_ has quit IRC | 13:19 | |
*** jmcbride has joined #openstack-dns | 13:26 | |
*** jmcbride has quit IRC | 13:33 | |
*** CaptTofu has quit IRC | 13:36 | |
*** CaptTofu has joined #openstack-dns | 13:37 | |
*** CaptTofu has quit IRC | 13:37 | |
*** eankutse has joined #openstack-dns | 14:10 | |
*** eankutse has quit IRC | 14:23 | |
*** eankutse has joined #openstack-dns | 14:23 | |
artom | kiall, I suspect the long runtime is because, while it only upgrades the db once per process, many processes are spawned. | 14:38 |
artom | I added some logging with PID to a file and that's what comes out... | 14:39 |
kiall | Possibly.. I'll check with a concurrency of 1 | 14:39 |
*** jmcbride has joined #openstack-dns | 15:02 | |
*** betsy has joined #openstack-dns | 15:18 | |
*** tsimmons has joined #openstack-dns | 15:29 | |
*** CaptTofu has joined #openstack-dns | 15:41 | |
openstackgerrit | Vinod Mangalpally proposed a change to stackforge/designate: Add APIs for managing TLDs https://review.openstack.org/65488 | 15:47 |
tsimmons | kiall: I was looking at doing some work on https://blueprints.launchpad.net/designate/+spec/bulk-modify-delete-zones (bulk modify/delete zones). Do you see any issue off the top of your head with me starting work on that? | 15:51 |
*** sballe has joined #openstack-dns | 15:51 | |
kiall | Hey tsimmons | 15:52 |
*** sballe has quit IRC | 15:52 | |
kiall | So, yes/no .. I think we need to start being transactional in how we interact with the designate DB for reliable bulk actions.. | 15:53 |
kiall | But, I'm not sure how best to get there :) | 15:53 |
tsimmons | Hm. Would there be some way to confirm at the time of this particular action that it is viable and if not roll it back? | 15:55 |
kiall | Well, the difficulty is handling that concurrently on all the designate-central's .. So I reckon we'll have to rely on DB transactions for it to really work | 15:56 |
kiall | Anyway - It's defiantly something we should be doing .. A good start would be updating storage/api.py to use TX's rather than manual rollbacks, then extending those to support batch actions.. | 15:58 |
kiall | That still leaves issues with powerdns db / bind zone files etc.. But maybe if a TX fails, we resync the whole zone? | 15:59 |
tsimmons | So if another designate central were to try to access the items that were being bulk modified by another? Is that the concurrency you're talking about? | 16:00 |
artom | kiall, any results with concurrency=1? | 16:01 |
kiall | tsimmons: yea, the risk of conflicting API calls is much higher when updating 100 records etc | 16:02 |
kiall | artom: haven't had a chance yet | 16:02 |
*** msisk has joined #openstack-dns | 16:02 | |
artom | I could move the one-db-per-repo check out of process, to a file most likely... | 16:03 |
kiall | No, we do actually need to create 1 per testr process, but.. It "feels" like it's doing much more than that | 16:05 |
artom | We do? | 16:06 |
*** CaptTofu has quit IRC | 16:06 | |
*** CaptTofu has joined #openstack-dns | 16:07 | |
*** CaptTofu has quit IRC | 16:09 | |
*** CaptTofu has joined #openstack-dns | 16:09 | |
*** vinod1 has joined #openstack-dns | 16:12 | |
tsimmons | So instead of doing a storage.delete_domain for example. Would you want to some sort of more manual database action? | 16:12 |
*** eankutse has quit IRC | 16:16 | |
*** eankutse has joined #openstack-dns | 16:16 | |
kiall | tsimmons: sorry, was AFK | 16:16 |
kiall | tsimmons: so, for example .. https://github.com/stackforge/designate/blob/master/designate/storage/api.py#L73-90 | 16:17 |
kiall | We should be replacing the manual rollbacks there with proper transactions, then, extending storage to support batch actions.. | 16:17 |
*** msisk has quit IRC | 16:17 | |
tsimmons | Ok, so in general, what would that sort of look like? | 16:20 |
kiall | off the top of my head, in that file, we'd call a self.storage.begin() / self.storage.commit() / self.storage.rollback() where appropriate, then implement those 3 methods in the SQLA driver to handle the TX, which SQLA has support for etc | 16:21 |
kiall | So - That part should be simple enough, after that, we could start adding support for batches to the various methods.. Updating central as we go | 16:22 |
*** msisk has joined #openstack-dns | 16:22 | |
artom | I suppose I could run tests from a USB stick... | 16:26 |
artom | Gets rid of my SSD "problem" so I can replicate the issue ;) | 16:27 |
kiall | artom: sorry - very distracted at the moment ;) | 16:27 |
kiall | I'll give it a shot in a few | 16:27 |
artom | Bah, regardless, it's not very scalable to run to you every time I change something. | 16:28 |
kiall | :P | 16:28 |
artom | Though I don't grok why we need one golden db per process | 16:29 |
artom | As opposed to a single global one (per repo) | 16:29 |
kiall | We don't have anywhere to create 1 "total" as we've got nowhere to run code before the processes are started | 16:30 |
artom | Hence my file idea. | 16:31 |
kiall | I'm not sure I follow then :) | 16:36 |
artom | Something like this: http://paste.openstack.org/show/60809/ | 16:37 |
artom | With locking thrown in so that while the the db is being upgraded other process don't use it. | 16:38 |
openstackgerrit | A change was merged to stackforge/designate: Ensure SQLite has the correct unique_record index https://review.openstack.org/65446 | 16:45 |
kiall | Humm, That would mean all the processes need to know the same filename in advance, which is generally something to avoid.. | 16:45 |
artom | Yeah, the filename would be hardcoded. | 16:46 |
artom | For example by prepending /tmp to the migrate repo path. | 16:46 |
*** sballe has joined #openstack-dns | 16:48 | |
*** vinod1 has quit IRC | 16:55 | |
*** jmcbride has quit IRC | 16:56 | |
kiall | Meeting in 2 mins.. | 16:57 |
kiall | Although, looks like the previous meeting might run over.. We'll see. | 16:57 |
tsimmons | Cool | 16:58 |
*** vinod has joined #openstack-dns | 16:59 | |
*** jmcbride has joined #openstack-dns | 17:00 | |
kiall | And - started :) | 17:00 |
rjrjr | what channel was the meeting again? | 17:02 |
tsimmons | #openstack-meeting-alt | 17:02 |
rjrjr | thanks | 17:03 |
*** sballe has quit IRC | 17:23 | |
*** sballe has joined #openstack-dns | 17:24 | |
*** jmcbride1 has joined #openstack-dns | 17:29 | |
*** jmcbride has quit IRC | 17:30 | |
*** jmcbride has joined #openstack-dns | 17:39 | |
*** CaptTofu has quit IRC | 17:40 | |
*** CaptTofu has joined #openstack-dns | 17:41 | |
*** jmcbride1 has quit IRC | 17:43 | |
*** CaptTofu has quit IRC | 17:50 | |
*** CaptTofu has joined #openstack-dns | 17:50 | |
*** tsimmons has quit IRC | 18:05 | |
*** jmcbride has quit IRC | 18:19 | |
*** rossk has joined #openstack-dns | 18:26 | |
*** CaptTofu has quit IRC | 18:26 | |
*** vinod has quit IRC | 18:29 | |
*** CaptTofu has joined #openstack-dns | 18:34 | |
*** jorgem has joined #openstack-dns | 18:35 | |
*** eankutse has quit IRC | 18:36 | |
*** CaptTofu has quit IRC | 18:58 | |
*** jmcbride has joined #openstack-dns | 19:36 | |
*** eankutse has joined #openstack-dns | 19:50 | |
*** vinod has joined #openstack-dns | 19:58 | |
*** vipul is now known as vipul-away | 20:02 | |
*** vipul-away is now known as vipul | 20:02 | |
*** vipul is now known as vipul-away | 20:17 | |
*** vipul-away is now known as vipul | 20:36 | |
artom | Did some tests on my USB key... (since it's the only "slow" disk I have) | 20:50 |
artom | http://paste.openstack.org/show/60828/ | 20:52 |
artom | I think it's as good as it's going to get... | 20:53 |
*** betsy has quit IRC | 20:54 | |
openstackgerrit | Artom Lifshitz proposed a change to stackforge/designate: Database fixture https://review.openstack.org/62079 | 20:56 |
*** CaptTofu has joined #openstack-dns | 21:06 | |
openstackgerrit | Endre Karlson proposed a change to stackforge/designate: Part 1 of FloatingIP PTR record functionality https://review.openstack.org/58316 | 21:27 |
*** david-lyle has quit IRC | 21:27 | |
*** david-lyle has joined #openstack-dns | 21:28 | |
*** eankutse has quit IRC | 21:31 | |
*** eankutse has joined #openstack-dns | 21:31 | |
*** jmcbride has quit IRC | 22:00 | |
*** vinod has quit IRC | 22:11 | |
*** eankutse has quit IRC | 22:24 | |
*** msisk has quit IRC | 22:36 | |
kiall | artom: I'll test on my "slow" PC in the morning, but I expect we can reduce the time by consolidating the old migrations down.. Assuming the "slowness" really is just the cost of testing using the actual migrations, it's an acceptable cost I reckon. We have a bunch of things we can do to reduce the cost anyway.. like: | 23:00 |
kiall | 1) reduce the migrations.. | 23:00 |
kiall | 2) Offer 2 test modes, 1 which uses the migrations, 1 which creates the DB from the models.. But add a test to ensure the model generated DB is the same as the migration generated DB | 23:00 |
kiall | Both would be followup commits rather than changes to your stuff :) | 23:01 |
kiall | the test from in #2 is would be another good thing anyway, regardless. | 23:01 |
*** jmcbride has joined #openstack-dns | 23:30 | |
*** jmcbride has quit IRC | 23:33 | |
*** jorgem has quit IRC | 23:42 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!