作者 yangfu

1.修改环境变量

... ... @@ -79,6 +79,8 @@ spec:
configMapKeyRef:
name: suplus-config
key: mysql.password
- name: MYSQL_DB_NAME
value: "mmm_open"
- name: RUN_MODE
value: "prod"
- name: LOG_LEVEL
... ...
... ... @@ -15,6 +15,7 @@ func init() {
log.Error(fmt.Sprintf("【MYSQL】注册数据库失败:%v source:%v", err, constant.MYSQL_DATA_SOURCE))
return
}
log.Debug(fmt.Sprintf("【MYSQL】注册数据库:%v", constant.MYSQL_DATA_SOURCE))
orm.SetMaxIdleConns(aliasName, constant.MYSQL_MAX_IDLE)
orm.SetMaxOpenConns(aliasName, constant.MYSQL_MAX_OPEN)
}
... ...