Pārlūkot izejas kodu

add ac partition profile

Karen Kho 8 gadi atpakaļ
vecāks
revīzija
59eb1e3256

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

@@ -54,6 +54,22 @@ spring:
       maxPoolSize: 5
       test-on-borrow: true
       validation-query: SELECT 1
+  profiles:
+    include: mesos
+  cloud:
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://master.mesos/service/chronos/v1
+          memory: 2048
+    task:
+      initialize:
+        enable: false
+  batch:
+    initializer:
+      enabled: false
+    job:
+      enabled: true
 
   jpa:
     show-sql: false
@@ -66,10 +82,6 @@ spring:
         hbm2ddl:
           import_files:
 
-  batch:
-    job:
-      enabled: true
-
   redis:
     host: redis.marathon.l4lb.thisdcos.directory
     port: 6379

+ 11 - 0
crss-settlement-task-calculation-addtlcomp/application-devlocal.yml

@@ -68,6 +68,17 @@ spring:
       host: localhost
       port: 6379
 
+batch:
+  resourceLocation: "file:target/libs/crss-settlement-task-calculation-addtlcomp-2.0.0.RC6.jar"
+  chunkSize: 100
+  maxWorkers: 2
+  partitionSize:
+    ac: 15
+    acAlloc: 15
+    vatAc: 15
+    vatAcAlloc: 15
+    acGmr: 15
+
 logging:
   level:
     com.pemc.crss.settlement.task.calculation.addtlcomp: DEBUG

+ 10 - 0
crss-settlement-task-calculation-addtlcomp/application.yml

@@ -68,6 +68,16 @@ spring:
       host: localhost
       port: 6379
 
+batch:
+  chunkSize: 100
+  maxWorkers: 2
+  partitionSize:
+    ac: 1500
+    acAlloc: 1500
+    vatAc: 1500
+    vatAcAlloc: 1500
+    acGmr: 1500
+
 logging:
   level:
     com.pemc: DEBUG