Similarityoung commented on PR #688:
URL: https://github.com/apache/dubbo-go-pixiu/pull/688#issuecomment-3016353234
> If I want to test you implemention in the test case in
`dubbo-go-pixiu-samples/grpc` Is my conf.yaml correct?
>
> ```yaml
> static_resources:
> listeners:
> - name: "grpc"
> protocol_type: "GRPC"
> address:
> socket_address:
> address: "0.0.0.0"
> port: 8881
> filter_chains:
> filters:
> - name: dgp.filter.grpcconnectionmanager
> config:
> route_config:
> routes:
> - match:
> prefix: "/provider.UserProvider/"
> route:
> cluster: "test-grpc"
> cluster_not_found_response_code: 505
> http_filters:
> - name: dgp.filter.grpc.proxy
> config:
> idle_timeout: 5s
> read_timeout: 5s
> write_timeout: 5s
> clusters:
> - name: "test-grpc"
> lb_policy: "RoundRobin"
> endpoints:
> - socket_address:
> address: 127.0.0.1
> port: 50001
> protocol_type: "GRPC"
> shutdown_config:
> timeout: "60s"
> step_timeout: "10s"
> reject_policy: "immediacy"
> ```
my sample conf is
```yml
static_resources:
listeners:
- name: "grpc"
protocol_type: "GRPC"
# protocol_type: "HTTP2"
address:
socket_address:
address: "0.0.0.0"
port: 8881
filter_chains:
filters:
- name: dgp.filter.network.grpcproxy
# - name: dgp.filter.grpcconnectionmanager
config:
route_config:
routes:
- match:
prefix: "/routeguide.RouteGuide/"
route:
cluster: "test-grpc"
cluster_not_found_response_code: 404
grpc_filters:
- name: dgp.filter.grpc.proxy
config:
idle_timeout: 5s
read_timeout: 5s
write_timeout: 5s
clusters:
- name: "test-grpc"
lb_policy: "RoundRobin"
endpoints:
- socket_address:
address: 127.0.0.1
port: 50051
protocol_type: "GRPC"
shutdown_config:
timeout: "60s"
step_timeout: "10s"
reject_policy: "immediacy"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]