Wednesday, 2018-04-11

*** harlowja has quit IRC01:14
*** bcoca has quit IRC03:01
*** harlowja has joined #ara04:23
*** harlowja has quit IRC05:35
*** gvincent has joined #ara05:49
*** gvincent has quit IRC05:49
*** gvincent has joined #ara05:49
dmsimardgvincent: so there's two major problems with the current stable release (even with some patches to reduce the pain)13:04
dmsimard*Larger* scale playbooks, i.e, https://i.imgur.com/1TKZE0a.png can either 1) Eat all your RAM 2) Be slow13:06
dmsimardRight now the pagination for the results is done client side (with javascript datatables) and what's eating the memory is the sqlalchemy looping over all the results, i.e paste.openstack.org/show/718864/13:07
dmsimardhttp://paste.openstack.org/show/718864/ <-- for some reason that had no http13:07
gvincentwith DRF the pagination will fix the ui issue13:08
gvincentyou will just return the 1000 max elements and paginate trought the ui if you want to see more13:08
dmsimardright13:08
gvincentthe performance issue is only on the ui ?13:08
dmsimardyeah, callback is fine13:09
dmsimardso the thing with the datatables13:09
dmsimardis that since it has all the data, the search box allows you to easily search with regexes etc client side13:09
dmsimardI suppose if we do server-side pagination and we want to keep searching, we'll have to work something out13:09
gvincentsee https://github.com/lesspass/backend/blob/master/lesspass/settings.py#L132-L13313:09
dmsimardnice.. pagination is another thing that was kind of awkward in flask-restful13:10
*** bcoca has joined #ara13:10
*** bcoca has joined #ara13:10
gvincentand for the search13:10
gvincenthttps://github.com/lesspass/backend/blob/master/lesspass/settings.py#L134-L13713:10
gvincenteverything is already there13:10
dmsimard<313:10
gvincent:)13:11
gvincenthttps://github.com/lesspass/backend/blob/master/api/views.py#L10-L1113:11
dmsimardgvincent: so the current plan is to land a few patches in the master branch and then cut a 0.15 -- to limit the memory usage and improve performance a bit.13:11
gvincentyes13:12
dmsimardI've been experimenting on the integration jobs starting with the role https://review.openstack.org/#/c/557933/13:12
dmsimardThe general idea would be to really have first party support for the role by using it to deploy ARA in integration test jobs we can always make sure that it works13:12
dmsimardPeople tend to get confused with WSGI installation and other things despite the docs -- and I suppose we need some way of "packaging" the NPM bits13:13
gvincentmy need right now is a small db with fake (but real) data13:14
dmsimardgvincent: from stable release ? or from 1.013:14
gvincent1.013:14
dmsimardI can probably easily adapt the callback to use the django standalone client for the time being and then see if that works -- we're going to have to do it anywya13:15
gvincentI see 2 solutions: We work to adapt the actual callback making api request13:15
dmsimardAPI was already implemented in https://github.com/openstack/ara/blob/feature/1.0/ara/plugins/callbacks/log_ara.py13:16
dmsimardProbably need to adjust some bits but the bulk of the work is done I suppose13:16
gvincentyeah sorry, we should adpat the actual callback to use django standalone13:16
dmsimardi.e, https://github.com/openstack/ara/blob/feature/1.0/ara/plugins/callbacks/log_ara.py#L12313:16
dmsimardAll the API calls the callback needs to do are obvious so I can take those and adapt to django client13:17
dmsimardWe can think about optimizing the code later13:17
gvincent<313:18
gvincent:D13:18
ara-slack<dmsimard> @harlowja I'd appreciate if you could test https://review.openstack.org/#/c/559840/ -- the parent patch is a rebase of the sqlalchemy pool addition https://review.openstack.org/#/c/524427/13:20
ara-slack<dmsimard> It doesn't address the memory usage but it prevents it from growing infinitely13:21
ara-slack<dmsimard> If it works for you, please +1 the patches :)13:22
*** tbielawa has joined #ara13:34
*** gnupyx has joined #ara14:30
*** rvgate has joined #ara15:11
*** gnupyx has quit IRC15:58
*** harlowja has joined #ara16:05
ara-slack<harlowja> kk16:11
*** tbielawa is now known as tbielawa|lunch16:26
*** harlowja has quit IRC17:07
*** gvincent has quit IRC17:33
*** tbielawa|lunch is now known as tbielawa17:46
*** harlowja has joined #ara17:52
*** tbielawa is now known as tbielawa|brb18:25
*** tbielawa|brb has quit IRC18:29
*** tbielawa has joined #ara18:49
*** BlessJah has quit IRC19:32
*** BlessJah has joined #ara19:33
*** berendt_ has joined #ara20:21
*** berendt has quit IRC20:28
*** berendt_ is now known as berendt20:28
*** tbielawa has quit IRC20:29
openstackgerritMerged openstack/ara master: Add support for configuring sqlalchemy pool size, timeout and recycle  https://review.openstack.org/52442722:13
openstackgerritMerged openstack/ara master: Improve memory usage when dealing with large amount of data  https://review.openstack.org/55984022:19
-openstackstatus- NOTICE: zuul was restarted to updated to the latest code; you may need to recheck changes uploaded or approvals added between 21:30 and 21:4522:28

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