-
Notifications
You must be signed in to change notification settings - Fork 673
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
MF - 1758 - Sync With Benchmark Testing #1912
Conversation
85f90e5
to
bbd56f8
Compare
f667c72
to
6909e73
Compare
55f52a8
to
036fff7
Compare
docker/.env
Outdated
|
||
## Call home | ||
MF_SEND_TELEMETRY=true | ||
|
||
## Postgres | ||
MF_POSTGRES_MAX_CONNECTIONS=100000 |
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 we should have 100,000 connections by default ?
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.
Reduced to 100 i.e default
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.
Expect POSTGRES_MAX_CONNECTIONS
limit everything look good.
Some thing can we have like this below
In .env
-- MF_POSTGRES_MAX_CONNECTIONS=100
In docker-compose.yaml
-- MF_POSTGRES_MAX_CONNECTIONS: ${MF_POSTGRES_MAX_CONNECTIONS}
++ MF_POSTGRES_MAX_CONNECTIONS: ${MF_POSTGRES_MAX_CONNECTIONS:-100}}
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.
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.
LGTM
This adds a new environment variable `MF_JAEGER_TRACE_RATIO` to the `docker/.env` file. The variable is used to set the ratio of requests traced. Additionally, this commit also adds a new environment variable `MF_POSTGRES_MAX_CONNECTIONS` for configuring the maximum number of connections for the Postgres database. These changes are made to enhance the configuration and scalability of the core services. Signed-off-by: Rodney Osodo <[email protected]>
Signed-off-by: rodneyosodo <[email protected]>
Signed-off-by: rodneyosodo <[email protected]>
297d99a
to
ce45014
Compare
What does this do?
MF_JAEGER_TRACE_RATIO
i.e. don't always trace every request. 1.0 means always sample while 0.0 means never sample. This has proven useful for benchmark testing as when the ratio is 1.0 the Jaeger container uses a lot of memoryMF_POSTGRES_MAX_CONNECTIONS
. This is to increase the connected clients to Postgres i.e. previously a max of 100 clients was not ideal for testingWhich issue(s) does this PR fix/relate to?
Related to #1758
List any changes that modify/break current functionality
None
Have you included tests for your changes?
No
Did you document any new/modified functionality?
No
Notes
Linked with absmach/benchmark#10