From b99d3882a6c692fb35e5d1640a071fb5a5b61186 Mon Sep 17 00:00:00 2001 From: BharathwajShankar Date: Fri, 30 Jun 2023 12:18:43 +0530 Subject: [PATCH 1/3] Issue #LR-512 feat:Ability for Lern to connect to shared instances adding redis db index for groups --- .../roles/stack-sunbird/templates/sunbird_groups-service.env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env b/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env index c178e9ce73..db8dedb6b2 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env @@ -11,6 +11,8 @@ sunbird_cassandra_consistency_level={{sunbird_cassandra_consistency_level}} LEARNER_SERVICE_PORT=http://userorg-service:9000 sunbird_redis_host={{sunbird_redis_host}} sunbird_redis_port={{sunbird_redis_port|default(6379)}} +# Release-5.3.0 LR-512 +sunbird_redis_dbIndex={{sunbird_redis_dbIndex|default(0)}} CONTENT_SERVICE_PORT=http://search-service:9000 sunbird_sso_publickey={{sunbird_sso_publickey}} sunbird_sso_url={{keycloak_auth_server_url}}/ From b3324519b97009bfe250957d8507e3ced550f183 Mon Sep 17 00:00:00 2001 From: BharathwajShankar Date: Mon, 3 Jul 2023 10:41:19 +0530 Subject: [PATCH 2/3] Issue #LR-512 feat:Ability for Lern to connect to shared instances adding redis db index for lms,user-org,notification --- .../stack-sunbird/templates/sunbird_lms-service.env | 13 ++++++++++++- .../templates/sunbird_notification-service.env | 2 ++ .../stack-sunbird/templates/userorg-service.env | 6 ++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env index b08a937fc7..4a317d881a 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env @@ -162,4 +162,15 @@ exhaust_api_submit_endpoint=/request/submit exhaust_api_list_endpoint=/request/list/ # Release-5.3.0 LR-324 -content_read_url=/content/v3/read/ \ No newline at end of file +content_read_url=/content/v3/read/ + +# Release-5.4.0 - LR-511 +sunbird_keyspace=sunbird +sunbird_course_keyspace=sunbird_courses +dialcode_keyspace=dialcodes +redis.dbIndex=0 +es_course_index=cbatch +es_course_batch_index=course-batch +es_user_index=user +es_organisation_index=org +es_user_courses_index=user-courses \ No newline at end of file diff --git a/ansible/roles/stack-sunbird/templates/sunbird_notification-service.env b/ansible/roles/stack-sunbird/templates/sunbird_notification-service.env index 3df3bf5bc8..9ae9675705 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_notification-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_notification-service.env @@ -37,3 +37,5 @@ sunbird_us_org_read_url=/v1/org/read notification_category_type_config=certificateUpdate # Release-5.0.0 isMultiDCEnabled={{cassandra_multi_dc_enabled}} +# Release-5.4.0 - LR-512 +sunbird_notification_keyspace=sunbird_notifications diff --git a/ansible/roles/stack-sunbird/templates/userorg-service.env b/ansible/roles/stack-sunbird/templates/userorg-service.env index 8ebd0b4e38..2c07df56e9 100644 --- a/ansible/roles/stack-sunbird/templates/userorg-service.env +++ b/ansible/roles/stack-sunbird/templates/userorg-service.env @@ -128,3 +128,9 @@ sunbird_sso_lb_ip={{keycloak_url}} # Release-5.0.0 sunbird_cloud_service_provider={{cloud_service_provider}} isMultiDCEnabled={{cassandra_multi_dc_enabled}} + +# Release 5.4.0 LR-102 +es_user_notes_index=usernotes +es_location_index=location +es_user_feed_index=userfeed +sunbird_keyspace=sunbird \ No newline at end of file From 04143ef02e0bb4658a33e75d9ee8065760c050a6 Mon Sep 17 00:00:00 2001 From: BharathwajShankar Date: Tue, 4 Jul 2023 12:03:28 +0530 Subject: [PATCH 3/3] Issue #LR-512 feat:Ability for Lern to connect to shared instances adding redis db index for lms,user-org,notification --- .../roles/stack-sunbird/templates/sunbird_groups-service.env | 2 +- ansible/roles/stack-sunbird/templates/sunbird_lms-service.env | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env b/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env index db8dedb6b2..83f3262daf 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_groups-service.env @@ -12,7 +12,7 @@ LEARNER_SERVICE_PORT=http://userorg-service:9000 sunbird_redis_host={{sunbird_redis_host}} sunbird_redis_port={{sunbird_redis_port|default(6379)}} # Release-5.3.0 LR-512 -sunbird_redis_dbIndex={{sunbird_redis_dbIndex|default(0)}} +sunbird_redis_db_index={{sunbird_redis_db_index|default(0)}} CONTENT_SERVICE_PORT=http://search-service:9000 sunbird_sso_publickey={{sunbird_sso_publickey}} sunbird_sso_url={{keycloak_auth_server_url}}/ diff --git a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env index 4a317d881a..c949e0134f 100644 --- a/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env +++ b/ansible/roles/stack-sunbird/templates/sunbird_lms-service.env @@ -167,8 +167,7 @@ content_read_url=/content/v3/read/ # Release-5.4.0 - LR-511 sunbird_keyspace=sunbird sunbird_course_keyspace=sunbird_courses -dialcode_keyspace=dialcodes -redis.dbIndex=0 +sunbird_redis_db_index={{sunbird_redis_db_index|default(0)}} es_course_index=cbatch es_course_batch_index=course-batch es_user_index=user