Skip to content
This repository was archived by the owner on Oct 13, 2024. It is now read-only.

[SCB-1593] Use Netty native transport improve performance#593

Merged
WillemJiang merged 9 commits intoapache:masterfrom
coolbeevip:SCB-1593
Nov 15, 2019
Merged

[SCB-1593] Use Netty native transport improve performance#593
WillemJiang merged 9 commits intoapache:masterfrom
coolbeevip:SCB-1593

Conversation

@coolbeevip
Copy link
Member

No description provided.

private String clientCert;

@Value("${alpha.feature.native:false}")
private boolean nettyTransport;
Copy link
Member

Choose a reason for hiding this comment

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

How about Rename the configuration setting to nativetransport.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

private Class<? extends ServerChannel> selectorServerChannel() {
Class<? extends ServerChannel> channel = NioServerSocketChannel.class;
if (serverConfig.isNettyTransport()) {
if (OSInfo.isLinux()) {
Copy link
Member

Choose a reason for hiding this comment

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

It's better to add some Info log to tell user which kind of ServerSocketChannel that Alpha choices.

Copy link
Member Author

Choose a reason for hiding this comment

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

I have marked the location of the log output below.

Copy link
Member

Choose a reason for hiding this comment

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

OK, I missed it.

channel = KQueueServerSocketChannel.class;
}
}
LOG.info("Netty channel type is " + channel.getSimpleName());
Copy link
Member Author

Choose a reason for hiding this comment

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

Hi, I'm here

group = new KQueueEventLoopGroup(nThreads);
}
}
LOG.info("Netty event loop group is " + group.getClass().getSimpleName());
Copy link
Member Author

Choose a reason for hiding this comment

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

I'm logger

@@ -56,7 +56,7 @@ public class GrpcServerConfig {
private String clientCert;

@Value("${alpha.feature.native:false}")
Copy link
Member

Choose a reason for hiding this comment

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

We also need to update this part.

Copy link
Member Author

Choose a reason for hiding this comment

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

done

# limitations under the License.

ciphers = ECDHE-RSA-AES128-GCM-SHA256,ECDHE-RSA-AES256-GCM-SHA384,ECDHE-ECDSA-AES128-SHA256
ciphers = ECDHE-RSA-AES128-GCM-SHA256,ECDHE-RSA-AES256-GCM-SHA384
Copy link
Member

Choose a reason for hiding this comment

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

It's better to add a link of the context why do we remove the cipher to help others trace the issue.

Copy link
Member Author

Choose a reason for hiding this comment

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

I added the link in the comment of the commit. Do I still need to explain it in the source file?

@coveralls
Copy link

coveralls commented Nov 15, 2019

Coverage Status

Coverage decreased (-0.2%) to 80.441% when pulling ce31caa on coolbeevip:SCB-1593 into 094d973 on apache:master.

@zhfeng zhfeng self-requested a review November 15, 2019 11:19
@WillemJiang WillemJiang merged commit 2554be3 into apache:master Nov 15, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants