GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||
GeezerVison is showing github.com — [improve][broker] Implement PIP-430 Pulsar Broker cache improvements by lhotari · Pull Request #24623 · apache/pulsar Conversation
|
|
Here's the JMH results for the latest changes. The new Here's a visualization of the results: One interesting detail is that ActiveManagedCursorContainerImpl's algorithm would be faster than ManagedCursorContainer's algorithm for tracking the slowest cursor, assuming that most cursors are moving forward (which is the case). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
The recently added "experimental" test case The with PIP-430 defaults, Cache hits 98.56%, Cache misses 1.44% : with with The results vary quite a lot and these are values from single runs. However, it demonstrates a significant improvement in reducing the amount of cache misses in rolling restarts when PIP-430 defaults are used. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
The improvements looks super-impressive! Having the micro-benchmarks make a great case.
Only minor comments
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
While doing some validation, I noticed that Pulsar has a long time issue that consumers aren't able to keep with producers even when there are available resources unless I created #24695 about this. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
### Motivation apache/pulsar#24623: Updated: ``` public static EntryImpl create(Position position, ByteBuf data) ``` to ``` public static EntryImpl create(Position position, ByteBuf data, int expectedReadCount) ``` apache/pulsar#24427: Updated: ``` CompletableFuture<Void> updateTopicPoliciesAsync(TopicName topicName, TopicPolicies policies); ``` to ``` CompletableFuture<Void> updateTopicPoliciesAsync(TopicName topicName, boolean isGlobalPolicy, boolean skipUpdateWhenTopicPolicyDoesntExist, Consumer<TopicPolicies> policyUpdater); ``` ### Modifications Fix build issue caused by upstream interface changes
…arMockBookKeeper Partial cherry-pick of the testmocks changes from 490ba0c ([improve][broker] Implement PIP-430 Pulsar Broker cache improvements (#24623)), without the JFR read event interceptor parts which aren't needed on branch-4.0. Required so that CompactionTest compiles after cherry-picking ded1e42d352 (#25998), which uses PulsarMockBookKeeper.setDefaultReadEntriesDelayMillis.
…arMockBookKeeper Partial cherry-pick of the testmocks changes from 490ba0c ([improve][broker] Implement PIP-430 Pulsar Broker cache improvements (apache#24623)), without the JFR read event interceptor parts which aren't needed on branch-4.0. Required so that CompactionTest compiles after cherry-picking ded1e42d352 (apache#25998), which uses PulsarMockBookKeeper.setDefaultReadEntriesDelayMillis.
…arMockBookKeeper Partial cherry-pick of the testmocks changes from 490ba0c ([improve][broker] Implement PIP-430 Pulsar Broker cache improvements (apache#24623)), without the JFR read event interceptor parts which aren't needed on branch-4.0. Required so that CompactionTest compiles after cherry-picking ded1e42d352 (apache#25998), which uses PulsarMockBookKeeper.setDefaultReadEntriesDelayMillis.
…pache#24623) (cherry picked from commit 490ba0c)
…pache#24623) (cherry picked from commit 490ba0c) (cherry picked from commit f784137)
…arMockBookKeeper Partial cherry-pick of the testmocks changes from 490ba0c ([improve][broker] Implement PIP-430 Pulsar Broker cache improvements (apache#24623)), without the JFR read event interceptor parts which aren't needed on branch-4.0. Required so that CompactionTest compiles after cherry-picking ded1e42d352 (apache#25998), which uses PulsarMockBookKeeper.setDefaultReadEntriesDelayMillis.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug] Broker won't immediately cache produced entries when all consumers leave and the first consumer joins Shared subscription + Batch messages: consumerFlow trigger reading the same messages from storage
There was an error while loading. Please reload this page.