*** echevemaster has joined #openstack-zaqar | 02:02 | |
*** jeffrey4l has joined #openstack-zaqar | 02:06 | |
*** jeffrey4l_ has joined #openstack-zaqar | 02:17 | |
*** jeffrey4l has quit IRC | 02:21 | |
*** jeffrey4l_ is now known as jeffrey4l | 03:11 | |
*** vkmc has quit IRC | 03:34 | |
*** zhiyan has quit IRC | 03:54 | |
*** zhiyan has joined #openstack-zaqar | 03:57 | |
*** echevemaster has quit IRC | 04:05 | |
*** jeffrey4l has quit IRC | 04:22 | |
*** jeffrey4l has joined #openstack-zaqar | 04:40 | |
openstackgerrit | Jeffrey Zhang proposed a change to openstack/zaqar: Capture the stdout and stderr based on environment https://review.openstack.org/124273 | 05:18 |
---|---|---|
*** fifieldt has joined #openstack-zaqar | 05:21 | |
*** jeffrey4l has quit IRC | 05:22 | |
*** jeffrey4l has joined #openstack-zaqar | 05:34 | |
*** AAzza_afk is now known as AAzza | 06:00 | |
*** AAzza is now known as AAzza_afk | 06:03 | |
openstackgerrit | OpenStack Proposal Bot proposed a change to openstack/zaqar: Imported Translations from Transifex https://review.openstack.org/124285 | 06:07 |
*** AAzza_afk is now known as AAzza | 06:18 | |
*** flaper87|afk is now known as flaper87 | 07:06 | |
*** boris-42 has quit IRC | 07:15 | |
*** reed has quit IRC | 07:43 | |
*** tmu has quit IRC | 07:46 | |
*** tmu has joined #openstack-zaqar | 07:46 | |
*** jeffrey4l has quit IRC | 07:59 | |
*** tmu has quit IRC | 08:18 | |
*** tmu has joined #openstack-zaqar | 08:18 | |
*** sphoorti has joined #openstack-zaqar | 08:58 | |
zhiyan | hi folks, seems I found a few defects with my zaqar try, could give me some inputs? | 09:24 |
zhiyan | flaper87: ^^ | 09:24 |
flaper87 | zhiyan: shoot | 09:26 |
flaper87 | what's up? | 09:26 |
zhiyan | flaper87: there are two minor things. | 09:26 |
zhiyan | first is when i run server i got "No handlers could be found for logger "zaqar.common.cli"" | 09:26 |
flaper87 | zhiyan: ah yeah, probably failing to load the conf defaults or something | 09:27 |
zhiyan | then i saw https://bugs.launchpad.net/zaqar/+bug/1201562 , a fixed defect. but i'm interested seems current codebase doesn't include it | 09:27 |
flaper87 | zhiyan: did you run it with zaqar-server -d -v ? | 09:27 |
zhiyan | -v only | 09:27 |
zhiyan | flaper87: so not sure if we miss that fix in current codebase for a reason? | 09:28 |
flaper87 | zhiyan: mmh, it's weird the fix is not in the codebase :/ | 09:28 |
zhiyan | yep | 09:28 |
flaper87 | probably a regression | 09:28 |
zhiyan | then i re-add that print line to _fail(), and it doesn't work too...but with a minor change to print(...), then I got thing to be correct. | 09:29 |
zhiyan | flaper87: i think so frankly. so probably we need to put it back. i can help. | 09:29 |
zhiyan | flaper87: so do a double-check with you first. | 09:30 |
flaper87 | zhiyan: +1 awesome, thanks | 09:30 |
zhiyan | flaper87: nice :) | 09:30 |
zhiyan | flaper87: the second one is about requirement | 09:30 |
zhiyan | i run the server with zaqar-server -v, then failed by pymongo lib requirement...but i can't found it in requirement.txt. so see we miss it? | 09:31 |
zhiyan | s/see/seems | 09:31 |
zhiyan | flaper87: or some reason i missed team dislike put pymongo req in there. | 09:32 |
flaper87 | zhiyan: yeah, it's part of the test-requirements | 09:33 |
flaper87 | we don't want to force anyone to install things they don't need | 09:33 |
flaper87 | for example, if you just want to run zaqar+redis you don't need pymongo | 09:33 |
zhiyan | hum..ok makesense, currently i just used mongodb as storage. | 09:33 |
zhiyan | yep | 09:33 |
zhiyan | sensible | 09:33 |
zhiyan | flaper87: that's all for me, thanks! | 09:33 |
flaper87 | any time | 09:34 |
zhiyan | :) | 09:34 |
openstackgerrit | Zhi Yan Liu proposed a change to openstack/zaqar: Fix regression: No handlers could be found for logger when start https://review.openstack.org/124350 | 09:54 |
flaper87 | zhiyan: btw, all tests are failing because of this: https://review.openstack.org/#/c/123252/ | 09:55 |
flaper87 | once that patch lands, we'll recheck all patches | 09:55 |
zhiyan | flaper87: ok, good to know | 09:56 |
zhiyan | flaper87: seems the change just for 'queue' -> 'messag' ? | 09:57 |
flaper87 | zhiyan: yup | 09:57 |
zhiyan | ah, ok | 09:57 |
zhiyan | fine, more common for the zaqar service. (ok, back to barrier) | 09:59 |
*** malini has joined #openstack-zaqar | 10:33 | |
*** AAzza is now known as AAzza_afk | 10:36 | |
*** sphoorti has quit IRC | 10:43 | |
*** AAzza_afk is now known as AAzza | 10:47 | |
*** AAzza is now known as AAzza_afk | 10:53 | |
*** malini has quit IRC | 11:01 | |
*** malini has joined #openstack-zaqar | 11:01 | |
*** AAzza_afk is now known as AAzza | 11:05 | |
*** AAzza is now known as AAzza_afk | 11:26 | |
*** prashanthr_ has joined #openstack-zaqar | 11:44 | |
*** prashanthr_ has quit IRC | 12:06 | |
*** malini has quit IRC | 12:09 | |
*** AAzza_afk is now known as AAzza | 12:11 | |
*** sgotliv has joined #openstack-zaqar | 12:17 | |
*** AAzza is now known as AAzza_afk | 12:18 | |
*** vkmc has joined #openstack-zaqar | 12:20 | |
*** vkmc has quit IRC | 12:20 | |
*** vkmc has joined #openstack-zaqar | 12:20 | |
vkmc | good morningg | 12:22 |
*** AAzza_afk is now known as AAzza | 12:30 | |
flaper87 | vkmc: goooooooooooooooood morning | 12:34 |
vkmc | flaper87, hiiiiiiii | 12:37 |
*** prashanthr_ has joined #openstack-zaqar | 12:45 | |
vkmc | still waiting for tempest :/ | 12:55 |
*** jeffrey4l has joined #openstack-zaqar | 12:56 | |
flaper87 | :( | 13:00 |
* flaper87 finally got this fucking mongodb sharded environment setup | 13:04 | |
flaper87 | now, to test zaqar | 13:05 |
*** sriram1 has joined #openstack-zaqar | 13:06 | |
vkmc | coool | 13:06 |
*** sriram1 is now known as sriram | 13:06 | |
* flaper87 has no idea what key he should shard on | 13:08 | |
flaper87 | vkmc: want to do something cool? | 13:08 |
flaper87 | vkmc: what are you working on now? (If I may know) | 13:08 |
*** jchai has joined #openstack-zaqar | 13:09 | |
sriram | did you guys have a look at the bash bug? | 13:12 |
flaper87 | sriram: bash bug? | 13:12 |
* flaper87 lost | 13:12 | |
flaper87 | or wrong channel ? | 13:12 |
flaper87 | :D | 13:12 |
sriram | flaper87: heh | 13:12 |
flaper87 | sriram: dude, zaqar is written in python, not bash | 13:12 |
sriram | flaper87: of course :) | 13:13 |
sriram | was interesting and pretty scary actually. | 13:14 |
vkmc | flaper87, more Rally and the func tests | 13:16 |
vkmc | flaper87, what is the cool thing you mentioned? :) | 13:16 |
flaper87 | vkmc: help me figure out a good shard key to use | 13:19 |
flaper87 | :D | 13:19 |
*** sgotliv has quit IRC | 13:20 | |
vkmc | flaper87, hmm let's think | 13:21 |
flaper87 | vkmc: how familiar are you with mongodb shard keys? | 13:21 |
flaper87 | vkmc: http://docs.mongodb.org/manual/core/sharding-introduction/ | 13:22 |
flaper87 | you may want to go through that | 13:22 |
vkmc | flaper87, fairly familiar | 13:22 |
vkmc | cool | 13:22 |
vkmc | and this http://docs.mongodb.org/manual/tutorial/choose-a-shard-key/ | 13:22 |
vkmc | so its advised to use a high cardinality key | 13:25 |
vkmc | with high degree of randomness | 13:25 |
vkmc | what are the options? | 13:26 |
*** mpanetta has joined #openstack-zaqar | 13:27 | |
flaper87 | right but not to random, otherwise we're fucked | 13:27 |
flaper87 | vkmc: https://github.com/openstack/zaqar/blob/master/zaqar/queues/storage/mongodb/messages.py#L66-L104 | 13:27 |
flaper87 | I think the marker index is probably our best choice | 13:28 |
flaper87 | although we don't always have a marker | 13:28 |
vkmc | I just cited this http://docs.mongodb.org/manual/tutorial/choose-a-shard-key/#create-a-shard-key-that-has-high-degree-of-randomness | 13:28 |
flaper87 | LOL | 13:29 |
flaper87 | mmh, actually, if we make the marker index something like: PROJECT_SCOPE -> hashed and marker -> 1 | 13:29 |
flaper87 | I think we can get something good | 13:29 |
flaper87 | mmh wait | 13:29 |
*** malini has joined #openstack-zaqar | 13:30 | |
vkmc | wouldn't it make sense to use the queue is as the key? | 13:32 |
flaper87 | mmhh, that woul keep all messages for 1 queue in a single shard | 13:33 |
vkmc | so.. by using the marker you would allow a queue to be distributed in one or several shards | 13:34 |
flaper87 | if we use p_q+marker it would start from shardX (balancing on queue) and then it'll add messages sequentialy | 13:35 |
flaper87 | right, the problem with the marker, though, is that it'd end up writing *always* on the last shard | 13:35 |
flaper87 | since it's progressive | 13:35 |
vkmc | yea | 13:35 |
flaper87 | which will make writes painful | 13:35 |
vkmc | hmm | 13:36 |
flaper87 | these are the fields we have: | 13:39 |
flaper87 | https://github.com/openstack/zaqar/blob/master/zaqar/queues/storage/mongodb/messages.py#L118-L128 | 13:39 |
vkmc | yes, I'm checking those | 13:39 |
vkmc | what if.. | 13:42 |
flaper87 | vkmc: .. are not good for indexes | 13:42 |
flaper87 | :P | 13:42 |
vkmc | I'm measuring the level of stupidity of my idea before saying it :D | 13:43 |
flaper87 | hahah | 13:43 |
vkmc | I was thinking on using ttl, and then taking advantage of that to make some kind of priority selection | 13:44 |
vkmc | but sharding is time/resources consuming and that won't be useful | 13:45 |
flaper87 | the thing about ttl is that I don't think it'll be changed much | 13:45 |
flaper87 | as in, most use-cases will stick to the default ttl | 13:45 |
vkmc | -1 randomness | 13:45 |
vkmc | ok | 13:45 |
vkmc | also, in the ttl idea, starving may ocurr and that won't be a good feature haha | 13:46 |
vkmc | feature as in bug | 13:46 |
flaper87 | hahaha | 13:46 |
flaper87 | I'm afraid we won't be able to optimize for both cases | 13:47 |
flaper87 | read-heavy and write-heavy | 13:47 |
flaper87 | and I'm leaning towards optimizing for writes | 13:47 |
vkmc | can we apply some operations before doing the sharding? | 13:47 |
flaper87 | vkmc: like what? | 13:48 |
vkmc | I don't think it's possible but maybe | 13:48 |
vkmc | you said that the problem with p_q+marker is that it would end up writting always on the last shard | 13:48 |
flaper87 | right, that's my assumption | 13:49 |
vkmc | if you could randomize it a little | 13:49 |
flaper87 | I'm going to test that | 13:49 |
vkmc | you may mitigate that issue | 13:49 |
vkmc | ok, let me know how that works | 13:50 |
vkmc | now I'm curious | 13:50 |
flaper87 | vkmc: I should've installed this sharded environment somewhere public | 13:51 |
flaper87 | :/ | 13:51 |
flaper87 | so, that idea may work | 13:51 |
flaper87 | not sure, lets see | 13:51 |
vkmc | flaper87, no problem | 13:51 |
flaper87 | vkmc: another idea would be to swap marker and p_q | 13:53 |
flaper87 | I really have no idea how compound shard keys are used | 13:53 |
flaper87 | :P | 13:53 |
* flaper87 goes and reads the fucking manual | 13:53 | |
vkmc | haha let's figure it out | 13:53 |
*** sgotliv has joined #openstack-zaqar | 13:53 | |
*** AAzza has quit IRC | 14:20 | |
*** AAzza_afk has joined #openstack-zaqar | 14:21 | |
*** AAzza_afk is now known as AAzza | 14:21 | |
*** AAzza_afk has joined #openstack-zaqar | 14:22 | |
*** AAzza has quit IRC | 14:25 | |
*** AAzza_afk is now known as AAzza | 14:25 | |
*** sgotliv has quit IRC | 14:45 | |
*** sriram has quit IRC | 14:48 | |
*** sriram has joined #openstack-zaqar | 14:48 | |
flaper87 | unproductive friday | 14:50 |
flaper87 | vkmc: news on tempest? | 14:50 |
vkmc | flaper87, still in the queue | 14:50 |
flaper87 | damnit | 14:51 |
vkmc | flaper87, how are the shard keys treating you? | 14:51 |
flaper87 | I just set up MMS | 14:51 |
flaper87 | to make monitoring easier | 14:51 |
flaper87 | but, using p_q+k sends all writes to a single shard | 14:51 |
flaper87 | as expected | 14:51 |
vkmc | hmm | 14:52 |
vkmc | >.> c'mon tempest | 15:07 |
*** prashanthr_ has quit IRC | 15:08 | |
flaper87 | vkmc: https://www.dropbox.com/s/w2ufh784co1m5pf/insert.jpg?dl=0 | 15:14 |
vkmc | flaper87, what is representing the y axis? | 15:16 |
flaper87 | sorry got distracted | 15:16 |
flaper87 | all graphs sow the ops in each shard | 15:17 |
flaper87 | there are 4 shards | 15:17 |
vkmc | it's ok, I live distracted | 15:17 |
vkmc | cool | 15:17 |
flaper87 | the graph at the left-top corner | 15:17 |
flaper87 | is the last shard | 15:17 |
flaper87 | shard number 4 | 15:17 |
flaper87 | and you can see that all writes are going there | 15:17 |
flaper87 | (the kinda yellow line) | 15:18 |
vkmc | ffh as expected | 15:18 |
*** kgriffs|afk is now known as kgriffs | 15:18 | |
flaper87 | vkmc: now I'll try swaping the keys | 15:20 |
vkmc | flaper87, what are the other operations? reads and? | 15:21 |
vkmc | lines blue, white, green | 15:21 |
vkmc | tum tum tum | 15:23 |
*** sgotliv has joined #openstack-zaqar | 15:25 | |
*** jeffrey4l has quit IRC | 15:27 | |
* flaper87 back | 15:30 | |
flaper87 | the other operations are queries, updates | 15:30 |
flaper87 | basically the balancer moving chunks | 15:31 |
vkmc | +1 | 15:35 |
flaper87 | sooooooooooooooooooooooooooooooo | 15:41 |
flaper87 | it looks like I was right | 15:41 |
vkmc | swaping the keys.. same happens? | 15:42 |
flaper87 | not the same, writes are distributed | 15:42 |
flaper87 | it writes a bunch on the first shard, then the second, then the third, then the fourth | 15:43 |
flaper87 | writes are not random but it, at least, does not hit just 1 shard | 15:43 |
flaper87 | vkmc: refresh | 15:43 |
flaper87 | vkmc: the link I sent before | 15:43 |
flaper87 | and it completed the task way faster than before | 15:46 |
vkmc | flaper87, wow that yellow line | 15:46 |
vkmc | thats great | 15:46 |
flaper87 | I'll test it with 2 producers | 15:47 |
vkmc | ok :) | 15:47 |
flaper87 | no idea why I'm not using zaqar-bench | 15:47 |
flaper87 | probably because I've no idea how to use it | 15:47 |
flaper87 | :P | 15:47 |
vkmc | haha | 15:47 |
flaper87 | but I think it's still not good | 15:48 |
flaper87 | I mean, we are not writing to the same shard which is good for different queues | 15:48 |
flaper87 | but for this same queue we would be writing to the same shard | 15:48 |
flaper87 | As in, we will switch shards sequentially | 15:49 |
vkmc | then... reads will be harder | 15:49 |
flaper87 | well, writes will be harder for queue A | 15:49 |
flaper87 | since all producers would be writing to the same shard | 15:49 |
* flaper87 is not happy | 15:52 | |
flaper87 | :( | 15:52 |
vkmc | no :( | 15:53 |
vkmc | something to make you happy | 15:54 |
vkmc | tempest patch already passed the gates, 15 min left to get merged | 15:55 |
* vkmc doesn't lie when she say she stares at zuul sometimes | 15:55 | |
flaper87 | LOOOL | 15:56 |
flaper87 | that's great news | 15:56 |
flaper87 | merged | 15:59 |
flaper87 | finally | 15:59 |
flaper87 | lets recheck all the things | 15:59 |
vkmc | :') | 15:59 |
vkmc | that's the best moment of my week | 16:00 |
vkmc | s/that/this | 16:00 |
vkmc | lol | 16:00 |
flaper87 | LOL | 16:01 |
flaper87 | ok, I helpped you with some | 16:01 |
vkmc | flaper87, thx | 16:02 |
vkmc | floooood | 16:03 |
*** jchai is now known as jchai_afk | 16:03 | |
*** reed has joined #openstack-zaqar | 16:04 | |
vkmc | I'll keep track of them | 16:08 |
flaper87 | while this new shard key seems to work better, I don't think it's optimal | 16:09 |
flaper87 | :( | 16:09 |
vkmc | what is your expectation? | 16:10 |
flaper87 | if only I knew that | 16:11 |
flaper87 | jokes apart | 16:11 |
vkmc | :) | 16:11 |
vkmc | I wanna help | 16:11 |
flaper87 | I really think we won't be able to optimize for both casses | 16:11 |
flaper87 | cases | 16:11 |
flaper87 | whatever | 16:11 |
flaper87 | so, this kind of writes, will hurt heavy-write queues but benefit reads | 16:12 |
*** sgotliv has quit IRC | 16:12 | |
vkmc | can we have a different key depending on the use case? | 16:12 |
flaper87 | nope | 16:12 |
flaper87 | :/ | 16:12 |
vkmc | like ... a configuration value in zaqar.conf | 16:13 |
vkmc | dang | 16:13 |
*** jchai_afk is now known as jchai | 16:21 | |
flaper87 | mmh, actually, it may be a good shard key after all | 16:23 |
flaper87 | I was testing it with 1 queue | 16:23 |
flaper87 | which made the marker sequence standard | 16:23 |
flaper87 | if we test it with more queues, the range keeps chaning and it adds some randomness | 16:23 |
flaper87 | I wouldn't call it randomness but my brain is tired and I dunno how to call it | 16:24 |
*** alcabrera|afk is now known as alcabrera | 16:25 | |
vkmc | :) | 16:36 |
vkmc | non determinism | 16:40 |
flaper87 | are you describing my brain? | 16:41 |
vkmc | I couldn't possible ever do that with finite time and space flaper87 | 16:41 |
flaper87 | it actually sounded pretty accurate... :P | 16:42 |
flaper87 | moaaaaaaaaaaaaaar tests, moaaaaaaaaaaaaaaaaar | 16:42 |
vkmc | hahaha | 16:42 |
vkmc | my brain is tired today too | 16:44 |
vkmc | I woke up with a headache and have been trying to ignore it since then | 16:45 |
vkmc | its winning >.> | 16:45 |
flaper87 | oh mmh, then I'll give you a brain teaser, I'm pretty sure that will help | 16:51 |
flaper87 | huhauhauhauahuahu | 16:51 |
vkmc | lol | 16:56 |
flaper87 | vkmc: refresh :) | 16:58 |
flaper87 | it's not perfect but it could be better | 16:58 |
vkmc | flaper87, looks better | 17:02 |
vkmc | its marker and p_q? | 17:02 |
vkmc | with more producers? | 17:02 |
flaper87 | yup | 17:02 |
vkmc | +1 | 17:02 |
flaper87 | on different queues | 17:02 |
vkmc | sounds a more realistic scenario | 17:03 |
vkmc | brb | 17:03 |
*** kgriffs is now known as kgriffs|afk | 17:08 | |
*** alcabrera is now known as alcabrera|afk | 17:19 | |
*** kgriffs|afk is now known as kgriffs | 17:32 | |
*** kgriffs is now known as kgriffs|afk | 17:35 | |
*** kgriffs|afk is now known as kgriffs | 17:40 | |
*** kgriffs is now known as kgriffs|afk | 18:03 | |
*** kgriffs|afk is now known as kgriffs | 18:15 | |
*** kgriffs is now known as kgriffs|afk | 18:17 | |
*** malini has quit IRC | 18:57 | |
*** malini has joined #openstack-zaqar | 18:59 | |
*** sriram2 has joined #openstack-zaqar | 19:00 | |
*** sriram has quit IRC | 19:01 | |
*** sriram2 is now known as sriram | 19:02 | |
*** jchai is now known as jchai_afk | 19:10 | |
*** sgotliv has joined #openstack-zaqar | 19:20 | |
*** sgotliv has quit IRC | 19:23 | |
*** sgotliv has joined #openstack-zaqar | 19:24 | |
*** boris-42 has joined #openstack-zaqar | 19:27 | |
*** alcabrera|afk is now known as alcabrera | 19:36 | |
*** malini has quit IRC | 20:00 | |
*** jchai_afk is now known as jchai | 20:03 | |
*** alcabrera is now known as alcabrera|afk | 20:33 | |
vkmc | flaper87, still around? | 20:40 |
*** sriram has quit IRC | 20:51 | |
openstackgerrit | A change was merged to openstack/zaqar: Replace misleading max_message_size option name https://review.openstack.org/123223 | 21:10 |
*** jchai has quit IRC | 21:10 | |
*** sgotliv has quit IRC | 21:39 | |
*** alcabrera|afk is now known as alcabrera | 21:44 | |
*** AAzza is now known as AAzza_afk | 21:59 | |
*** ametts has quit IRC | 22:08 | |
*** mpanetta has quit IRC | 22:33 | |
boris-42 | vkmc zoo could you make some benchmark for zaqar? | 22:52 |
boris-42 | vkmc on top of cleanup | 22:52 |
boris-42 | vkmc at least something, just to setup gates=) | 22:52 |
boris-42 | vkmc if you have some questions just ping me | 22:52 |
vkmc | boris-42, sure thing | 22:53 |
boris-42 | vkmc thanks | 22:53 |
vkmc | boris-42, sorry I didn't upload it sooner, I had some other stuff in my plate | 22:53 |
boris-42 | vkmc no worries | 22:54 |
*** AAzzal has joined #openstack-zaqar | 22:58 | |
*** AAzzal is now known as AAzza | 22:59 | |
*** AAzza_afk has quit IRC | 22:59 | |
*** echevemaster has joined #openstack-zaqar | 23:53 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!