Skip to content

Analytics Server

syntheticzero edited this page Mar 3, 2015 · 4 revisions

This merge includes a

  • bug fix to the correlation computation
  • some Clojure tests
  • a speed up of about 100x
  • implementation of the signals page v2 with infinite scrolling, sort-by- and noise/signal filters.

To run the Clojure servers:

Go to the Clojure directory

su - curious

cd curious/src/clojure/analytics

Copy profiles-sample.clj to profiles.clj, add a production setup, set the database parameters

Start up two analytics processes.

lein with-profile production trampoline run -p 8090 & lein with-profile production trampoline run -p 8091 &

To run the correlation job on all users:

curl -X POST localhost:8080/analyticsTask/processUsers

or go to

http://localhost:8080/analyticsTask/index

and click on "Run on all users."

The admin page is still anemic, but it will show you the user id of the last user processed.
NB: try not to click on "Run on all users" while a job is still running. Nothing too bad will happen but I think maybe both servers won't be used. Not sure. I still have to go in and write some code to manage the interruption of the processes.

Clone this wiki locally