From 0c5979fe48a43d5fbc680d026ea7ec866f60ed9e 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 | 7 ++++--- docker-compose/docker-compose.yml | 3 +++ 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'docker-compose') diff --git a/docker-compose/README.md b/docker-compose/README.md index 11ccf6150b..f7296a5bba 100644 --- a/docker-compose/README.md +++ b/docker-compose/README.md @@ -52,11 +52,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 e2185f6de4..765e4f5359 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 @@ -51,6 +52,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 @@ -69,6 +71,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 -- cgit 1.2.3-korg