alluxio-rpc调用概述(1)

alluxio中几种角色以及角色之间的rpc调用:

作为分布式架构的文件缓存系统,rpc调用必不可少

不同版本alluxio,rpc方式的变化

在不断的迭代更新中,rpc调用方式也发生了变化:

1.4版本:采用thrift作为rpc的手段

1.8版本:采用thrift和netty作为rpc的手段

2.0版本:采用grpc和netty作为rpc的手段

 

(1.8版本)client和worker之间rpc调用的交互流程

 

通过抓包分析,也可以粗略的看到各种rpc调用

 thrift调用:

抓取方法:(比较笨的方法,过滤掉用无用的心跳包)

thrift  and tcp.len ne 90 and tcp.len ne 2423 and tcp.len ne 60  and tcp.len ne 116 and tcp.len ne 45 and tcp.len ne 67 and tcp.len ne 54 and tcp.len ne 37 and tcp.len ne 2566
上传
 
 
 
读取
 
 
 
删除
 
 
创建文件夹
 
删除文件夹
 

netty调用(Short circuit):

抓取方法:

 tcp.port eq 29999

netty调用(纯网络传输):

alluxio.user.short.circuit.enabled=false

抓取方法:

 tcp.port eq 29999
上传
 
 
 
读取

猜你喜欢

转载自www.cnblogs.com/victor2302/p/10490253.html