You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2022/11/21 05:15:11 UTC
[GitHub] [pulsar] tjiuming opened a new pull request, #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
tjiuming opened a new pull request, #18309:
URL: https://github.com/apache/pulsar/pull/18309
Fixes https://github.com/apache/pulsar/issues/17673
### Motivation
Currently, Pulsar only supports global offload auto trigger policy: `managedLedgerOffloadAutoTriggerSizeThresholdBytes` and `managedLedgerOffloadThresholdInSeconds` (see: https://github.com/apache/pulsar/pull/17398).
this is a very coarse granularity.
For the purpose of more fine control of auto trigger offload, we'd better to support namespace/topic level auto trigger offload policy.
### Documentation
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. Please attach the local preview screenshots (run `sh start.sh` at `pulsar/site2/website`) to your PR description, or else your PR might not get merged. -->
- [x] `doc-required` <!-- Your PR changes impact docs and you will update later -->
- [ ] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
### Matching PR in forked repository
PR in forked repository:
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on PR #18309:
URL: https://github.com/apache/pulsar/pull/18309#issuecomment-1367022594
The pr had no activity for 30 days, mark with Stale label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] eolivelli commented on a diff in pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
Posted by GitBox <gi...@apache.org>.
eolivelli commented on code in PR #18309:
URL: https://github.com/apache/pulsar/pull/18309#discussion_r1033365771
##########
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java:
##########
@@ -1974,6 +1975,26 @@ The delayed message index bucket time step(in seconds) in per bucket snapshot se
doc = "The threshold to triggering automatic offload to long term storage"
)
private long managedLedgerOffloadThresholdInSeconds = -1L;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of bytes of namespaces before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadNamespaceThresholdInBytes;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of bytes of topics before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadTopicThresholdInBytes;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of seconds of namespaces before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadNamespaceThresholdInSeconds;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of seconds of topics before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadTopicThresholdInSeconds;
Review Comment:
I don't think that it is a good idea to write staticaly topics or namespaces in broker.conf.
Usually namespace and topic configuration are dynamic
Why are you taking this approach?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tjiuming commented on pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
Posted by GitBox <gi...@apache.org>.
tjiuming commented on PR #18309:
URL: https://github.com/apache/pulsar/pull/18309#issuecomment-1326298730
/pulsarbot run-failure-checks
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] tjiuming commented on a diff in pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
Posted by "tjiuming (via GitHub)" <gi...@apache.org>.
tjiuming commented on code in PR #18309:
URL: https://github.com/apache/pulsar/pull/18309#discussion_r1101657441
##########
pulsar-broker-common/src/main/java/org/apache/pulsar/broker/ServiceConfiguration.java:
##########
@@ -1974,6 +1975,26 @@ The delayed message index bucket time step(in seconds) in per bucket snapshot se
doc = "The threshold to triggering automatic offload to long term storage"
)
private long managedLedgerOffloadThresholdInSeconds = -1L;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of bytes of namespaces before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadNamespaceThresholdInBytes;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of bytes of topics before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadTopicThresholdInBytes;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of seconds of namespaces before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadNamespaceThresholdInSeconds;
+ @FieldContext(
+ category = CATEGORY_STORAGE_OFFLOADING,
+ doc = "The number of seconds of topics before triggering automatic offload to long term storage"
+ )
+ private Map<String, Long> managedLedgerOffloadTopicThresholdInSeconds;
Review Comment:
@eolivelli How about make it to dynamic config?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations [pulsar]
Posted by "dao-jun (via GitHub)" <gi...@apache.org>.
dao-jun closed pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
URL: https://github.com/apache/pulsar/pull/18309
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Technoboy- closed pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
Posted by GitBox <gi...@apache.org>.
Technoboy- closed pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
URL: https://github.com/apache/pulsar/pull/18309
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] codecov-commenter commented on pull request #18309: [feat][offload] Add namespace/topic level offload auto-trigger threshold configurations
Posted by GitBox <gi...@apache.org>.
codecov-commenter commented on PR #18309:
URL: https://github.com/apache/pulsar/pull/18309#issuecomment-1321902473
# [Codecov](https://codecov.io/gh/apache/pulsar/pull/18309?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) Report
> Merging [#18309](https://codecov.io/gh/apache/pulsar/pull/18309?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (5d1fa74) into [master](https://codecov.io/gh/apache/pulsar/commit/bc1e0cbac5b4d6e8362543151b47c7ed03b5b949?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) (bc1e0cb) will **decrease** coverage by `12.33%`.
> The diff coverage is `31.86%`.
[](https://codecov.io/gh/apache/pulsar/pull/18309?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation)
```diff
@@ Coverage Diff @@
## master #18309 +/- ##
=============================================
- Coverage 47.50% 35.16% -12.34%
+ Complexity 10505 6685 -3820
=============================================
Files 698 618 -80
Lines 67984 58558 -9426
Branches 7272 6091 -1181
=============================================
- Hits 32297 20594 -11703
- Misses 32112 35231 +3119
+ Partials 3575 2733 -842
```
| Flag | Coverage Δ | |
|---|---|---|
| unittests | `35.16% <31.86%> (-12.34%)` | :arrow_down: |
Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#carryforward-flags-in-the-pull-request-comment) to find out more.
| [Impacted Files](https://codecov.io/gh/apache/pulsar/pull/18309?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | Coverage Δ | |
|---|---|---|
| [...pulsar/broker/admin/impl/PersistentTopicsBase.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi9pbXBsL1BlcnNpc3RlbnRUb3BpY3NCYXNlLmphdmE=) | `18.35% <0.00%> (-41.17%)` | :arrow_down: |
| [.../org/apache/pulsar/broker/admin/v2/Namespaces.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92Mi9OYW1lc3BhY2VzLmphdmE=) | `13.32% <0.00%> (-46.18%)` | :arrow_down: |
| [...rg/apache/pulsar/broker/service/BrokerService.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9zZXJ2aWNlL0Jyb2tlclNlcnZpY2UuamF2YQ==) | `48.65% <ø> (-9.13%)` | :arrow_down: |
| [...pache/pulsar/broker/admin/impl/NamespacesBase.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi9pbXBsL05hbWVzcGFjZXNCYXNlLmphdmE=) | `20.60% <30.61%> (-43.30%)` | :arrow_down: |
| [...sar/broker/service/persistent/PersistentTopic.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9zZXJ2aWNlL3BlcnNpc3RlbnQvUGVyc2lzdGVudFRvcGljLmphdmE=) | `46.56% <57.14%> (-15.59%)` | :arrow_down: |
| [.../apache/pulsar/client/impl/AuthenticationUtil.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWNsaWVudC9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2NsaWVudC9pbXBsL0F1dGhlbnRpY2F0aW9uVXRpbC5qYXZh) | `59.37% <100.00%> (+4.20%)` | :arrow_up: |
| [...ava/org/apache/pulsar/broker/admin/v1/Brokers.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92MS9Ccm9rZXJzLmphdmE=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: |
| [...va/org/apache/pulsar/broker/admin/v1/Clusters.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92MS9DbHVzdGVycy5qYXZh) | `0.00% <0.00%> (-100.00%)` | :arrow_down: |
| [.../org/apache/pulsar/broker/admin/v1/Properties.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92MS9Qcm9wZXJ0aWVzLmphdmE=) | `0.00% <0.00%> (-100.00%)` | :arrow_down: |
| [.../apache/pulsar/broker/admin/v2/ResourceGroups.java](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation#diff-cHVsc2FyLWJyb2tlci9zcmMvbWFpbi9qYXZhL29yZy9hcGFjaGUvcHVsc2FyL2Jyb2tlci9hZG1pbi92Mi9SZXNvdXJjZUdyb3Vwcy5qYXZh) | `0.00% <0.00%> (-100.00%)` | :arrow_down: |
| ... and [216 more](https://codecov.io/gh/apache/pulsar/pull/18309/diff?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=The+Apache+Software+Foundation) | |
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org