-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Set kafka message size and compression as configurable #173
Set kafka message size and compression as configurable #173
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes @leonlnj !
@@ -52,6 +52,10 @@ type KafkaConfig struct { | |||
Topic string `json:"topic"` | |||
// Serialization Format used for the messages | |||
SerializationFormat SerializationFormat `json:"serialization_format"` | |||
// Producer Config - Max message byte to send to broker | |||
MaxMessageBytes int `json:"max_message_bytes"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, these values can just be applied at deploy time, like many other default values we have in RouterDefaults
(since they are currently applicable to all routers and not user-configured). Any reason we are saving this to the DB?
Overview
This MR is a follow up from the previous, it allows
max.request.size
andcompression.type
of the Kafka producer configuration to be set in helm values when deploying Turing Server.Modification
api/turing/api/request/request.go
- AppendedMaxMessageBytes
andCompressionType
during building of new router version when logger type is kafka.api/turing/cluster/servicebuilder/router.go
- Creating router with env varAPP_KAFKA_MAX_MESSAGE_BYTES
andAPP_KAFKA_COMPRESSION_TYPE
engines/router/missionctl/log/resultlog/kafka.go
- Router's logger to init with config, which are read from env var during initialisation.Testing
Setting router default in Turing Server helms value
Router container env var set with the global values