chatapp-gateway/config/local.yaml
2026-04-06 17:08:51 +08:00

33 lines
593 B
YAML

app:
name: chatappgateway
env: local
http_addr: ":8080"
shutdown_timeout: 10s
# /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