【问题标题】:Python gRpc GetTopChannels returns empty channelsPython gRpc GetTopChannels 返回空通道
【发布时间】:2020-09-27 11:24:06
【问题描述】:

我使用channelz调试我的gRpc服务,但我总是发现GetTopChannels返回空。

环境

  • Linux 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux
  • Python gRpc 1.27.2
  • Python 3.7.3

我已经尝试过https://github.com/grpc/grpc/blob/master/examples/python/debug/debug_server.py 中的官方演示,并使用evans 进行gRpc 调用。在响应中,只有{“end”: true} 返回。但其他方法是有效的,例如GetServerSockets

【问题讨论】:

  • 我将 gRpc 升级到 1.29.0,但它也不起作用。我的使用有什么问题吗?

标签: python python-3.x grpc grpc-python


【解决方案1】:

我误解了这个概念。 channelz 中的频道指的是“客户端”。

【讨论】:

    猜你喜欢
    • 2021-10-19
    • 1970-01-01
    • 2021-11-25
    • 2021-03-11
    • 2018-08-20
    • 2020-04-08
    • 2021-09-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多