浏览代码

Merge branch '2.1.x'

mlnicolas 8 年之前
父节点
当前提交
48397ccd0a

+ 1 - 1
application-dev2.yml

@@ -2,7 +2,7 @@ spring:
   rabbitmq:
   rabbitmq:
     host: rabbitmq.marathon.l4lb.thisdcos.directory
     host: rabbitmq.marathon.l4lb.thisdcos.directory
   redis:
   redis:
-    host: redis.marathon.l4lb.thisdcos.directory
+    host: redis.marathon.mesos
   datasource:
   datasource:
     driverClassName: org.postgresql.Driver
     driverClassName: org.postgresql.Driver
 
 

+ 0 - 1
crss-admin/crss-admin.yml

@@ -1,7 +1,6 @@
 spring:
 spring:
   profiles.include: audit, client-sec
   profiles.include: audit, client-sec
   redis:
   redis:
-    host: redis.marathon.l4lb.thisdcos.directory
     database: 1
     database: 1
   http:
   http:
     multipart:
     multipart:

+ 0 - 3
crss-audit/crss-audit-dev2.yml

@@ -5,6 +5,3 @@ spring:
       jdbcUrl: jdbc:postgresql://192.168.233.9:5432/crss?currentSchema=audit
       jdbcUrl: jdbc:postgresql://192.168.233.9:5432/crss?currentSchema=audit
       username: crss_audit
       username: crss_audit
       password: crss_audit
       password: crss_audit
-
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory

+ 0 - 3
crss-audit/crss-audit.yml

@@ -18,9 +18,6 @@ spring:
         ddl-auto: none
         ddl-auto: none
         hbm2ddl:
         hbm2ddl:
           auto: none
           auto: none
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory
-    port: 6379
 
 
 security:
 security:
   oauth2:
   oauth2:

+ 0 - 3
crss-dataflow-app/crss-dataflow-app-dev2.yml

@@ -16,9 +16,6 @@ spring:
         hbm2ddl:
         hbm2ddl:
           auto: none
           auto: none
 
 
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory
-
   # prevent batch job from running on app start
   # prevent batch job from running on app start
   batch:
   batch:
     job:
     job:

+ 0 - 3
crss-meterprocess-stream-mapper/crss-meterprocess-stream-mapper-dev2.yml

@@ -35,9 +35,6 @@ spring:
             auto: none
             auto: none
           temp:
           temp:
             use_jdbc_metadata_defaults: false
             use_jdbc_metadata_defaults: false
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory
-    port: 6379
 logging:
 logging:
   level:
   level:
     com.pemc: debug
     com.pemc: debug

+ 12 - 2
crss-meterprocess-task-stlready/crss-meterprocess-task-stlready.yml

@@ -40,10 +40,20 @@ spring:
         ddl-auto: none
         ddl-auto: none
         hbm2ddl:
         hbm2ddl:
           auto: none
           auto: none
+
   cloud:
   cloud:
     task:
     task:
       initialize:
       initialize:
         enable: false
         enable: false
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://master.mesos/service/chronos/v1
+          memory: 8192
+          cpu: 2
+        dcos:
+          authorizationToken: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJkY29zX2hpc3Rvcnlfc2VydmljZSIsImV4cCI6NDY1NTE3ODM0OX0.erK7saZPxkEOP6k1S8CNvITHQ1SyEUj1cW5qx4GTQU-MPOwxMsFAcFYO0zAthXPYQSzaRxykTelkLMJTsSQVro9bGJcHua7SedIqCmq1TvAUBSJugyxsDxu07mmS-Yh7MwpmG3LAOItwCYzWhihMqdLKRA19iimAs8xS6V5uKo5U5Fq1lOAQ0ye4f4L9CgF8WWyIqILdpynLRIx_eViY5RWtqYznV8otg0jkJGsjHQQmPZa732NY0crJtDcN713wVqT4SZoG993-Zv4mH_RU0a7NbwtvFE1mCfmja1aMp_gtogdS3xdQvRcS1BzaoJs4_dGUvRoQdUeseuTbHkF6VQ
+
   batch:
   batch:
     initializer:
     initializer:
       enabled: false
       enabled: false
