Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
UPSMF
uphrh-sb-devops
Commits
151cbaf0
Commit
151cbaf0
authored
3 years ago
by
Vaibhav
Browse files
Options
Download
Patches
Plain Diff
Issue #SB-23374 fix: creating Kafka topic for QuML bulk upload as part of JIRA key-> SB-23374
parent
6f108d9e
release-5.0.0-vdn_RC1
release-4.10.0-vdn_RC1
release-4.9.0-vdn_RC2
release-4.9.0-vdn_RC1
release-4.8.0-vdn_RC1
release-4.7.0-vdn_RC1
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ansible/roles/setup-kafka/defaults/main.yml
+8
-0
ansible/roles/setup-kafka/defaults/main.yml
ansible/roles/setup-kafka/tasks/main.yml
+9
-0
ansible/roles/setup-kafka/tasks/main.yml
ansible/roles/stack-sunbird/templates/sunbird_program.env
+1
-0
ansible/roles/stack-sunbird/templates/sunbird_program.env
with
18 additions
and
0 deletions
+18
-0
ansible/roles/setup-kafka/defaults/main.yml
+
8
−
0
View file @
151cbaf0
env
:
dev
av_kafka_topic_create
:
false
processing_kafka_overriden_topics
:
-
name
:
lms.audit.events
retention_time
:
172800000
...
...
@@ -28,3 +30,9 @@ processing_kafka_topics:
num_of_partitions
:
1
replication_factor
:
1
av_service_topics
:
-
name
:
av.question.bulkupload
retention_time
:
172800000
replication_factor
:
1
num_of_partitions
:
1
This diff is collapsed.
Click to expand it.
ansible/roles/setup-kafka/tasks/main.yml
+
9
−
0
View file @
151cbaf0
...
...
@@ -12,3 +12,12 @@
when
:
kafka_id=="1" and item.retention_time is defined
tags
:
-
processing-kafka
name
:
create topics
command
:
/opt/kafka/bin/kafka-topics.sh --zookeeper localhost:2181 --create --topic {{env_name}}.{{item.name}} --partitions {{ item.num_of_partitions }} --replication-factor {{ item.replication_factor }}
with_items
:
"
{{av_service_topics}}"
ignore_errors
:
true
when
:
kafka_id=="1" and av_kafka_topic_create
tags
:
-
processing-kafka
\ No newline at end of file
This diff is collapsed.
Click to expand it.
ansible/roles/stack-sunbird/templates/sunbird_program.env
+
1
−
0
View file @
151cbaf0
...
...
@@ -15,6 +15,7 @@ opensaber_service_url={{ sunbird_opensaber_service_url}}
telemetry_service_endpoint=v1/telemetry
telemetry_service_host=http://telemetry-service:9001
sunbird_kafka_host={{groups['sunbird-processing-cluster-kafka']|join(':9092,')}}:9092
dock_kafka_host={{groups['processing-cluster-kafka']|join(':9092,')}}:9092
sunbird_auto_creation_topic={{ sunbird_auto_creation_topic }}
sunbird_question_bulkupload_topic={{ env_name }}.av.question.bulkupload
sunbird_kafka_bulkupload_consumer_group_id={{ env_name }}.av.qstn.bulkupload
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets