-
Notifications
You must be signed in to change notification settings - Fork 43
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
Enable users to set the gRPC max message size #65
Enable users to set the gRPC max message size #65
Conversation
doc/installation.md
Outdated
@@ -36,6 +36,10 @@ You can override any configuration values with `-D` option. | |||
To change the http(default 8080) and grpc(default 8080) ports used by Collector, you can change the settings below. | |||
- `-Darmeria.port`: http, grpc uses 8080 by default | |||
|
|||
To change the default value of 10MB for the max message size of gRPC in Collector, change the setting below. |
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.
To change the default value of 10MB for the max message size of gRPC in Collector, change the setting below. | |
To change the the max message size of gRPC in Collector, change the setting below. |
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.
fixed it in 755bb3d
doc/installation.md
Outdated
@@ -174,6 +178,10 @@ packages=com.navercorp | |||
|
|||
- Setting up the agent via `-javaagent:path/to/scavenger-agent.jar` | |||
- Specify the config file via `-Dscavenger.configuration=path/to/scavenger.conf` | |||
- To change the default value of 10MB for the max message size of gRPC in agent, change the setting below. |
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.
- To change the default value of 10MB for the max message size of gRPC in agent, change the setting below. | |
- To change the max message size of gRPC in agent, change the setting below. |
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.
fixed it in 755bb3d
doc/installation.md
Outdated
- To change the default value of 10MB for the max message size of gRPC in agent, change the setting below. | ||
- `-Dscavenger.max-message-size` | ||
- Supports `B`, `KB`, `MB`, `GB`, and `TB` units. | ||
> **We recommend tuning your codeBase configuration before changing `scavenger.max-message-size`.** |
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.
> **We recommend tuning your codeBase configuration before changing `scavenger.max-message-size`.** | |
> **We recommend tuning your codeBase configuration for minimizing tracing ranges before changing `scavenger.max-message-size`.** |
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.
fixed it in 755bb3d
@@ -66,10 +75,11 @@ private void createNewChannelIfShutdown() { | |||
if (channel == null || channel.isShutdown()) { | |||
log.fine("[scavenger] creating new grpc channel"); | |||
try { | |||
channel = createChannel(); | |||
int maxMessageSize = System.getProperty(MAX_MESSAGE_SIZE_CONFIG) != null ? maxMessageSize() : DEFAULT_MAX_MESSAGE_SIZE; |
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.
Isn't it better to implement System.getProperty(MAX_MESSAGE_SIZE_CONFIG) != null ? maxMessageSize() : DEFAULT_MAX_MESSAGE_SIZE;
in maxMessageSize()?
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.
fixed it in 755bb3d
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.
int maxMessageSize = maxMessageSize()
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.
oh... i missed it... ammend in 6722455
doc/installation.md
Outdated
@@ -36,6 +36,10 @@ You can override any configuration values with `-D` option. | |||
To change the http(default 8080) and grpc(default 8080) ports used by Collector, you can change the settings below. | |||
- `-Darmeria.port`: http, grpc uses 8080 by default | |||
|
|||
To change the the max message size of gRPC in Collector, change the setting below. |
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.
To change the the max message size of gRPC in Collector, change the setting below. | |
To change the max message size of gRPC in Collector, change the setting below. |
755bb3d
to
6722455
Compare
6722455
to
8c4b080
Compare
resolved: #64