42 lines
750 B
YAML
42 lines
750 B
YAML
app:
|
|
name: chatappgateway
|
|
env: local
|
|
http_addr: ":8080"
|
|
shutdown_timeout: 10s
|
|
|
|
registry:
|
|
enabled: false
|
|
provider: ""
|
|
endpoint: ""
|
|
service_name: "chatappgateway"
|
|
instance_id: ""
|
|
register_timeout: 3s
|
|
deregister_timeout: 5s
|
|
|
|
# /ready 会使用这些 gRPC 依赖做接流量前检查。
|
|
grpc:
|
|
user:
|
|
targets:
|
|
- "127.0.0.1:9001"
|
|
timeout: 3s
|
|
retry:
|
|
max_attempts: 2
|
|
backoff: 200ms
|
|
circuit_breaker:
|
|
failure_threshold: 3
|
|
open_timeout: 10s
|
|
health_cache:
|
|
ttl: 2s
|
|
pay:
|
|
targets:
|
|
- "127.0.0.1:9002"
|
|
timeout: 3s
|
|
retry:
|
|
max_attempts: 2
|
|
backoff: 200ms
|
|
circuit_breaker:
|
|
failure_threshold: 3
|
|
open_timeout: 10s
|
|
health_cache:
|
|
ttl: 2s
|