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

Reduce the Default Pool Size for the Schema Generator #841 #842

Merged
merged 3 commits into from
Mar 24, 2020
Merged

Conversation

prb112
Copy link
Contributor

@prb112 prb112 commented Mar 24, 2020

Signed-off-by: Paul Bastide pbastide@us.ibm.com

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
@prb112 prb112 added this to the Sprint 10 milestone Mar 24, 2020
Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
// Standard connection/thread pool size
public static final int DEFAULT_POOL_SIZE = 80;
Copy link
Contributor

Choose a reason for hiding this comment

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

As I remember, when updateschema, we can only set the poolsize to 1, but we don't have to set it for the other operations. not sure if the other operations are using the pool or not, if they are using, will this change make the other operations slower?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you can always chose to up to 80.
it may make them sequential, and avoid the resource contention from a higher number.

I personally want lower than 8, but 8 is what Lee and I thought made sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

my point is that this change could make us have to set pool size for every other operations, the current setting only makes us have to set it for maybe only one operation ... but anyway, I'm fine with the change. we can always set the pool size as parameter if need to.

Copy link
Contributor

Choose a reason for hiding this comment

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

or if the pool is only used by updateschema, then maybe we should make it even smaller... :) double checking the codes now ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's essentially used in the PoolConnectionProvider (underneath)

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
Copy link
Contributor

@albertwang-ibm albertwang-ibm left a comment

Choose a reason for hiding this comment

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

LGTM

@prb112 prb112 merged commit 04110ec into master Mar 24, 2020
@prb112 prb112 deleted the issue-841 branch March 24, 2020 14:49
ccorley pushed a commit to ccorley/FHIR that referenced this pull request Apr 21, 2020
 (LinuxForHealth#842)

* Reduce the Default Pool Size for the Schema Generator LinuxForHealth#841

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>

* Reduce the Default Pool Size for the Schema Generator LinuxForHealth#841


Signed-off-by: Paul Bastide <pbastide@us.ibm.com>

* Reduce the Default Pool Size for the Schema Generator LinuxForHealth#841

Signed-off-by: Paul Bastide <pbastide@us.ibm.com>
Signed-off-by: ccorley <ccorley@us.ibm.com>
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.

2 participants