Wednesday, 2013-11-06

*** fvollero|gone has quit IRC00:04
*** jcru has quit IRC00:05
*** jamieh has quit IRC00:14
*** kgriffs is now known as kgriffs_afk00:18
*** kgriffs_afk is now known as kgriffs00:18
*** kgriffs is now known as kgriffs_afk00:32
*** kgriffs_afk is now known as kgriffs00:32
*** vkmc has quit IRC00:34
*** kgriffs is now known as kgriffs_afk00:40
*** nosnos has joined #openstack-marconi01:04
*** asalkeld has joined #openstack-marconi01:19
*** amitgandhi has joined #openstack-marconi01:22
*** asalkeld has quit IRC01:39
*** oz_akan_ has joined #openstack-marconi02:26
*** malini_afk has left #openstack-marconi02:44
*** oz_akan_ has quit IRC02:46
*** oz_akan_ has joined #openstack-marconi02:48
*** kgriffs_afk is now known as kgriffs02:50
*** kgriffs is now known as kgriffs_afk03:02
*** kgriffs_afk is now known as kgriffs03:03
*** kgriffs is now known as kgriffs_afk03:11
*** kgriffs_afk is now known as kgriffs03:11
*** oz_akan_ has quit IRC03:11
*** amitgandhi has quit IRC03:21
*** amitgandhi has joined #openstack-marconi03:22
*** amitgandhi has quit IRC03:26
*** kgriffs is now known as kgriffs_afk04:02
*** kgriffs_afk is now known as kgriffs04:02
*** kgriffs is now known as kgriffs_afk04:08
*** cpallares has quit IRC04:12
*** gleicon____ has joined #openstack-marconi04:16
*** amitgandhi has joined #openstack-marconi04:22
*** gleicon___ has quit IRC04:23
*** gleicon____ is now known as gleicon___04:23
*** amitgandhi has quit IRC04:27
*** amitgandhi has joined #openstack-marconi05:23
*** amitgandhi has quit IRC05:28
*** amitgandhi has joined #openstack-marconi06:24
*** amitgandhi has quit IRC06:31
*** amitgandhi has joined #openstack-marconi07:27
*** kgriffs_afk is now known as kgriffs07:31
*** amitgandhi has quit IRC07:32
*** kgriffs is now known as kgriffs_afk07:41
*** westmaas_ is now known as westmaas08:06
*** kgriffs_afk is now known as kgriffs08:21
*** ani has joined #openstack-marconi08:24
*** amitgandhi has joined #openstack-marconi08:27
ani\aniuskad08:29
*** ani has quit IRC08:29
*** amitgandhi has quit IRC08:32
*** kgriffs is now known as kgriffs_afk08:54
*** kgriffs_afk is now known as kgriffs08:54
*** yassine has joined #openstack-marconi08:57
*** jamieh has joined #openstack-marconi08:59
*** kgriffs is now known as kgriffs_afk09:03
*** amitgandhi has joined #openstack-marconi09:28
*** amitgandhi has quit IRC09:33
*** kgriffs_afk is now known as kgriffs09:41
*** nosnos has quit IRC09:47
*** kgriffs is now known as kgriffs_afk10:03
*** amitgandhi has joined #openstack-marconi10:29
*** amitgandhi has quit IRC10:34
*** amitgandhi has joined #openstack-marconi11:29
*** amitgandhi has quit IRC11:34
*** vkmc has joined #openstack-marconi12:04
*** vkmc has quit IRC12:04
*** vkmc has joined #openstack-marconi12:04
*** amitgandhi has joined #openstack-marconi12:30
*** malini has joined #openstack-marconi12:32
*** amitgandhi has quit IRC12:35
*** tedross has joined #openstack-marconi12:55
*** malini is now known as malini_afk13:08
*** oz_akan_ has joined #openstack-marconi14:03
*** oz_akan_ has quit IRC14:04
*** oz_akan_ has joined #openstack-marconi14:05
*** alcabrera has joined #openstack-marconi14:06
*** amitgandhi has joined #openstack-marconi14:06
*** tedross has quit IRC14:07
*** tedross has joined #openstack-marconi14:07
*** alcabrera has quit IRC14:15
*** amitgandhi has quit IRC14:17
*** amitgandhi has joined #openstack-marconi14:18
*** amitgandhi has quit IRC14:22
*** malini_afk is now known as malini14:22
*** jcru has joined #openstack-marconi14:32
*** amitgandhi has joined #openstack-marconi14:33
*** amitgandhi has quit IRC14:39
*** amitgandhi has joined #openstack-marconi14:40
*** kgriffs_afk is now known as kgriffs15:07
*** alcabrera has joined #openstack-marconi15:28
*** kgriffs is now known as kgriffs_afk15:30
*** kgriffs_afk is now known as kgriffs15:30
*** alcabrera has quit IRC15:53
*** jcru has quit IRC15:54
*** amitgandhi has quit IRC16:03
*** amitgandhi has joined #openstack-marconi16:04
*** alcabrera has joined #openstack-marconi16:09
*** amitgandhi has quit IRC16:09
alcabrerakgriffs: ping16:14
kgriffso/16:14
alcabreraHow goes the openstack summit? :D16:14
kgriffsgreat!16:14
kgriffs...except for the jet lag. :p16:14
alcabreraheh. :P16:14
alcabreraI need your input on a sharding patch, if you have a spare moment. (5 min?)16:15
kgriffssure16:15
alcabreraL417: https://review.openstack.org/#/c/54945/3/marconi/queues/storage/sharding.py16:15
alcabrerawhy was the 'if not exists(...)' check reverted?16:16
alcabreras/reverted/removed16:16
* kgriffs is thinking16:16
alcabreraThe queue re-registration problem cropped up today during testing. ;)16:17
kgriffsTBH, I don't remember there being a good reason16:18
kgriffsit may have been accidental16:18
alcabrerakk - just wanted to make sure.16:19
alcabreraI was going to fix things up today and wanted to make sure I wasn't missing something.16:19
kgriffshmm16:19
kgriffsso, I was just looking at L163, where that register is called16:23
kgriffsand yeah, it doesn't check for exists there16:23
kgriffsseems like someone should!16:23
*** amitgandhi has joined #openstack-marconi16:24
*** amit has joined #openstack-marconi16:24
kgriffsalcabrera: I'm pretty sure that change was accidental16:24
alcabrerathanks for the double check. :)16:25
*** amit is now known as Guest654416:25
kgriffsI must have thought the code was already like that; otherwise I wouldn't have written the comment starting on L42416:25
*** Guest6544 has quit IRC16:25
kgriffsalcabrera: anything else I can help with?16:26
alcabreraeom:bastion - hmm... I'll be taking some time in a few hours (~3h) to finalize that patch. Another review on that would be nice. oz_akan_ would love to see that land soon.16:27
alcabreras/nice/awesome16:27
alcabrera:)16:27
oz_akan_alcabrera: +116:27
alcabreraOh yeah, one more thing...16:27
alcabrerakgriffs: keep making the most of the summit! :D16:28
*** amitgandhi has quit IRC16:28
*** amitgandhi has joined #openstack-marconi16:28
kgriffs:)16:28
kgriffsalcabrera: btw, I was trying to come up with a "realistic" example for queue metadata to put on a slide16:29
kgriffsI'm having trouble thinking of a good use of metadata, tbh. :p16:29
kgriffsqueue options, yet, but metadata?16:29
alcabrerakgriffs: I don't think metadata will really stand out until we have...16:29
alcabreratag filtering16:30
kgriffsif you have any brainstorms let me know.16:30
alcabreracontent filtering16:30
kgriffsso maybe you want to filter the queue list by what is in the metadata?16:30
alcabrerayup16:30
alcabrerafor example16:30
alcabrerain a dynamic discovery setting16:30
alcabrerayou could have a set of queues to process jpegs, pngs, gifs16:30
alcabreraand the metadata is used as the queue type16:31
alcabreraand workers would "discover" these queues somehow16:31
alcabrerait's cleaner than encoding the "image type" in the queue name16:31
alcabreraand you could also encode other properties, like - max_image_size, minimum_image_size16:32
alcabreraetc.16:32
* kgriffs is thinking about that16:32
kgriffsif metadata didn't exist, how would this application have to be implemented?16:32
alcabreraencode the information in the queue name somehow16:33
alcabrerajpeg_100_200_1, jpeg_100_200_2, gif_200_400_1, ...16:33
alcabreraor solve the problem outside of the queuing framwork16:34
alcabrera*framework16:34
alcabreraby having a filter worker that maintains a static mapping: "these are gif queues", "these are png queues", "that image is too big for any of the queues"16:34
alcabreraHmm...16:36
alcabreraGiven that we have LIST queues?detailed=True that also yields the metadata, the cost of dynamic discovery in this fashion is similar to the cost of queue name introspection.16:36
alcabreraOnly - there's possibly better separation of concerns.16:37
alcabrera(a name is metadata, after all).16:37
kgriffswhat about this workflow?16:40
kgriffs1. a user uploads a video file16:40
kgriffs2. the web head puts it to swift and then posts a message to a feeder queue16:41
kgriffs3. a pool of routing workers pulls the message off, decides how big the file is, what it's media type is16:42
kgriffsmaybe also checks to see if the customer is paying16:42
kgriffs4. Based on the above, routes to one of X job queues16:42
kgriffsthe router would auto-discover the queues using metadata at boot16:42
kgriffsso the router doesn't have to look that up somewhere16:43
kgriffssomething like that. :p16:43
alcabreraworks for me. :)16:43
alcabreraI feel like the key idea we're arriving at is that metadata simplifies auto-discovery and filtering.16:43
kgriffsok. Let's keep thinking about use cases. I want to make sure metadata is actually useful, and not just there because "everyone else was doing it"16:43
alcabreraannotations, types == metadata16:44
alcabreras/,/==16:44
kgriffsgood thinking16:44
kgriffsthanks!16:44
alcabrerawhile not necessary, it can be put to good use16:44
alcabreranp. :)16:44
alcabrera(much like python3 annotations)16:44
oz_akan_kgriffs: hi16:59
oz_akan_what was the story about "failed to cache shard id" ?17:00
kgriffshi17:00
kgriffshmmm17:00
kgriffsso, there isn't a lot to the story17:00
kgriffsit was working, then suddenly stopped working. Basically, we ask oslo cache to set a value17:01
kgriffsand it returns "False"17:01
kgriffsmeaning, it failed.17:01
kgriffsif you look at the memcached driver17:01
kgriffssorry, I mean backend, for the cache module17:02
kgriffsI think it just calls python-memcached and that library fails silently17:02
kgriffslet me take a look at the code17:02
kgriffswoah, wait a second17:04
kgriffsalcabrera: take a look in common.cache._backends.memcached:5817:05
* alcabrera stops and looks17:05
alcabreradef set(self, key, value, ttl=0):17:06
alcabreraalright, let's see...17:06
kgriffsnow look at the base class17:07
kgriffsthe contract says it should return True or False17:07
kgriffs?!17:07
alcabreraOh, ohhhhhh17:07
alcabreraI see.17:07
alcabreraYikes17:07
kgriffsyeah17:07
alcabreraThere's no 'return'17:08
alcabreraSo it always returns None.17:08
alcabreraAnd...17:08
kgriffsexactly17:08
alcabreraLet's see the implications...17:08
alcabreraIn the case where we expect a True, it'll treat it like a false. :/17:08
kgriffsyep17:08
kgriffsso we always think it failed, when it didn't17:08
kgriffsoz_akan_: ^^^17:09
alcabreralameness17:09
alcabreragood catch, kgriffs!17:09
kgriffsit may have already been fixed upstream17:09
kgriffsnope17:10
kgriffshttps://review.openstack.org/#/c/42878/5/openstack/common/cache/_backends/memcached.py17:10
alcabrera:(17:10
kgriffslet me just add a comment there...17:10
alcabrerasweet17:10
kgriffscan you fix it in our version?17:10
kgriffss/can/will17:10
kgriffs;)17:10
oz_akan_kgriffs: at the moment, can we ignore that error message then/17:11
alcabrerayup, I can patch it locally and see what else it is affecting.17:11
alcabreranp17:11
kgriffskewl17:12
kgriffsthanks!17:12
*** yassine has quit IRC17:13
*** alcabrera is now known as alcabrera|afk17:18
*** amitgandhi has quit IRC17:59
*** amitgandhi has joined #openstack-marconi18:00
*** vkmc has quit IRC18:00
*** amitgandhi has quit IRC18:04
*** amitgandhi has joined #openstack-marconi18:16
*** amitgandhi has quit IRC18:17
*** amitgandhi has joined #openstack-marconi18:17
*** malini is now known as malini_afk18:21
*** cpallares has joined #openstack-marconi18:24
*** gleicon___ has quit IRC18:25
*** Alex_Gaynor has quit IRC18:25
*** Alex_Gaynor has joined #openstack-marconi18:34
kgriffsttfn. It's getting *really* late in HKG18:36
*** kgriffs is now known as kgriffs_afk18:45
*** gleicon___ has joined #openstack-marconi19:01
*** cpallares has quit IRC19:05
*** jamieh has quit IRC19:13
*** amitgandhi has quit IRC19:16
*** amitgandhi has joined #openstack-marconi19:17
*** jamieh has joined #openstack-marconi19:21
*** amitgandhi has quit IRC19:22
*** alcabrera|afk is now known as alcabrera19:27
*** amitgandhi has joined #openstack-marconi19:30
*** vkmc has joined #openstack-marconi19:49
*** vkmc has quit IRC19:49
*** vkmc has joined #openstack-marconi19:49
*** jburkhar1 has joined #openstack-marconi20:00
*** vkmc has quit IRC20:02
*** vkmc has joined #openstack-marconi20:09
*** vkmc has quit IRC20:09
*** vkmc has joined #openstack-marconi20:09
*** jburkhart has quit IRC20:09
*** briancline has quit IRC20:09
*** briancline has joined #openstack-marconi20:09
*** malini_afk is now known as malini20:10
*** cpallares has joined #openstack-marconi20:58
*** tedross has quit IRC22:05
*** alcabrera has quit IRC22:09
*** ekarlso- has quit IRC22:19
*** ekarlso has joined #openstack-marconi22:20
*** tedross has joined #openstack-marconi22:20
*** malini is now known as malini_afk22:36
*** tedross has quit IRC22:46
*** amitgandhi has quit IRC23:24
*** amitgandhi has joined #openstack-marconi23:24
*** oz_akan_ has quit IRC23:25
*** amitgandhi has quit IRC23:29

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