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

[sn-platform][sn-platform-slim]: upgrade pulsar to 3.0 and enable 3.0 new features #1083

Merged
merged 9 commits into from Sep 14, 2023

Conversation

ericsyh
Copy link
Member

@ericsyh ericsyh commented Aug 3, 2023

(If this PR fixes a github issue, please add Fixes #<xyz>.)

Fixes #1068

(or if this PR is one task of a github issue, please add Master Issue: #<xyz> to link to the master issue.)

Master Issue: #

Motivation

Explain here the context, and why you're making that change. What is the problem you're trying to solve.

Modifications

Describe the modifications you've done.

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

Documentation

Check the box below.

Need to update docs?

  • doc-required

    (If you need help on updating docs, create a doc issue)

  • no-need-doc

    (Please explain why)

  • doc

    (If this PR contains doc changes)

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
@ericsyh ericsyh requested review from sijie, addisonj and a team as code owners August 3, 2023 15:23
@github-actions github-actions bot added the no-need-doc This pr does not need any document label Aug 3, 2023
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
@ericsyh ericsyh requested a review from a team August 3, 2023 15:26
@ericsyh ericsyh added this to the sn-platform-1.11 milestone Aug 3, 2023
configData: {}
configData:
# Enable DirectIO by default
PULSAR_PREFIX_dbStorage_directIOEntryLogger: "true"
Copy link
Member

Choose a reason for hiding this comment

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

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
urfreespace
urfreespace previously approved these changes Aug 11, 2023
delayedDeliveryTrackerFactoryClassName: "org.apache.pulsar.broker.delayed.BucketDelayedDeliveryTrackerFactory"
# Enable transaction buffer segmented snapshot
transactionBufferSegmentedSnapshotEnabled: "true"
transactionBufferSnapshotSegmentSize: "262144"

Choose a reason for hiding this comment

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

We don't need set this one, just use the default value that pulsar provided.

delayedDeliveryTrackerFactoryClassName: "org.apache.pulsar.broker.delayed.BucketDelayedDeliveryTrackerFactory"
# Enable transaction buffer segmented snapshot
transactionBufferSegmentedSnapshotEnabled: "true"
transactionBufferSnapshotSegmentSize: "262144"

Choose a reason for hiding this comment

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

We don't need set this one, just use the default value that pulsar provided.

managedLedgerDefaultEnsembleSize: "3"
managedLedgerDefaultWriteQuorum: "3"
managedLedgerDefaultAckQuorum: "2"
PULSAR_PREFIX_systemTopicEnabled: "true"
PULSAR_PREFIX_topicLevelPoliciesEnabled: "true"
# Enable the new delayed message
delayedDeliveryTrackerFactoryClassName: "org.apache.pulsar.broker.delayed.BucketDelayedDeliveryTrackerFactory"
Copy link
Member

Choose a reason for hiding this comment

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

Well, I think maybe we should support dynamic calculate of the segment size or bucket size by cluster resources in the future. :)

/cc @coderzc WDYT?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but we need to design a set of calculation formulas.

transactionBufferSegmentedSnapshotEnabled: "true"
transactionBufferSnapshotSegmentSize: "262144"
# Enable the new Load Balancer
loadManagerClassName: "org.apache.pulsar.broker.loadbalance.extensions.ExtensibleLoadManagerImpl"
Copy link
Member

Choose a reason for hiding this comment

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

To use ExtensibleLoadManagerImpl, we recommend upgrading the pulsar to 3.0.x before enabling the new load balancer.

https://pulsar.apache.org/docs/next/concepts-broker-load-balancing-migration/#migrate-from-modular-to-extensible-broker-load-balancer

cc @heesung-sn

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
@@ -987,6 +987,8 @@ bookkeeper:
gcLoggingOptions: []
custom: {}
configData: {}
# For Pulsar 3.0, please do not enable Direct IO. Needs a fix https://github.com/apache/bookkeeper/pull/4041
# PULSAR_PREFIX_dbStorage_directIOEntryLogger: "true"

Choose a reason for hiding this comment

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

Please change the default value to false

Copy link
Member Author

Choose a reason for hiding this comment

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

@hangc0276 fixed in 462b4a7

Signed-off-by: ericsyh <ericshenyuhao@outlook.com>
@ericsyh
Copy link
Member Author

ericsyh commented Sep 5, 2023

@hangc0276 @codelipenghui PTAL again. Thx!

@ericsyh ericsyh merged commit 389d755 into master Sep 14, 2023
4 checks passed
@ericsyh ericsyh deleted the upgrade-3.0 branch September 14, 2023 01:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-need-doc This pr does not need any document
Projects
None yet
Development

Successfully merging this pull request may close these issues.

upgrade pulsar image to 3.0
9 participants