我在用 Alluxio 2.0加速计算层的性能。
Alluxio
当没有执行任何查询时,我发现有关于verbose的 netty 附加到 $Alluxio_home/logs/master.log .
netty
$Alluxio_home/logs/master.log
2019-11-25 10:26:32,141 DEBUG NettyServerHandler - {} {} HEADERS: streamId={} headers={} streamDependency={} weight={} exclusive={} padding={} endStream={} 2019-11-25 10:26:32,141 DEBUG NettyServerHandler - {} {} DATA: streamId={} padding={} endStream={} length={} bytes={}
以上数十条信息已发送至 master.log 每一秒。 这是正常行为吗?如果确定,它是用来做什么的?对于大量的组件?
master.log
我找到了根本原因,把这条线索留给可能遇到同样问题的人。
这个 Alluxio 正在使用 gRPC 作为其RPC框架,后者是基于 netty ,详细的输出实际上来自 内蒂 检查 this thread 详细信息。
gRPC
内蒂
要禁用Alluxio端的详细输出,请将下面的语句添加到 $Alluxio_home/conf/alluxio-site.properties :
$Alluxio_home/conf/alluxio-site.properties
log4j.logger.io.grpc.netty.NettyServerHandler=OFF
请注意,修改 log4j.rootLogger 属于 alluxio-propeties 无法禁用此详细输出。
log4j.rootLogger
alluxio-propeties