|
@@ -1,7 +1,7 @@
|
|
|
oms.env=DAILY
|
|
|
logging.config=classpath:logback-dev.xml
|
|
|
|
|
|
-####### 外部数据库配置(需要用户更改为自己的数据库配置) #######
|
|
|
+####### Database properties(Configure according to the the environment) #######
|
|
|
spring.datasource.core.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
spring.datasource.core.jdbc-url=jdbc:mysql://localhost:3306/powerjob-daily?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
|
|
|
spring.datasource.core.username=root
|
|
@@ -9,11 +9,12 @@ spring.datasource.core.password=No1Bug2Please3!
|
|
|
spring.datasource.core.hikari.maximum-pool-size=20
|
|
|
spring.datasource.core.hikari.minimum-idle=5
|
|
|
|
|
|
-####### mongoDB配置,非核心依赖,通过配置 oms.mongodb.enable=false 来关闭 #######
|
|
|
+####### MongoDB properties(Non-core configuration properties) #######
|
|
|
+####### configure oms.mongodb.enable=false to disable mongodb #######
|
|
|
oms.mongodb.enable=true
|
|
|
spring.data.mongodb.uri=mongodb+srv://zqq:No1Bug2Please3!@cluster0.wie54.gcp.mongodb.net/powerjob_daily?retryWrites=true&w=majority
|
|
|
|
|
|
-####### 邮件配置(不需要邮件报警可以删除以下配置来避免报错) #######
|
|
|
+####### Email properties(Comment out the mail properties if you do not have needs) #######
|
|
|
spring.mail.host=smtp.163.com
|
|
|
spring.mail.username=zqq@163.com
|
|
|
spring.mail.password=GOFZPNARMVKCGONV
|
|
@@ -21,18 +22,19 @@ spring.mail.properties.mail.smtp.auth=true
|
|
|
spring.mail.properties.mail.smtp.starttls.enable=true
|
|
|
spring.mail.properties.mail.smtp.starttls.required=true
|
|
|
|
|
|
-####### 钉钉报警配置(不需要钉钉报警可以删除以下配置来避免报错) #######
|
|
|
+####### DingTalk properties(Comment out the DingTalk properties if you do not have needs) #######
|
|
|
oms.alarm.ding.app-key=dingauqwkvxxnqskknfv
|
|
|
oms.alarm.ding.app-secret=XWrEPdAZMPgJeFtHuL0LH73LRj-74umF2_0BFcoXMfvnX0pCQvt0rpb1JOJU_HLl
|
|
|
oms.alarm.ding.agent-id=847044348
|
|
|
|
|
|
-####### 资源清理配置 #######
|
|
|
+####### Resource cleaning properties #######
|
|
|
oms.instanceinfo.retention=1
|
|
|
oms.container.retention.local=1
|
|
|
oms.container.retention.remote=-1
|
|
|
|
|
|
-####### 缓存配置 #######
|
|
|
+####### Cache properties #######
|
|
|
oms.instance.metadata.cache.size=1024
|
|
|
|
|
|
-####### 精确获取 server 的百分比,0~100,100代表每次 worker 获取 server 都会进行完整的探活流程,不存在脑裂问题,但有性能开销 #######
|
|
|
+####### Threshold in fetching server(0~100). 100 means full detection of server, in which #######
|
|
|
+####### split-brain could be avoided while performance overhead would increase. #######
|
|
|
oms.accurate.select.server.percentage = 50
|