@@ -60,6 +70,6 @@ logging:
 batch:
 batch:
   # resourceLocation: "file:target/libs/crss-meterprocess-task-stlready-1.0.0.BUILD-SNAPSHOT.jar"
   # resourceLocation: "file:target/libs/crss-meterprocess-task-stlready-1.0.0.BUILD-SNAPSHOT.jar"
   chunkSize: 100
   chunkSize: 100
-  maxWorkers: 10
+  maxWorkers: 20
   partitionSize:
   partitionSize:
-    stl: 10000
+    stl: 100000

+ 0 - 4
crss-mq-computation/crss-mq-computation-dev2.yml

@@ -53,10 +53,6 @@ spring:
     initializer:
     initializer:
       enabled: false
       enabled: false
 
 
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory
-    port: 6379
-
   cache:
   cache:
     jcache:
     jcache:
       config: ehcache3.xml
       config: ehcache3.xml

+ 13 - 5
crss-mq-computation/crss-mq-computation.yml

@@ -1,4 +1,7 @@
 spring:
 spring:
+  profiles:
+    include: mesos
+
   crss-dataflow:
   crss-dataflow:
     datasource:
     datasource:
       jdbcUrl: jdbc:edb://10.176.11.131:5432/crss?currentSchema=dataflow
       jdbcUrl: jdbc:edb://10.176.11.131:5432/crss?currentSchema=dataflow
@@ -46,6 +49,14 @@ spring:
     task:
     task:
       initialize:
       initialize:
         enable: false
         enable: false
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://master.mesos/service/chronos/v1
+          memory: 8192
+          cpu: 2
+        dcos:
+          authorizationToken: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJkY29zX2hpc3Rvcnlfc2VydmljZSIsImV4cCI6NDY1NTE3ODM0OX0.erK7saZPxkEOP6k1S8CNvITHQ1SyEUj1cW5qx4GTQU-MPOwxMsFAcFYO0zAthXPYQSzaRxykTelkLMJTsSQVro9bGJcHua7SedIqCmq1TvAUBSJugyxsDxu07mmS-Yh7MwpmG3LAOItwCYzWhihMqdLKRA19iimAs8xS6V5uKo5U5Fq1lOAQ0ye4f4L9CgF8WWyIqILdpynLRIx_eViY5RWtqYznV8otg0jkJGsjHQQmPZa732NY0crJtDcN713wVqT4SZoG993-Zv4mH_RU0a7NbwtvFE1mCfmja1aMp_gtogdS3xdQvRcS1BzaoJs4_dGUvRoQdUeseuTbHkF6VQ
 
 
   batch:
   batch:
     initializer:
     initializer:
@@ -55,10 +66,6 @@ spring:
     jcache:
     jcache:
       config: ehcache3.xml
       config: ehcache3.xml
 
 
-  redis:
-    host: localhost
-    port: 6379
-
 logging:
 logging:
   level:
   level:
     com.pemc: debug
     com.pemc: debug
@@ -66,7 +73,7 @@ logging:
 
 
 batch:
 batch:
   chunkSize: 100
   chunkSize: 100
-  maxWorkers: 15
+  maxWorkers: 20
   partitionSize:
   partitionSize:
     gap: 10000
     gap: 10000
     mq: 100000
     mq: 100000
@@ -84,3 +91,4 @@ sftp:
     port: 22
     port: 22
     workingDirectory: /upload
     workingDirectory: /upload
     privateKey:
     privateKey:
+

+ 0 - 4
crss-mtr/crss-mtr-dev2.yml

@@ -54,10 +54,6 @@ spring:
     initializer:
     initializer:
       enabled: false
       enabled: false
 
 
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory
-    port: 6379
-
 logging:
 logging:
   level:
   level:
     com.pemc: debug
     com.pemc: debug

+ 10 - 1
crss-mtr/crss-mtr.yml

