-
Notifications
You must be signed in to change notification settings - Fork 7
Analytics Tasks #424
Comments
valya: We need to schedule full working version of analytics (robots) for upcoming DAS release. |
gfball: Tested queryspammer to submit to a DAS web server, so that a weighted producer can be used to test analytics. ./das_queryspammer -w 4 -c 100 -p WeightedDatasetProducer -s DASWebSubmitter (creates 4 threads, each making 100 dataset queries using a weighted distribution to http://localhost:8212/das/jsonview?input=... (HTTPSubmitter can be used to customise the URL) |
valya: Gordon, I successfully applied your patch and it is merged into main tree. What else left for this ticket? |
gfball: More for this patch definitely, the one so far doesn't really match the description anyway, just didn't have a more appropriate ticket for it. Coming patch should cover:
Should be coming in next couple days. |
valya: Cool. |
valya: HI, |
valya: Gordon, |
gfball: Will do. Quite a big block of code with no documentation otherwise... |
gfball: Added documentation and changelog entry. |
valya: Gordon do you plan to issue more patches for this ticket. So far, I applied all patched. I tested analytics and it works. So we can close the ticket. |
valya: Gordon, Currently you made web interface. I want to have similar CLI interface to DAS analytics server. Here is a set of changes I propose:
das_analytics_cli --list and get JSON doc with all scheduled tasks obvious parameters are: --host, e.g. http://a.b.c:8213, may be --query which can be used instead of key. You may look at das_cache_client.py for example how to make JSON requests. On a server side you need to check if client send application/json header and return JSON instead of HTML templates. I think it should be very easy to extend your current code to support that. Actually I can make task #2 quickly if you want and let you work on a server side. Regardless of this implementation you should also add the input parameter validation in the following way: You may check how it's done in either web/das_web.py or web/das_cache.py. |
valya: So, here is prototype of das_analytics_cli where I print out requested URL field, rather then making actual call {{{ Options: python tools/das_analytics_cli.py --list python tools/das_analytics_cli.py --results python tools/das_analytics_cli.py --name="SiteDB task" --class="ValueHotspot" python tools/das_analytics_cli.py --name="SiteDB task" --class="ValueHotspot" --key=site.name The parameters to add_tasks are produced by json.dumps() such that your add_task will load them. |
valya: (In 522ae06) Update on analytics server; analytics cli; analytics help; Add ability to learn data-service output keys. fixes #424 From: Valentin Kuznetsov vkuznet@gmail.com |
Better test the existing analytics tasks and add some new ones.
The text was updated successfully, but these errors were encountered: