Friday, 2019-01-04

*** bobh_ has joined #openstack-mistral01:05
*** bobh has quit IRC01:08
*** bobh has joined #openstack-mistral01:15
*** bobh_ has quit IRC01:16
*** bobh has quit IRC01:20
*** bobh has joined #openstack-mistral01:41
*** bobh_ has joined #openstack-mistral02:32
*** bobh has quit IRC02:34
*** bobh has joined #openstack-mistral03:05
*** bobh_ has quit IRC03:08
*** apetrich has quit IRC03:15
*** bobh_ has joined #openstack-mistral03:26
*** bobh has quit IRC03:29
*** bobh_ has quit IRC03:50
*** shardy has quit IRC04:33
*** shardy has joined #openstack-mistral04:34
*** bobh has joined #openstack-mistral04:55
*** bobh has quit IRC05:22
*** pgaxatte has joined #openstack-mistral07:30
*** apetrich has joined #openstack-mistral07:32
*** shardy has quit IRC08:05
*** shardy has joined #openstack-mistral08:05
*** jaosorior has joined #openstack-mistral08:39
*** shardy has quit IRC09:27
*** shardy has joined #openstack-mistral09:27
d0ugalpgaxatte: because when you delete the root execution the child executions are deleted automatically10:16
pgaxattehi d0ugal :)10:17
d0ugalpgaxatte: so only the completed root executions need to be explicitly deleted10:17
d0ugalHi10:17
pgaxattethanks for the answer I was feeling rather lonely here!10:17
d0ugalhaha, sorry for the delay!10:17
d0ugalI believe rakhmerov is back next week.10:18
pgaxatteI understand the tasks and action executions are deleted via cascade delete on the db10:18
d0ugaloh okay :)10:18
pgaxatte(let me read the code again to check what suprised me :D)10:19
pgaxatteok reading this: https://github.com/openstack/mistral/blob/master/mistral/db/v2/sqlalchemy/api.py#L132010:21
pgaxattetask_execution_id is not root_exec10:21
d0ugalwell, it kind of is :)10:21
pgaxatteit's set to null when the workflow has run everything, right?10:21
d0ugaltask_execution_id refers to the task in the parent execution that started the workflow10:22
pgaxattei understand it like a pointer to the current task running10:22
d0ugalso if it is null, then it is a root execution10:22
pgaxatteohhhh10:22
pgaxatteok10:22
pgaxatteok so we start the expiration from the root of the exec10:23
d0ugalThis code could be updated to use the new root_execution_id field, then it might be easier to read10:23
pgaxattebut in my opinion it does not clean the subworkflows10:23
d0ugalIt does for me :-D10:23
pgaxattewe had to turn it off on our side10:23
pgaxatteit caused a lot of deadlocks10:23
d0ugalIf it didn't - databases would be very full and we would get many complaints10:24
d0ugalso I wonder why your setup is different10:24
pgaxattei'm not sure either10:24
pgaxattewe have a lot of executions10:24
pgaxattewe can run like 100 thousands actions per day10:24
pgaxatteso action_executions is growing fast10:25
pgaxatteand we did not activate expiration from the start10:25
d0ugalI believe rakhmerov is working at a similar scale, so it would be worth checking with him10:25
pgaxatteand the expiration on large set is creating deadlocks10:25
pgaxattebecause the db is a bit sluggish too but i think the expiration itself is not optimizes10:26
pgaxatteoptimized10:26
pgaxatte(if i may)10:26
pgaxattefrom what i understand of it10:27
pgaxatteit seems to delete line by line10:27
pgaxatteeach workflow exec10:27
d0ugalYup, I think so10:28
pgaxattebecause we check the auth context and use _secure_query10:28
pgaxattehttps://github.com/openstack/mistral/blob/master/mistral/services/expiration_policy.py#L9010:28
pgaxatteBUT i don't see why we need to10:28
d0ugalIt was changed to delete like that because of timeouts deleting many executions in one query iirc10:28
pgaxattehmmmm do you use postgres or mysql?10:29
d0ugalmysql, unfortunately :-D10:29
pgaxattebecause i could see the reason why with different locking schemes10:29
pgaxatteyeah so table locks everywhere :D10:29
d0ugalBut we have many small Mistral deploys, not one big one10:29
d0ugalSo we don't usually hit this problem10:30
pgaxatteand because of the cascade it locks like 3 or 4 tables10:30
pgaxatteeven if we did not remove all the lines at once but in batches it would be beneficial10:31
pgaxatteand i don't see why we need _secure_query10:31
d0ugalNo, I don't understand that part tbh10:31
d0ugalbbiab, coffee and snack required :)10:31
pgaxatteit seems useful for deleting resources that could be shared between projects10:31
pgaxatted0ugal: no problem :D10:31
openstackgerritDougal Matthews proposed openstack/mistral master: fix typo mistakes  https://review.openstack.org/62541811:42
openstackgerritDougal Matthews proposed openstack/mistral master: Replace tripleo-scenario003-multinode with scenario003-standalone  https://review.openstack.org/62827411:42
openstackgerritDougal Matthews proposed openstack/mistral master: Update mailinglist from dev to discuss  https://review.openstack.org/62577511:47
openstackgerritDougal Matthews proposed openstack/mistral master: Amend the spelling error of a word  https://review.openstack.org/57271411:48
openstackgerritDougal Matthews proposed openstack/mistral master: Remove those copy words occured twice times in wf_lang_v2.rst  https://review.openstack.org/61754011:50
openstackgerritDougal Matthews proposed openstack/mistral master: Remove the deprecated json_pp YAQL/Jinja2 function  https://review.openstack.org/62237911:51
openstackgerritDougal Matthews proposed openstack/mistral master: Fix input, params, output, published filters  https://review.openstack.org/50520611:51
openstackgerritMerged openstack/mistral master: Gate fix for failing at openstack-tox-docs  https://review.openstack.org/62743912:32
openstackgerritMerged openstack/mistral master: Remove those copy words occured twice times in wf_lang_v2.rst  https://review.openstack.org/61754012:57
*** mmethot has joined #openstack-mistral14:00
*** shardy has quit IRC14:23
openstackgerritDougal Matthews proposed openstack/mistral master: Amend the spelling error of a word  https://review.openstack.org/57271414:59
openstackgerritDougal Matthews proposed openstack/mistral master: Update mailinglist from dev to discuss  https://review.openstack.org/62577514:59
openstackgerritzhulingjie proposed openstack/mistral master: Update hacking version to latest  https://review.openstack.org/62850815:59
*** apetrich has quit IRC16:07
*** jrist has joined #openstack-mistral16:08
*** apetrich has joined #openstack-mistral16:28
*** apetrich has quit IRC16:35
openstackgerritzhulingjie proposed openstack/mistral-specs master: Update hacking version to latest  https://review.openstack.org/62862117:02
openstackgerritzhulingjie proposed openstack/mistral-extra master: Update hacking version to latest  https://review.openstack.org/62862217:02
openstackgerritzhulingjie proposed openstack/mistral-tempest-plugin master: Update hacking version to latest  https://review.openstack.org/62862317:02
openstackgerritzhulingjie proposed openstack/mistral-lib master: Update hacking version to latest  https://review.openstack.org/62862417:02
*** pgaxatte has quit IRC17:04
openstackgerritMerged openstack/mistral master: Update mailinglist from dev to discuss  https://review.openstack.org/62577517:08
*** bobh has joined #openstack-mistral19:01
*** bobh_ has joined #openstack-mistral19:17
*** bobh has quit IRC19:19
*** jtomasek has quit IRC20:51
*** bobh_ has quit IRC21:47
*** bobh has joined #openstack-mistral21:49
*** bobh has quit IRC21:54
*** jaosorior has quit IRC22:42
*** bobh has joined #openstack-mistral22:52
*** bobh has quit IRC23:21
*** bobh has joined #openstack-mistral23:36
*** openstack has joined #openstack-mistral23:45
*** ChanServ sets mode: +o openstack23:45
*** bobh has quit IRC23:58

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