From 86c74c79cb45992d9f2ec134477cae41cd26651b Mon Sep 17 00:00:00 2001 From: Renu Kumari Date: Thu, 19 Aug 2021 13:11:00 -0400 Subject: Process data-updated event asynchronously - notification is processed asynchronously using defined threadpool - updated docker-compose and readme to add dataspace filtering variables Issue-ID: CPS-526 Signed-off-by: Renu Kumari Change-Id: I7f827250f45cb9e3db2f060e9b3a089a4eaee05c --- docker-compose/README.md | 8 +++++--- docker-compose/docker-compose.yml | 3 +++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'docker-compose') diff --git a/docker-compose/README.md b/docker-compose/README.md index 11ccf6150..ceb05446b 100644 --- a/docker-compose/README.md +++ b/docker-compose/README.md @@ -2,6 +2,7 @@ ============LICENSE_START======================================================= Copyright (C) 2020 Pantheon.tech Modifications Copyright (C) 2020-2021 Nordix Foundation. + Modifications Copyright (C) 2021 Bell Canada. ================================================================================ Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -52,11 +53,12 @@ It starts both Postgres database and CPS services. 1. Edit `docker-compose.yml` 1. uncomment desired service to be deployed, by default `cps-and-ncmp` is enabled. You can comment it and uncomment `cps-standalone` or `ncmp-standalone`. - 2. To send data-updated events to kafka, - * uncomment the `zookeeper` and `kafka` services. - * uncomment environment variables + 2. To send data-updated events to kafka, + * uncomment the `zookeeper` and `kafka` services. + * uncomment environment variables * `notification.data-updated.enabled: 'true'` * `KAFKA_BOOTSTRAP_SERVER: kafka:9092` + * `NOTIFICATION_DATASPACE_FILTER_PATTERNS: '.*'` 2. Execute following command from `docker-compose` folder: Use one of the below version type that has been generated in the local system's docker image list after the build. diff --git a/docker-compose/docker-compose.yml b/docker-compose/docker-compose.yml index e659b0879..d97cbeb84 100755 --- a/docker-compose/docker-compose.yml +++ b/docker-compose/docker-compose.yml @@ -33,6 +33,7 @@ services: # DB_PASSWORD: ${DB_PASSWORD:-cps} # #KAFKA_BOOTSTRAP_SERVER: kafka:9092 # #notification.data-updated.enabled: 'true' + # #NOTIFICATION_DATASPACE_FILTER_PATTERNS: '.*' # restart: unless-stopped # depends_on: # - dbpostgresql @@ -53,6 +54,7 @@ services: # DMI_PASSWORD: ${DMI_PASSWORD:-cpsr0cks!} # #KAFKA_BOOTSTRAP_SERVER: kafka:9092 # #notification.data-updated.enabled: 'true' + # #NOTIFICATION_DATASPACE_FILTER_PATTERNS: '.*' # restart: unless-stopped # depends_on: # - dbpostgresql @@ -73,6 +75,7 @@ services: DMI_PASSWORD: ${DMI_PASSWORD:-cpsr0cks!} #KAFKA_BOOTSTRAP_SERVER: kafka:9092 #notification.data-updated.enabled: 'true' + #NOTIFICATION_DATASPACE_FILTER_PATTERNS: '.*' restart: unless-stopped depends_on: - dbpostgresql -- cgit 1.2.3-korg