Joal has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/384113 )

Change subject: [FUN] AQS for druid only
......................................................................

[FUN] AQS for druid only

This patch allow lauching AQS in druid-only mode, not
requiring cassandra:
  node server.js -c config.example.druid.yaml

THIS PATCH IS NOT TO BE MERGED !!!

Change-Id: I321af524d5b6e7b6128227d5bec56cb65fc640b7
---
A config.example.druid.yaml
A projects/aqs_druid.yaml
2 files changed, 76 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/analytics/aqs 
refs/changes/13/384113/1

diff --git a/config.example.druid.yaml b/config.example.druid.yaml
new file mode 100644
index 0000000..bfc4f7e
--- /dev/null
+++ b/config.example.druid.yaml
@@ -0,0 +1,41 @@
+# Analytics Query Service config
+aqs_project: &aqs_project
+  x-modules:
+    /:
+      - path: projects/aqs_druid.yaml
+        options: &default_options
+          druid:
+            scheme: http
+            host: localhost
+            port: 8082
+            query_path: /druid/v2/
+
+# Swagger spec root.
+spec: &spec_root
+  title: "The Analytics Query Service root"
+  paths:
+    /{domain:analytics.wikimedia.org}: *aqs_project
+
+# The main service setup. Each worker can offer one or more services.
+services:
+  - name: aqs
+    module: hyperswitch
+    conf:
+      port: 7231
+      spec: *spec_root
+      salt: secret
+      default_page_size: 125
+
+logging:
+  name: aqs
+  level: info
+  #streams:
+  #- type: gelf
+  #  host: <%= @logstash_host %>
+  #  port: <%= @logstash_port %>
+
+metrics:
+  #type: txstatsd
+  #host: localhost
+  #port: 8125
+  #batch: true
diff --git a/projects/aqs_druid.yaml b/projects/aqs_druid.yaml
new file mode 100644
index 0000000..ba7dfef
--- /dev/null
+++ b/projects/aqs_druid.yaml
@@ -0,0 +1,35 @@
+swagger: '2.0'
+paths:
+  /{api:v1}: &default_project_paths_v1
+    swagger: '2.0'
+    # swagger options, overriding the shared ones from the merged specs (?)
+    info:
+      version: 1.0.0-beta
+      title: Analytics REST API
+      description: >
+          Analytics Query Service setup
+      x-is-api-root: true
+
+    x-host-basePath: /api/rest_v1
+
+    x-modules:
+      /edited-pages:
+        - path: v1/edited-pages.yaml
+      /editors:
+        - path: v1/editors.yaml
+      /registered-users:
+        - path: v1/registered-users.yaml
+      /edits:
+        - path: v1/edits.yaml
+      /bytes-difference:
+        - path: v1/bytes-difference.yaml
+
+  /{api:sys}:
+    swagger: 2.0
+    info:
+      x-is-api-root: true
+    x-modules:
+      /mediawiki-history-metrics:
+        - path: sys/mediawiki-history-metrics.js
+          options:
+            druid: '{{options.druid}}'

-- 
To view, visit https://gerrit.wikimedia.org/r/384113
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I321af524d5b6e7b6128227d5bec56cb65fc640b7
Gerrit-PatchSet: 1
Gerrit-Project: analytics/aqs
Gerrit-Branch: master
Gerrit-Owner: Joal <j...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to