@@ -46,6 +46,15 @@ spring:
     task:
     task:
       initialize:
       initialize:
         enable: false
         enable: false
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://master.mesos/service/chronos/v1
+          memory: 16384
+          cpu: 4
+        dcos:
+          authorizationToken: eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1aWQiOiJkY29zX2hpc3Rvcnlfc2VydmljZSIsImV4cCI6NDY1NTE3ODM0OX0.erK7saZPxkEOP6k1S8CNvITHQ1SyEUj1cW5qx4GTQU-MPOwxMsFAcFYO0zAthXPYQSzaRxykTelkLMJTsSQVro9bGJcHua7SedIqCmq1TvAUBSJugyxsDxu07mmS-Yh7MwpmG3LAOItwCYzWhihMqdLKRA19iimAs8xS6V5uKo5U5Fq1lOAQ0ye4f4L9CgF8WWyIqILdpynLRIx_eViY5RWtqYznV8otg0jkJGsjHQQmPZa732NY0crJtDcN713wVqT4SZoG993-Zv4mH_RU0a7NbwtvFE1mCfmja1aMp_gtogdS3xdQvRcS1BzaoJs4_dGUvRoQdUeseuTbHkF6VQ
+
 
 
   batch:
   batch:
     initializer:
     initializer:
@@ -59,7 +68,7 @@ logging:
 batch:
 batch:
   # resourceLocation: "file:target/libs/crss-meterprocess-task-mtr-1.0.0.BUILD-SNAPSHOT.jar"
   # resourceLocation: "file:target/libs/crss-meterprocess-task-mtr-1.0.0.BUILD-SNAPSHOT.jar"
   chunkSize: 1
   chunkSize: 1
-  maxWorkers: 10
+  maxWorkers: 20
   partitionSize:
   partitionSize:
     mtr: 1
     mtr: 1
     mtrSein: 20
     mtrSein: 20

+ 4 - 4
crss-sched/crss-sched.yml

@@ -1,7 +1,7 @@
 spring:
 spring:
+  profiles:
+    include: metronome,client-sec
   datasource:
   datasource:
-    jdbcUrl: jdbc:edb://10.176.11.131:5432/crss?currentSchema=scheduler
+    url: jdbc:edb://10.176.11.131:5432/crss?currentSchema=scheduler
     username: crss_scheduler
     username: crss_scheduler
-    password: 5Q4AY59T
-  profiles:
-    include: client-sec
+    password: 5Q4AY59T

+ 0 - 4
crss-settlement-task-calculation-addtlcomp/crss-settlement-task-calculation-addtlcomp-dev2.yml

@@ -72,10 +72,6 @@ spring:
         hbm2ddl:
         hbm2ddl:
           import_files:
           import_files:
 
 
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory
-    port: 6379
-
 logging:
 logging:
   level:
   level:
     com.pemc.crss.settlement.task.calculation.addtlcomp: DEBUG
     com.pemc.crss.settlement.task.calculation.addtlcomp: DEBUG

+ 0 - 4
crss-settlement-task-calculation/crss-settlement-task-calculation-dev2.yml

@@ -74,10 +74,6 @@ spring:
         hbm2ddl:
         hbm2ddl:
           auto: none
           auto: none
 
 
-  redis:
-    host: redis.marathon.l4lb.thisdcos.directory
-    port: 6379
-
 batch:
 batch:
   chunkSize: 100
   chunkSize: 100
   maxWorkers: 10
   maxWorkers: 10

+ 1 - 1
crss-uaa/crss-uaa.yml

@@ -21,7 +21,7 @@ management:
 crss:
 crss:
   security:
   security:
     oauth2:
     oauth2:
-      default-redirect-uri: crss.prod.crss.wesmsys.local
+      default-redirect-uri: http://crss.prod.crss.wesmsys.local
       auto-approve: true
       auto-approve: true
       authorized-grant-types: authorization_code,refresh_token,password
       authorized-grant-types: authorization_code,refresh_token,password
       access-token-validity-second: 3600
       access-token-validity-second: 3600