Skip to content
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

Allow further configuration of topics #1638

Closed
jhill072 opened this issue Dec 20, 2021 · 13 comments · Fixed by #3671
Closed

Allow further configuration of topics #1638

jhill072 opened this issue Dec 20, 2021 · 13 comments · Fixed by #3671
Assignees
Labels
area/broker Kafka Broker related issues area/control-plane good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature-request triage/accepted Issues which should be fixed (post-triage)

Comments

@jhill072
Copy link
Contributor

Problem
I would like to control more topic configurations than the currently exposed partitions and replication factor, such as retention period, cleanup type, and potentially 3rd-party configurations like confluent.*

Persona:
Which persona is this feature for?

  • System Operator

Exit Criteria
I can set properties such as "cleanup.policy", "retention.ms", and "confluent.tier.enable" for the topic backed by the Broker.

Time Estimate (optional):
How many developer-days do you think this may take to resolve?

In my mind, this seems really close to the existing config map for a topic, but with more configurations, so I would picture at most a week?

Additional context (optional)
Add any other context about the feature request here.

Originally requested here, but deserves its own issue.

@pierDipi
Copy link
Member

/triage accepted
/area broker
/area control-plane
/kind api-change

@knative-prow-robot knative-prow-robot added triage/accepted Issues which should be fixed (post-triage) area/broker Kafka Broker related issues area/control-plane kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API labels Dec 21, 2021
@pierDipi
Copy link
Member

pierDipi commented Mar 2, 2022

As always, contributions are welcome and I'm happy to provide guidance for the implementation!

/good-first-issue

@knative-prow-robot
Copy link
Contributor

@pierDipi:
This request has been marked as suitable for new contributors.

Please ensure the request meets the requirements listed here.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-good-first-issue command.

In response to this:

As always, contributions are welcome and I'm happy to provide guidance for the implementation!

/good-first-issue

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@knative-prow-robot knative-prow-robot added good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Mar 2, 2022
@sub-zero7
Copy link

Hello, what is a default retention period for managed and unmanaged topics (when kafka.eventing.knative.dev/external.topic is set)? Are default.topic.partitions and default.topic.replication.factor ignored in unmanaged topic scenario? Thanks

@pierDipi
Copy link
Member

Hello, what is a default retention period for managed and unmanaged topics (when kafka.eventing.knative.dev/external.topic is set)? Are default.topic.partitions and default.topic.replication.factor ignored in unmanaged topic scenario? Thanks

Correct, in the unmanaged case, we ignore replication factor and num partitions configurations, in the managed case, you need to specify them in a ConfigMap, we ship a default ConfigMap in the knative-eventing namespace with these values:
https://github.com/knative-sandbox/eventing-kafka-broker/blob/7678c99b6f802f16367a7b3fdcff2f06c5d485e4/control-plane/config/eventing-kafka-broker/100-broker/100-kafka-broker-configmap.yaml#L25-L27

@sub-zero7
Copy link

Thanks for the clarification. We are also currently thinking about topic retention period. For example in alternative option https://github.com/knative-sandbox/eventing-kafka/blob/release-1.5/pkg/channel/distributed/README.md it's configurable and has a default value of retentionDuration: PT168H. As this issue mentions eventing-kafka-broker currently does not allow to configure that, so I would like to understand for how long time events will be persisted in a broker in managed and unmanaged topic cases (for example, to plan event replay scenarios).

@pierDipi
Copy link
Member

in the managed case it's using whatever is the Kafka cluster default, in the unmanaged case, you can specify it when you're creating the topic or if unspecified it will use the Kafka cluster default.

@vishal-chdhry
Copy link
Contributor

/assign

@vishal-chdhry vishal-chdhry removed their assignment Mar 12, 2023
@vishal-chdhry
Copy link
Contributor

@debasishbsws go ahead!

@debasishbsws
Copy link
Member

/assign

@Leo6Leo
Copy link
Contributor

Leo6Leo commented Oct 30, 2023

@debasishbsws hey debasish are u still working on this?

@debasishbsws
Copy link
Member

@Leo6Leo No, I am not any more, you can take it over.

@debasishbsws debasishbsws removed their assignment Oct 31, 2023
@Cali0707
Copy link
Member

Cali0707 commented Feb 5, 2024

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/broker Kafka Broker related issues area/control-plane good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/api-change Categorizes issue or PR as related to adding, removing, or otherwise changing an API kind/feature-request triage/accepted Issues which should be fixed (post-triage)
Projects
8 participants