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

[improve][pip] PIP-346: Add a simplified configuration file for Pulsar #22274

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

thetumbled
Copy link
Member

@thetumbled thetumbled commented Mar 15, 2024

Motivation

PIP-346

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • The metrics
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@github-actions github-actions bot added type/PIP doc-not-needed Your PR changes do not impact docs labels Mar 15, 2024
@thetumbled thetumbled changed the title [improve][conf] PIP-346: Add a simplified configuration file for Pulsar [improve][pip] PIP-346: Add a simplified configuration file for Pulsar Mar 15, 2024
pip/pip-346.md Outdated
## Design & Implementation Details

- rename current `broker.conf` to `complete_broker.conf`
- add a new `broker.conf` which only contains the configurations that are frequently modified
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do we confirm which configurations need to be modified frequently?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it depends on the experience.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can vote the configurations in the implementation pr.
It is a process of compression of operation and maintenance experience, which is valuable in my view.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a good discussion starting point, though the precise list and modality should be eventually part of the PIP that is voted on.

Copy link
Contributor

@BewareMyPower BewareMyPower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dao-jun
Copy link
Member

dao-jun commented Mar 15, 2024

I support

@thetumbled
Copy link
Member Author

Hi, i have added the candidate conf list, looking forward to your feedback. @merlimat @BewareMyPower @crossoverJie @dao-jun

@lhotari
Copy link
Member

lhotari commented Mar 15, 2024

I provided my feedback on the mailing list https://lists.apache.org/thread/xdq62jytxxj421vly6qzn9dn8vvjqyv1

Before making this change, I hope that there could be discussion about
improving the configuration solution in Pulsar.
The mailing list thread is
https://lists.apache.org/thread/8splwyrn25pt5rb6ph0yz0tfgknn3hqh .

With a proper configuration library such as Gestalt Config [1], it's
possible to have a solution that is expressed in this PIP-346.
In Gestalt Config, the feature "Merge Multiple Sources: Seamlessly
merge configurations from different sources to create comprehensive
settings." support this.

This is the reason why I don't think that we should move forward with
PIP-346 without addressing the proposal in the other mailing list
thread
"[DISCUSSION] Proposal to Replace Pulsar's Homegrown Configuration
Framework with Gestalt Config" [2].

-Lari

1 - https://github.com/gestalt-config/gestalt#features
2 - https://lists.apache.org/thread/8splwyrn25pt5rb6ph0yz0tfgknn3hqh

@poorbarcode poorbarcode added this to the 3.3.0 milestone Mar 16, 2024
@thetumbled
Copy link
Member Author

Hi, could we move forward with this PIP? It seems that it is not rely on another PIP Proposal to Replace Pulsar's Homegrown Configuration Framework with Gestalt Config.
@merlimat @BewareMyPower @crossoverJie @codelipenghui @dao-jun @lhotari

@lhotari
Copy link
Member

lhotari commented Apr 23, 2024

Hi, could we move forward with this PIP? It seems that it is not rely on another PIP Proposal to Replace Pulsar's Homegrown Configuration Framework with Gestalt Config. @merlimat @BewareMyPower @crossoverJie @codelipenghui @dao-jun @lhotari

The current Pulsar configuration solution is currently a mess (example: apply-config-from-env.py is needed to override configuration from environment) and instead of just doing changes that don't really address the problems, I think that it's a distraction.

That's why I think that we shouldn't proceed on PIP-346. We need a design for revisiting the configuration solution for Pulsar 4.0 and beyond.

@coderzc coderzc modified the milestones: 3.3.0, 3.4.0 May 8, 2024
@lhotari lhotari modified the milestones: 4.0.0, 4.1.0 Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-not-needed Your PR changes do not impact docs release/4.0.3 type/PIP
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants