You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by "TakaHiR07 (via GitHub)" <gi...@apache.org> on 2024/04/25 04:05:27 UTC

[PR] [improve] different bookies do not trigger gcOverreplicatedLedger at the same time [bookkeeper]

TakaHiR07 opened a new pull request, #4314:
URL: https://github.com/apache/bookkeeper/pull/4314

   ### Motivation
   
   In the `gcOverReplicatedLedger` function, there is a config `gcOverreplicatedLedgerMaxConcurrentRequests` to control the zk concurrent request of one bookie, which aim to avoid too much pressure on zk.
   
   However, if we have so much bookies, and different bookies start at similar time, different bookies would trigger gcOverreplicatedLedger at the same time. This make the request pressure on zk become `maxConcurrentRequests * bookieNums`. 
   
   I think we can improve this process, make different bookies not trigger gcOverreplicatedLedger at the same time. So that we can avoid `gcOverreplicatedLedgerMaxConcurrentRequests` be a very small value.
   
   ### Changes
   
   define lastOverReplicatedLedgerGcTimeMillis based on `the bookie start time + randomly time` or `the bookie start time - randomly time`
   
   
   


-- 
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@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] different bookies do not trigger gcOverreplicatedLedger at the same time [bookkeeper]

Posted by "TakaHiR07 (via GitHub)" <gi...@apache.org>.
TakaHiR07 commented on PR #4314:
URL: https://github.com/apache/bookkeeper/pull/4314#issuecomment-2078780695

   > Thanks for your contribution. I have triggered the CI. BTW, how many bookies do you maintain?
   
   The largest cluster contains 400+ bookies.
   ![image](https://github.com/apache/bookkeeper/assets/13505225/92a8b0d1-9879-49e0-ac77-11107d197db0)
   


-- 
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@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] different bookies do not trigger gcOverreplicatedLedger at the same time [bookkeeper]

Posted by "TakaHiR07 (via GitHub)" <gi...@apache.org>.
TakaHiR07 commented on PR #4314:
URL: https://github.com/apache/bookkeeper/pull/4314#issuecomment-2102292256

   Have fixed the test. Can you trigger CI again, thx. @shoothzj @hangc0276 @jiazhai 


-- 
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@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [improve] different bookies do not trigger gcOverreplicatedLedger at the same time [bookkeeper]

Posted by "shoothzj (via GitHub)" <gi...@apache.org>.
shoothzj commented on PR #4314:
URL: https://github.com/apache/bookkeeper/pull/4314#issuecomment-2078776227

   Thanks for your contribution. I have triggered the CI. BTW, how many bookies do you maintain?


-- 
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@bookkeeper.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org