Tuesday, 2020-02-11

*** witek has joined #openstack-monasca07:56
*** elod has quit IRC09:03
*** elod has joined #openstack-monasca09:12
*** dougsz has joined #openstack-monasca09:14
*** ivve has joined #openstack-monasca09:53
*** fungi has quit IRC11:24
*** fungi has joined #openstack-monasca11:27
*** Wasaac has quit IRC12:00
*** Wasaac has joined #openstack-monasca12:00
*** Wasaac has quit IRC12:11
*** Wasaac has joined #openstack-monasca12:12
*** chaconpiza has joined #openstack-monasca12:39
*** Dobroslaw has joined #openstack-monasca12:59
witek#startmeeting monasca13:00
openstackMeeting started Tue Feb 11 13:00:46 2020 UTC and is due to finish in 60 minutes.  The chair is witek. Information about MeetBot at http://wiki.debian.org/MeetBot.13:00
openstackUseful Commands: #action #agreed #help #info #idea #link #topic #startvote.13:00
*** openstack changes topic to " (Meeting topic: monasca)"13:00
*** adriancz has joined #openstack-monasca13:00
openstackThe meeting name has been set to 'monasca'13:00
witekhello everyone13:00
adrianczHi13:01
chaconpizaHello13:01
Dobroslawhi13:01
witekthe agenda seems to be light13:01
witekhttps://etherpad.openstack.org/p/monasca-team-meeting-agenda13:01
witeklet's start13:01
witek#topic ujson replacement13:02
*** openstack changes topic to "ujson replacement (Meeting topic: monasca)"13:02
witekI've sent a question to requirements team at openstack-discuss13:02
*** bandorf has joined #openstack-monasca13:02
witekhttp://lists.openstack.org/pipermail/openstack-discuss/2020-February/012376.html13:02
witekorjson seems not to be the good option for including into global requirements13:03
witekbecause of complicated build process13:04
witekdo we have any performance evaluation results already?13:04
chaconpizaI compared ujson, json and simplejson in devstack13:05
chaconpizaall these are available in devstack already13:05
chaconpizaThis is the way I did the checks:13:06
chaconpiza1. After stacking devstack, I stopped the log-agent, metric-agent and the persister.13:06
chaconpiza2. I modified the scale_perf/agent_simulator.py from Monasca-perf in order to work with devstack.13:06
chaconpiza3. I sent 690 calls with 1000 points each one using 4 Python Processes. Every point had this form:13:07
chaconpiza{'dimensions': {'cloud_name': 'monasca',13:07
chaconpiza                'cluster': 'compute',13:07
chaconpiza                'component': 'vm',13:07
chaconpiza                'container': 'container_0',13:07
chaconpiza                'control_plane': 'ccp',13:07
chaconpiza                'hostname': 'agent_0',13:07
chaconpiza                'resource_id': '34c0ce14-9ce4-4d3d-84a4-172e1ddb26c4',13:07
chaconpiza                'service': 'service_0',13:07
chaconpiza                'tenant_id': '71fea2331bae4d98bb08df071169806d',13:07
chaconpiza                'zone': 'nova'},13:07
chaconpiza 'name': 'aaa.perf_428',13:07
chaconpiza 'timestamp': 1581424933000,13:07
chaconpiza 'value': 781}13:07
chaconpizawhere: 'name' can be [aaa.perf_000 to aaa.perf_999]13:07
chaconpiza'value' a randon [000 to 999]13:07
chaconpizaand 'hostname': ['agent_0' to 'agent_3']13:08
chaconpizaThis point is quite similar to those we have in production.13:08
chaconpizaCardinality: 1000 metrics X 4 agents X 1 containers X 1 services = 400013:08
chaconpiza4. Changed from 30 to 1000 the batch_size of the metrics in the persister13:08
chaconpiza5. Set a log.warn in the json.loads https://github.com/openstack/monasca-persister/blob/master/monasca_persister/repositories/utils.py#L2113:09
chaconpiza6. Started the persister manually redirecting the output to a file waiting to consume all the 690000 points waiting in kafka.13:09
chaconpiza7. Checked the time difference in the log from the first deserialization (log.warn) to the last.13:10
chaconpizaI repeated the process for simplejson and json, by changing the import at13:11
chaconpizahttps://github.com/openstack/monasca-persister/blob/master/monasca_persister/repositories/utils.py#L1613:11
chaconpizaThe results: json took 2 min 20 sec in the first test and 2 min 22 sec in the second test.13:12
chaconpizaujson took 1 min 53 sec in the first test and 1 min 51 in the second13:13
chaconpizasimplejson took 1 min 59 in both tries.13:13
witekfrom this test simplejson seems to be a good compromise13:14
chaconpizaand at least in devstack is already available without any change13:15
witekwe could test rapidjson as well, but I don't expect it to be much faster the ujson13:16
chaconpizaYes, I have all the mini-infrastructure to test it13:16
chaconpiza*Note that I only tested the deserialization (json.loads), I left the serialization (json.dumps) using ujson.13:17
chaconpizahttps://github.com/openstack/monasca-persister/blob/a4addd0f5e8c60f631a77fd280f2810b8f222203/monasca_persister/repositories/influxdb/metrics_repository.py#L4813:17
*** adriancz has quit IRC13:17
*** adriancz has joined #openstack-monasca13:18
*** adriancz has joined #openstack-monasca13:18
witekthat's fine, we were interested in deserialization because of persister beeing the bottleneck13:18
chaconpizacool13:18
witekany other comments on that?13:20
Dobroslawwell, it's good if there is no need to add it to global requirements and is fast enough13:21
witekagree13:21
chaconpizaProbably the profiling test in the internet show differences because of the size of the string to be deserializated.13:22
chaconpiza*tests13:22
witeksure, it depends strongly on the structure of the object13:22
chaconpizayes like the nesting level of the object13:23
chaconpizaBesides of the dimensions: we use a 'flat' object13:24
witekso do we agree on using simplejson, or do you still want to test rapidjson as well?13:25
chaconpizacan rapidjson be installed easy-way with pip?13:26
adrianczI think simplejson should be good enough13:26
chaconpizaI can do the check just after the meeting13:26
witekI'm fine with simplejson as well, we can still change it in future if proves to cause any problems13:29
witek#topic aob13:29
*** openstack changes topic to "aob (Meeting topic: monasca)"13:29
witekdo we have any other topics for today?13:29
chaconpizano from my part13:30
witekOK, let's wrap it up then13:31
witekthanks for joining13:31
witekand for the tests13:31
chaconpizathanks13:32
witeksee you next time13:32
Dobroslawthank you13:32
bandorfThanks, bye everybody13:32
witek#endmeeting13:32
*** openstack changes topic to "OpenStack Monitoring as a Service | https://wiki.openstack.org/wiki/Monasca"13:32
openstackMeeting ended Tue Feb 11 13:32:19 2020 UTC.  Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)13:32
openstackMinutes:        http://eavesdrop.openstack.org/meetings/monasca/2020/monasca.2020-02-11-13.00.html13:32
openstackMinutes (text): http://eavesdrop.openstack.org/meetings/monasca/2020/monasca.2020-02-11-13.00.txt13:32
openstackLog:            http://eavesdrop.openstack.org/meetings/monasca/2020/monasca.2020-02-11-13.00.log.html13:32
*** bandorf has quit IRC13:32
dougszSorry I missed the meeting, chaconpiza, thanks for doing the benchmarking. +1 for simplejson.13:42
*** witek has quit IRC14:41
*** vishalmanchanda has joined #openstack-monasca14:51
*** elod has quit IRC14:57
*** elod has joined #openstack-monasca14:58
*** openstackgerrit has joined #openstack-monasca15:14
openstackgerritMerged openstack/monasca-api master: Set DEBUG log level for Elastisearch  https://review.opendev.org/69688915:14
*** witek has joined #openstack-monasca15:35
*** ivve has quit IRC16:13
*** Wasaac has quit IRC16:48
*** Wasaac has joined #openstack-monasca16:49
*** ivve has joined #openstack-monasca17:16
*** gmann is now known as gmann_afk17:20
*** dougsz has quit IRC17:56
*** arseni-lipinski has quit IRC18:08
*** gmann_afk is now known as gmann18:49
*** vishalmanchanda has quit IRC19:43
*** Wasaac has quit IRC20:15
*** Wasaac_ has joined #openstack-monasca20:15
*** Wasaac_ is now known as Wasaac20:16
*** Wasaac has quit IRC21:11
*** Wasaac has joined #openstack-monasca21:12
*** jonmills_nasa has joined #openstack-monasca22:41
jonmills_nasaI think I'm struggling to understand something about setting up monasca.  I have a working monasca-api, a working monasca-persister, and monasca-agents.  I have a working kafka and zookeeper and influxdb.  I can log into influxdb and see all the metrics that have been gathered there.  but I see nothing when I try to query this from monasca's22:45
jonmills_nasapythonclient22:46
jonmills_nasait's almost like monasca is gathering metrics which at the same time, it knows nothing about.  i guess they aren't defined anywhere?  but there's almost nothing in the docs to explain this22:46
*** witek has quit IRC22:47
*** jonmills_nasa has left #openstack-monasca23:05
*** jonmills_nasa has joined #openstack-monasca23:06
jonmills_nasahello?23:10
*** jonmills_nasa has quit IRC23:21

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