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
knowledge-platform
Commits
4ba654cc
Commit
4ba654cc
authored
2 years ago
by
Kartheek Palla
Browse files
Options
Download
Patches
Plain Diff
Issue KN-767 fix: content service config map updated
parent
3c9880b8
patch-3
knowlg-oneclick
patch-1
patch-2
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kubernetes/content/content-service_logback.xml
+1
-30
kubernetes/content/content-service_logback.xml
with
1 addition
and
30 deletions
+1
-30
kubernetes/content/content-service_logback.xml
+
1
−
30
View file @
4ba654cc
...
...
@@ -23,37 +23,8 @@
<appender-ref
ref=
"ASYNCSTDOUT"
/>
</root>
<appender
name=
"kafka-appender"
class=
"com.github.danielwegener.logback.kafka.KafkaAppender"
>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<pattern>
%msg
</pattern>
</encoder>
<topic>
sunbirdstaging.telemetry.raw
</topic>
<!-- ensure that every message sent by the executing host is partitioned to the same partition strategy -->
<keyingStrategy
class=
"com.github.danielwegener.logback.kafka.keying.NoKeyKeyingStrategy"
/>
<!-- block the logging application thread if the kafka appender cannot keep up with sending the log messages -->
<deliveryStrategy
class=
"com.github.danielwegener.logback.kafka.delivery.AsynchronousDeliveryStrategy"
/>
<!-- each <producerConfig> translates to regular kafka-client config (format: key=value) -->
<!-- producer configs are documented here: https://kafka.apache.org/documentation.html#newproducerconfigs -->
<!-- bootstrap.servers is the only mandatory producerConfig -->
<producerConfig>
bootstrap.servers=kafka.knowlg-db.svc.cluster.local:9092
</producerConfig>
<!-- don't wait for a broker to ack the reception of a batch. -->
<producerConfig>
acks=0
</producerConfig>
<!-- wait up to 1000ms and collect log messages before sending them as a batch -->
<producerConfig>
linger.ms=15000
</producerConfig>
<!-- even if the producer buffer runs full, do not block the application but start to drop messages -->
<producerConfig>
max.block.ms=0
</producerConfig>
<!-- define a client-id that you use to identify yourself against the kafka broker -->
<producerConfig>
client.id=${HOSTNAME}-${CONTEXT_NAME}-logback-relaxed
</producerConfig>
<!-- there is no fallback <appender-ref>. If this appender cannot deliver, it will drop its messages. -->
</appender>
<logger
name=
"TelemetryEventLogger"
level=
"INFO"
>
<appender-ref
ref=
"
kafka-appender
"
/>
<appender-ref
ref=
"
STDOUT
"
/>
</logger>
</configuration>
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