[RFC] Database governance-BadConnectionEvictionRule CRD for database connection pool | 数据库治理-异常连接剔除 #18
Labels
area/database-governance
Category issues or PRs related to database governance
kind/spec-RFC
Issues or PRs for OpenSergo spec RFC
domain: database
Umbrella issue: #15
BadConnectionEvictionRule
defines how to handle the "bad" connections in the database connection pool.(English version TBD...)
BadConnectionEvictionRule
定义了数据库连接池中针对异常连接的处理规则,其中连接“异常”的判断、处理条件与行为均在该规则中定义:以下 YAML 描述了一个异常连接处理规则。该规则将错误码为 1040, 1042, 1043, 1047 的 SQL 访问,以及
com.mysql.jdbc.CommunicationsException
异常类型定义为“异常”;连接的驱逐条件为该连接中出现任意上述错误码或异常;驱逐动作为将该连接剔除后替换为新的连接。YAML 示例:The text was updated successfully, but these errors were encountered: