# 数据库连接配置
# Database connection configuration

# MySQL 连接参数
mysql:
  host: "localhost"
  port: 3306
  user: "root"
  password: "your_password"
  database: "robot_config"
  charset: "utf8mb4"

  # 连接池配置
  pool:
    min_size: 1
    max_size: 5
    max_overflow: 10
    pool_timeout: 30
    pool_recycle: 3600

  # 重连配置
  reconnect:
    max_attempts: 5
    retry_interval: 5  # 秒

# 配置刷新策略
refresh:
  enabled: true
  interval_seconds: 1  # 定时刷新间隔

# Fallback 配置 (当 MySQL 不可用时使用)
fallback:
  enabled: true
  use_yaml_fallback: true

# Topic 发布配置
publish:
  topic_name: "/ai/config"
  qos_depth: 10

