Defoo Li

Results 5 issues of Defoo Li

# 支持子set的路由功能 ## 使用场景 - 在开发、测试等环境场景下,如果使用一个set部署一套完整的环境,在服务数量多时部署和维护成本都较高,最好可以根据需要只部署特定的服务,没有部署的服务会路由到对应的基线环境。 - 在生产环境中,可以实现蓝绿发布/金丝雀发布。 ## 实现思路 - 在tars中节点路由配置中,增加子set维度 - 在客户端请求时,先从透传参数(status)获取子set参数,如果有则优先使用子set的节点,否则使用默认子set的节点 - 优先修改Tars Go版本的代码,支持其他语言后续再支持 - TarsGateway支持按请求参数/header/cookie配置对应的子set规则 ## 相关引用 [Tars选择节点](https://github.com/TarsCloud/TarsGo/blob/master/tars/endpointmanager.go#L279) [TarsGateway](https://github.com/TarsCloud/TarsGateway)

enhancement

Draft1: Support streaming api like this: https://grpc.io/docs/languages/go/basics/#server-side-streaming-rpc。 ## proto.tars: ``` module ServerTest { interface RPCServant { // RPC API string Echo(string in); }; stream PushServant { // Stream API string...

### What did this pull request do? Print SQL in AutoMigrate with DryRun option. ### User Case Description As mentioned in #3545.

能否基于https://github.com/TarsCloud/K8STARS 部署在k8s上呢?

The log message `Started logging: stderr from function` appears with each request, but it doesn’t seem necessary. Would it be possible to remove it? Relevant code: https://github.com/openfaas/of-watchdog/blob/master/executor/logging.go#L14