hyapp-server/services/lucky-gift-service/configs/config.tencent.example.yaml

33 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

service_name: lucky-gift-service
node_id: lucky-gift-prod-REPLACE_NODE
environment: prod
log:
level: info
format: json
include_request_body: false
include_response_body: false
max_payload_bytes: 2048
grpc_addr: ":13013"
health_http_addr: ":13113"
# 生产必须指向幸运礼物 owner 库;迁移期间允许和 activity 共用同一个 MySQL 实例,但库名不能再写 hyapp_activity。
# loc=UTC 是跨服务时间边界,抽奖窗口、统计日和 outbox retry 都依赖 UTC epoch ms。
mysql_dsn: "LUCKY_GIFT_DB_USER:LUCKY_GIFT_DB_PASSWORD@tcp(TENCENT_CDB_HOST:3306)/hyapp_lucky_gift?parseTime=true&charset=utf8mb4&loc=UTC"
mysql_auto_migrate: false
# 中奖入账仍由 wallet-service 负责lucky-gift-service 只持有抽奖事实和待补偿 outbox。
wallet_service_addr: "wallet-service.internal:13004"
lucky_gift_worker:
enabled: true
worker_poll_interval: "1s"
worker_batch_size: 100
worker_concurrency: 8
worker_lock_ttl: "30s"
worker_max_retry: 8
publish_timeout: "5s"
stats_refresh_interval: "10m"
stats_batch_size: 5000