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

RNTBDChannelPool design notes #15315

Merged
merged 5 commits into from
Sep 21, 2020
Merged

Conversation

kirankumarkolli
Copy link
Member

RNTBDChannelPool design notes

@@ -131,7 +169,7 @@
Comparator.comparingLong((task) -> task.originalPromise.getExpiryTimeInNanos()));

private final ScheduledFuture<?> pendingAcquisitionExpirationFuture;

Copy link
Member Author

Choose a reason for hiding this comment

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

Guess these are IntelliJ style default style changes.

Please help on how to use the common style.

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

Let's go over the comments in person

@FabianMeiswinkel
Copy link
Member

Let's go over the comments in person

Talked over the comments in-person. Latest version LGTM

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

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

LGTM now

* - max requests in-flight per channelPool: MAX_CHANNELS_PER_ENDPOINT * MAX_REQUESTS_ENDPOINT (NOT A GUARANTEE)
* - AvailableChannels.size() + AcquiredChannels.size() <= MAX_CHANNELS_PER_ENDPOINT
* - PendingAcquisition queue default-size: Max(10_000, MAX_CHANNELS_PER_ENDPOINT * MAX_REQUESTS_ENDPOINT)
* - ChannelPool executor event-loop task queue length: MAX_CHANNELS_PER_ENDPOINT * MAX_REQUESTS_ENDPOINT + newInFlightAcquisitions (not yet in pendingAcquisitionQueue)
Copy link
Contributor

Choose a reason for hiding this comment

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

how did we come up with the math?
I might be missing something not sure on the accuracy of this one, could you please validate?

Copy link
Member Author

Choose a reason for hiding this comment

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

Closed it offline.

@kirankumarkolli
Copy link
Member Author

/check-enforcer override

@kirankumarkolli kirankumarkolli merged commit 7faea58 into master Sep 21, 2020
@kirankumarkolli kirankumarkolli deleted the users/kirankk/rntbd_design_notes branch September 21, 2020 20:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants