From 14757318c6b18ead1b6f83a06225a92b0ab1b8d4 Mon Sep 17 00:00:00 2001
From: Kumar Gauraw <gaurawk@ilimi.in>
Date: Wed, 9 Dec 2020 10:33:42 +0530
Subject: [PATCH] Issue #SC-1928 feat: updated config for assessment-service
 (#2081)

---
 .../assessment-service_application.conf       | 36 ++++++++++++++++---
 1 file changed, 32 insertions(+), 4 deletions(-)

diff --git a/ansible/roles/stack-sunbird/templates/assessment-service_application.conf b/ansible/roles/stack-sunbird/templates/assessment-service_application.conf
index 871a0b3f5..f169b0ff4 100644
--- a/ansible/roles/stack-sunbird/templates/assessment-service_application.conf
+++ b/ansible/roles/stack-sunbird/templates/assessment-service_application.conf
@@ -77,6 +77,18 @@ akka {
           nr-of-instances = 2
           dispatcher = actors-dispatcher
         }
+      /questionActor
+        {
+          router = smallest-mailbox-pool
+          nr-of-instances = 5
+          dispatcher = actors-dispatcher
+        }
+      /questionSetActor
+        {
+          router = smallest-mailbox-pool
+          nr-of-instances = 5
+          dispatcher = actors-dispatcher
+        }
     }
   }
 }
@@ -107,7 +119,7 @@ play.modules {
 
   # If there are any built-in modules that you want to disable, you can list them here.
   #disabled += ""
-  enabled += modules.ItemSetModule
+  enabled += modules.AssessmentModule
 }
 
 ## IDE
@@ -324,11 +336,21 @@ play.filters {
 
 play.http.parser.maxMemoryBuffer = 50MB
 akka.http.parsing.max-content-length = 50MB
-schema.base_path="{{ schema_base_path }}"
+schema.base_path="{{ kp_schema_base_path | default('/home/sunbird/assessment-service-1.0-SNAPSHOT/schemas')}}"
 
 # Cassandra Configuration
-cassandra.lp.connection="{{ lp_cassandra_connection }}"
-content.keyspace = "{{ lp_cassandra_keyspace_prefix }}_content_store"
+cassandra {
+  lp {
+    connection: "{{ lp_cassandra_connection }}"
+  }
+  lpa {
+    connection: "{{ lp_cassandra_connection }}"
+  }
+}
+content.keyspace = "{{ cassandra_keyspace_prefix }}_content_store"
+objectcategorydefinition.keyspace="{{ cassandra_keyspace_prefix }}_category_store"
+question.keyspace="{{ cassandra_keyspace_prefix }}_question_store"
+questionset.keyspace="{{ cassandra_keyspace_prefix }}_hierarchy_store"
 
 # Redis Configuration
 redis.host="{{ sunbird_lp_redis_host }}"
@@ -370,3 +392,9 @@ languageCode {
   tamil : "ta"
   telugu : "te"
 }
+
+kafka {
+  urls : "{{ kafka_urls }}"
+  topic.send.enable : true
+  topics.instruction : "{{ env_name }}.learning.job.request"
+}
\ No newline at end of file
-- 
GitLab