Suhas Athani has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1241403?usp=email )
Change subject: gRPC: Add gRPC client I/O show stats APIs for NFS v3/v4.x
......................................................................
gRPC: Add gRPC client I/O show stats APIs for NFS v3/v4.x
- Add a new cltmgrService.proto for client manager stats RPCs mirroring
D-Bus cltmgr_show_v3_io, cltmgr_show_v40_io, cltmgr_show_v41_io, and
cltmgr_show_v42_io.
- Add shared protobuf messages for client IP requests, status, timestamps,
and read/write I/O stats.
- Implement gRPC handlers that reuse the existing client manager and
server stats data paths while keeping C++ gRPC code isolated from
D-Bus/private C headers.
New RPCs:
cltmgrService.ClientStats/GetNFSv3IO
cltmgrService.ClientStats/GetNFSv40IO
cltmgrService.ClientStats/GetNFSv41IO
cltmgrService.ClientStats/GetNFSv42IO
- Each RPC accepts a client IP address and returns status, timestamp,
read stats, and write stats.
- Error handling matches D-Bus behavior via response status fields,
while transport-level gRPC status remains OK.
Change-Id: Iaddba09713befc6069a7b4b55d71a31f6d704f0d
Signed-off-by: Suhas Athani <Suhas.Athani(a)ibm.com>
---
M src/grpc_server/GrpcServer.cc
M src/grpc_server/GrpcServer.h
M src/grpc_server/nfsService.h
M src/grpc_server/nfsServiceServer.cc
A src/grpc_server/proto/cltmgrService.proto
M src/grpc_server/proto/nfsProtoUtil.proto
A src/include/server_stats_grpc.h
M src/support/client_mgr.c
M src/support/server_stats.c
9 files changed, 652 insertions(+), 0 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/03/1241403/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/1241403?usp=email
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Iaddba09713befc6069a7b4b55d71a31f6d704f0d
Gerrit-Change-Number: 1241403
Gerrit-PatchSet: 1
Gerrit-Owner: Suhas Athani <Suhas.Athani(a)ibm.com>