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

Deduplication of configuration #25

Open
gavinmcnair opened this issue Apr 5, 2018 · 1 comment
Open

Deduplication of configuration #25

gavinmcnair opened this issue Apr 5, 2018 · 1 comment

Comments

@gavinmcnair
Copy link

gavinmcnair commented Apr 5, 2018

It would be nice if templates could be defined to reduce duplication.

An example of this might be

templates:
    web_event: 
      partitions: 10
      replication: 1234567
      config:
          cleanup.policy: delete
          retention.ms: 604800000
          min.insync.replicas: 2    

topics:
    web_view:
      template: web_event
    web_click:
      template: web_event
      config.cleanup.policy: example_override
    different_topic:
      partitions: 12
      replication: 89101112
      config:
          cleanup.policy: delete
          retention.ms: 6000
          min.insync.replicas: 3

where
web_view is an example of a topic that mirrors the template exactly
web_click is an example of a topic which overrides a single element of a template
different_topic is an example of a topic which is not base on a template

@lacarvalho91
Copy link
Contributor

Agreed we need something like this. I would say cleanup.policy: example_override would need to be:

config:
     cleanup.policy: example_override

You might have meant that anyway :) just to avoid confusion

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants