CHECK/RESET Stub Cache

description

Check Stub Cache

  1. Check whether the connection cache is available
  2. Description: Check whether the connection cache is available, the maximum load is 10M
  3. METHOD: GET
  4. URI: http://be_host:be_http_port/api/check_rpc_channel/{host_to_check}/{remot_brpc_port}/{payload_size}

Reset Stub Cache

  1. This api is used to reset the connection cache of brpc. Endpoints can be in the form of `all` to clear all caches, `host1:port1,host2:port2,...`: clear to the cache of the specified target
  2. Description: Reset connection cache
  3. METHOD: GET
  4. URI: http://be_host:be_http_port/api/reset_rpc_channel/{endpoints}

example

  1. curl -X GET "http://host:port/api/check_rpc_channel/host2/8060/1024000"
  2. curl -X GET "http://host:port/api/reset_rpc_channel/all"