-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add --unique-app-id parameter #197
Conversation
streams-bootstrap/src/main/java/com/bakdata/kafka/KafkaStreamsApplication.java
Outdated
Show resolved
Hide resolved
streams-bootstrap/src/main/java/com/bakdata/kafka/KafkaStreamsApplication.java
Show resolved
Hide resolved
streams-bootstrap/src/main/java/com/bakdata/kafka/KafkaStreamsApplication.java
Outdated
Show resolved
Hide resolved
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.
I would slightly prefer a new parameter in streams
that lets you set the consumer group instead of the flag, and I really don't see why it would break anything.
@@ -15,6 +15,7 @@ configurationEnvPrefix: "APP" | |||
streams: | |||
# brokers: "test:9092" | |||
# schemaRegistryUrl: "url:1234" | |||
passApplicationId: true |
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.
I think the default should be false if your goal is that it is non-breaking
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.
New helm chart should have it as default but old apps can still use new chart. We did a similar thing for optimizeLeaveGroupBehavior
|
||
this.configureDefaultSerde(kafkaConfig); | ||
kafkaConfig.setProperty(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, this.getBrokers()); | ||
return kafkaConfig; | ||
} | ||
|
||
private String getApplicationId() { |
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.
I guess it would clutter the API even more and lead to confusion together with getUniqueAppId()
, but I feel like we will need to call it elsewhere
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.
Hm, this method does the validation whenever Kafka properties are created. So getUniqueAppId() should still return the correct result unless a user explicitly overrides the method and it returns null. I don't think this will ever happen
|
||
this.configureDefaultSerde(kafkaConfig); | ||
kafkaConfig.setProperty(StreamsConfig.BOOTSTRAP_SERVERS_CONFIG, this.getBrokers()); | ||
return kafkaConfig; | ||
} | ||
|
||
private String getApplicationId() { |
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.
And I think we need a test for this method
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.
Will add tests, just wanted to have your thoughts first
@raminqaf @philipp94831 Like I said above, I'd prefer using a separate argument for the app id and not reusing the autoscaling one. See feature/application-id-param...feature/helm-app-id for how I imagine it could work |
I feel like having two parameters is more confusing. Then we should document it well and probably deprecat the old way of configuring it |
I would be fine with deprecating it, but I'm not sure if there might be a situation in which someone wants to use KEDA but not set the consumer group via Helm.
But I agree that we should also document it properly in the values.yaml and README.md |
There is also this annotation we should not forget about https://github.com/bakdata/streams-bootstrap/blob/master/charts/streams-app/templates/deployment.yaml#L20 |
Closing in favor of #243 |
No description provided.