weiwenhai 7 years ago
parent
commit
30d1f72e48

+ 14 - 7
examcloud-core-questions-starter/src/main/resources/application-prod.properties

@@ -1,9 +1,9 @@
 #spring.data.mongodb.uri=mongodb://root:Qmth87863577@119.23.127.95:3717/?authSource=admin&authMechanism=SCRAM-SHA-1
-spring.data.mongodb.uri=mongodb://root:Qmth87863577@dds-wz93958e4b3d8b142.mongodb.rds.aliyuncs.com:3717/?authSource=admin&authMechanism=SCRAM-SHA-1
+#spring.data.mongodb.uri=mongodb://root:Qmth87863577@dds-wz93958e4b3d8b142.mongodb.rds.aliyuncs.com:3717/?authSource=admin&authMechanism=SCRAM-SHA-1
 spring.data.mongodb.database=comm-ques-bank
 spring.data.mongodb.grid-fs-database=comm-ques-bank
-mongo
-eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/
+#mongo
+#eureka.client.serviceUrl.defaultZone=http://localhost:1111/eureka/
 hystrix.command.default.execution.timeout.enabled=false
 hystrix.threadpool.default.coreSize = 500
 spring.application.name=ExamCloud-service-question
@@ -11,7 +11,7 @@ spring.application.name=ExamCloud-service-question
 spring.redis.host=r-wz97e520d2701e54.redis.rds.aliyuncs.com
 spring.redis.port=6379
 spring.redis.password=Qmth87863577
-spring.redis.pool.max-active=200
+#spring.redis.pool.max-active=200
 
 upyun.bucketName=exam-cloud-test
 upyun.userName=examcloud
@@ -25,7 +25,7 @@ upyun.zipDirectory=paperZipDirectory
 upyun.radioType=mp3
 
 
-spring.datasource.url=jdbc:mysql://qmthmysql.mysql.rds.aliyuncs.com:3306/exam_cloud?useUnicode=true&characterEncoding=UTF-8
+spring.datasource.url=jdbc:mysql://rds7b2sll8un5kz99s0i122.mysql.rds.aliyuncs.com:3306/exam_cloud?useUnicode=true&characterEncoding=UTF-8
 spring.datasource.username=exam_cloud
 spring.datasource.password=examcloud123!@#
 spring.datasource.validation-query=SELECT 1 FROM DUAL
@@ -35,8 +35,15 @@ spring.jpa.show-sql=false
 spring.jpa.hibernate.ddl-auto=update
 
 
-spring.rabbitmq.host=localhost
+
 spring.rabbitmq.port=5672
 spring.rabbitmq.username=examcloud
 spring.rabbitmq.password=examcloud123
-spring.rabbitmq.listener.acknowledgeMode=MANUAL
+spring.rabbitmq.listener.acknowledgeMode=MANUAL
+
+server.tomcat.max-threads=2000
+eureka.client.serviceUrl.defaultZone=http://192.168.1.70:1111/eureka/
+spring.rabbitmq.host=192.168.1.70 
+spring.redis.pool.max-active=2000
+spring.datasource.tomcat.max-active=100
+spring.data.mongodb.uri=mongodb://root:Qmth87863577@dds-wz93958e4b3d8b141100.mongodb.rds.aliyuncs.com:3717/?authSource=admin&authMechanism=SCRAM-SHA-1&replicaSet=mgset-2892097&maxPoolSize=200