logger.Fatal("Database DNS scan interval seconds must be > 0",zap.Int("database.dns_scan_interval_sec",config.GetDatabase().DnsScanIntervalSec))
}
ifconfig.GetRuntime().GetLuaMinCount()<0{
logger.Fatal("Minimum Lua runtime instance count must be >= 0",zap.Int("runtime.lua_min_count",config.GetRuntime().GetLuaMinCount()))
}
@@ -693,6 +696,7 @@ type DatabaseConfig struct {
ConnMaxLifetimeMsint`yaml:"conn_max_lifetime_ms" json:"conn_max_lifetime_ms" usage:"Time in milliseconds to reuse a database connection before the connection is killed and a new one is created. Default 3600000 (1 hour)."`
MaxOpenConnsint`yaml:"max_open_conns" json:"max_open_conns" usage:"Maximum number of allowed open connections to the database. Default 100."`
MaxIdleConnsint`yaml:"max_idle_conns" json:"max_idle_conns" usage:"Maximum number of allowed open but unused connections to the database. Default 100."`
DnsScanIntervalSecint`yaml:"dns_scan_interval_sec" json:"dns_scan_interval_sec" usage:"Number of seconds between scans looking for DNS resolution changes for the database hostname. Default 60."`
}
// NewDatabaseConfig creates a new DatabaseConfig struct.