-
Notifications
You must be signed in to change notification settings - Fork 37
Conversation
Allow override of POOL_LIMIT on a per service basis
Adjust most limits down
Adjust task-runner limit up to 10
Fixes #2157
Signed-off-by: Nathaniel Clark <nclark@whamcloud.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small nit on comment spelling, otherwise LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like rust check is failing
Signed-off-by: Nathaniel Clark <nclark@whamcloud.com>
Signed-off-by: Joe Grund <jgrund@whamcloud.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seeing this during testing:
iml_ntp.1.i9q1wco2pxzr@ai400-0a9c-vm00 | thread 'main' panicked at 'POOL_LIMIT environment variable is required.', iml-manager-env/src/lib.rs:28:39
iml_ntp.1.bjst8ft5dg8q@ai400-0a9c-vm00 | Starting dependency check
In get_pool_limit
, use env::var
instead of get_var
. get_var
will panic if it can't find the variable
Signed-off-by: Nathaniel Clark <nclark@whamcloud.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it's inconsistently pool_limit or default_pool_limit in various places.
My point about the naming was mostly avoiding comments by using appropriate names :)
use std::pin::Pin; | ||
use warp::Filter as _; | ||
|
||
// Default pool limit if not overridden by POOL_LIMIT | ||
lazy_static! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why lazy_static?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it's only eval'd once, and this allows it to be used inside the async move
without passing in as an extra filter.
I've tested this on google cloud with 65 mounted clients and 66 servers. All fids were processed and active_clients were empty afterwards
|
Allow override of POOL_LIMIT on a per service basis
Adjust most limits down
Adjust task-runner limit up to 10
Fixes #2157
Signed-off-by: Nathaniel Clark nclark@whamcloud.com
This change is