Skip to content

Commit

Permalink
Merge pull request #40 from topcoder-platform/develop
Browse files Browse the repository at this point in the history
replace kafka simple consumer with group consumer
  • Loading branch information
rootelement authored Jul 8, 2021
2 parents 65e20b8 + c90134e commit aeb0cf9
Show file tree
Hide file tree
Showing 6 changed files with 144 additions and 768 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ install_dependency: &install_dependency
command: |
sudo apt install jq
sudo pip install awscli --upgrade
sudo apt install python-dev libffi-dev gcc libc-dev make
sudo pip install docker-compose
install_deploysuite: &install_deploysuite
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ The following parameters can be set in config files or in env variables:
- KAFKA_CLIENT_CERT_KEY: Kafka connection private key, optional;
if not provided, then SSL connection is not used, direct insecure connection is used;
if provided, it can be either path to private key file or private key content
- KAFKA_GROUP_ID: the Kafka group id, default value is 'submission-processor'
- SUBMISSION_CREATE_TOPIC: Kafka topic related to Submission creation, default value is 'submission.notification.create'
- AVSCAN_TOPIC: Kafka topic related to AV Scan, default value is 'avscan.action.scan'
- ACCESS_KEY_ID: the AWS access key id
Expand Down
3 changes: 3 additions & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ module.exports = {
LOG_LEVEL: process.env.LOG_LEVEL || 'debug',
MAXFILESIZE: process.env.MAXFILESIZE || 4294967296,

// Kafka group id
KAFKA_GROUP_ID: process.env.KAFKA_GROUP_ID || 'submission-processor',

KAFKA_URL: process.env.KAFKA_URL || 'localhost:9092',
KAFKA_CLIENT_CERT: process.env.KAFKA_CLIENT_CERT,
KAFKA_CLIENT_CERT_KEY: process.env.KAFKA_CLIENT_CERT_KEY,
Expand Down
Loading

0 comments on commit aeb0cf9

Please sign in to comment.