Selaa lähdekoodia

[247054] gesqreport configs

jlacson 3 vuotta sitten
vanhempi
sitoutus
2a62ef44a2

+ 42 - 0
crss-gesq-report/crss-gesq-report-dev.yml

@@ -0,0 +1,42 @@
+spring:
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss?currentSchema=dataflow
+      username: postgres
+      password: postgres
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss?currentSchema=meterprocess
+      username: postgres
+      password: postgres
+  crss-registration:
+    dataSource:
+      jdbcUrl: jdbc:postgresql://localhost:5432/crss?currentSchema=registration
+      username: postgres
+      password: postgres
+  jpa:
+    show-sql: true
+    generate-ddl: true
+  profiles:
+    include: mesos
+  cloud:
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://master.mesos/service/chronos/v1
+          memory: 1024
+
+  redis:
+    host: redis.marathon.mesos
+
+batch:
+  # resourceLocation: ${resourceLocation} - property expansion defaulted in app's application.yml
+  partitionSize:
+    mq: 10000
+    ssla: 5000
+    report: 1000
+
+sftp:
+  credentials:
+    host: sftp.marathon.l4lb.thisdcos.directory
+    workingDirectory: /upload

+ 92 - 0
crss-gesq-report/crss-gesq-report-exist-dev.yml

@@ -0,0 +1,92 @@
+spring:
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://172.16.0.20:5432/crss?currentSchema=dataflow
+      url: jdbc:postgresql://172.16.0.20:5432/crss?currentSchema=dataflow
+      username: crss_dataflow
+      password: lgcCpwy0
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://172.16.0.20:5432/crss?currentSchema=meterprocess
+      url: jdbc:postgresql://172.16.0.20:5432/crss?currentSchema=meterprocess
+      username: crss_meterprocess
+      password: D9JpfUtT
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-registration:
+    dataSource:
+      jdbcUrl: jdbc:postgresql://172.16.0.20:5432/crss?currentSchema=registration
+      url: jdbc:postgresql://172.16.0.20:5432/crss?currentSchema=registration
+      username: crss_registration
+      password: 51UF3JA9
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  jpa:
+    # show-sql: true
+    generate-ddl: true
+    open-in-view: false
+    properties:
+      hibernate:
+        # generate_statistics: true
+        dialect: org.hibernate.dialect.PostgreSQLDialect
+        ddl-auto: none
+        hbm2ddl:
+          auto: none
+  profiles:
+    include: mesos
+
+  cloud:
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://master.mesos/service/chronos/v1
+          memory: 2560
+          cpu: 0.5
+          # apply monthly constraints here
+          constraints:
+    task:
+      initialize:
+        enable: false
+  batch:
+    initializer:
+      enabled: false
+
+  cache:
+    jcache:
+      config: ehcache3.xml
+
+logging:
+  level:
+    com.pemc: debug
+    # org.hibernate.stat: debug
+
+batch:
+  # resourceLocation: ${resourceLocation} - property expansion defaulted in app's application.yml
+  chunkSize: 100
+  maxWorkers: 10
+  partitionSize:
+    gap: 5000
+    gesq: 90000
+    gesq-report: 1
+    gesq-report-daily: 100
+    gesq-report-max-count: 28828
+
+mqreport:
+  directory: /tmp/
+
+sftp:
+  credentials:
+    username: pemc
+    password: 123qwe
+    host: sftp.marathon.l4lb.thisdcos.directory
+    port: 22
+    workingDirectory: /upload/gesq
+    privateKey:

+ 117 - 0
crss-gesq-report/crss-gesq-report-pemc-dev.yml

@@ -0,0 +1,117 @@
+spring:
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.1.119:5432/crss?currentSchema=dataflow
+      url: jdbc:postgresql://192.168.1.119:5432/crss?currentSchema=dataflow
+      username: crss_dataflow
+      password: lgcCpwy0
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:postgresql://192.168.1.119:5432/crss?currentSchema=meterprocess
+      url: jdbc:postgresql://192.168.1.119:5432/crss?currentSchema=meterprocess
+      username: crss_meterprocess
+      password: D9JpfUtT
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-registration:
+    dataSource:
+      jdbcUrl: jdbc:postgresql://192.168.1.119:5432/crss?currentSchema=registration
+      url: jdbc:postgresql://192.168.1.119:5432/crss?currentSchema=registration
+      username: crss_registration
+      password: 51UF3JA9
+      driverClassName: org.postgresql.Driver
+      maxPoolSize: 5
+      test-on-borrow: true
+      validation-query: SELECT 1
+  jpa:
+    # show-sql: true
+    generate-ddl: true
+    open-in-view: false
+    properties:
+      hibernate:
+        # generate_statistics: true
+        dialect: org.hibernate.dialect.PostgreSQLDialect
+        ddl-auto: none
+        hbm2ddl:
+          auto: none
+  profiles:
+    include: mesos
+
+  cloud:
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://master.mesos/service/chronos/v1
+          memory: 2560
+          cpu: 0.5
+          # apply monthly constraints here
+          constraints:
+    task:
+      initialize:
+        enable: false
+  batch:
+    initializer:
+      enabled: false
+
+  cache:
+    jcache:
+      config: ehcache3.xml
+
+logging:
+  level:
+    com.pemc: debug
+    # org.hibernate.stat: debug
+
+batch:
+  # resourceLocation: ${resourceLocation} - property expansion defaulted in app's application.yml
+  chunkSize: 100
+  maxWorkers: 10
+  partitionSize:
+    gap: 5000
+    gesq: 90000
+    gesq-report: 1
+    gesq-report-daily: 10
+    gesq-report-max-count: 28828
+
+mqreport:
+  directory: /tmp/
+
+sftp:
+  credentials:
+    username: pemc
+    password: 123qwe
+    host: sftp.marathon.l4lb.thisdcos.directory
+    port: 22
+    workingDirectory: /upload/gesq
+    privateKey:
+
+
+---
+spring:
+  profiles: dailyGesqReport
+  cloud.deployer.mesos.chronos.constraints:
+---
+
+---
+spring:
+  profiles: monthlyFinalGesqReport
+  cloud.deployer.mesos.chronos.constraints:
+---
+
+---
+spring:
+  profiles: monthlyPrelimGesqReport
+  cloud.deployer.mesos.chronos.constraints:
+---
+
+---
+spring:
+  profiles: monthlyAdjustedGesqReport
+  cloud.deployer.mesos.chronos.constraints:
+---

+ 131 - 0
crss-gesq-report/crss-gesq-report.yml

@@ -0,0 +1,131 @@
+spring:
+  profiles:
+    include: mesos
+
+  crss-dataflow:
+    datasource:
+      jdbcUrl: jdbc:edb://${crss.database.ip}:5432/crss?currentSchema=dataflow&ApplicationName=meterprocessGesqReportJob
+      url: jdbc:edb://${crss.database.ip}:5432/crss?currentSchema=dataflow&ApplicationName=meterprocessGesqReportJob
+      username: crss_dataflow
+      password: lgcCpwy0
+      driverClassName: com.edb.Driver
+      connectionTimeout: 150000
+      maximumPoolSize: 3
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-main:
+    datasource:
+      jdbcUrl: jdbc:edb://${crss.database.ip}:5432/crss?currentSchema=meterprocess&ApplicationName=meterprocessGesqReportJob
+      url: jdbc:edb://${crss.database.ip}:5432/crss?currentSchema=meterprocess&ApplicationName=meterprocessGesqReportJob
+      username: crss_meterprocess
+      password: D9JpfUtT
+      driverClassName: com.edb.Driver
+      connectionTimeout: 150000
+      maximumPoolSize: 3
+      test-on-borrow: true
+      validation-query: SELECT 1
+  crss-registration:
+    dataSource:
+      jdbcUrl: jdbc:edb://${crss.database.ip}:5432/crss?currentSchema=registration&ApplicationName=meterprocessGesqReportJob
+      url: jdbc:edb://${crss.database.ip}:5432/crss?currentSchema=registration&ApplicationName=meterprocessGesqReportJob
+      username: crss_registration
+      password: 51UF3JA9
+      driverClassName: com.edb.Driver
+      connectionTimeout: 150000
+      maximumPoolSize: 3
+      test-on-borrow: true
+      validation-query: SELECT 1
+
+  jpa:
+    show-sql: true
+    generate-ddl: false
+    open-in-view: false
+    properties:
+      hibernate:
+        # generate_statistics: true
+        dialect: org.hibernate.dialect.PostgreSQLDialect
+        ddl-auto: none
+        hbm2ddl:
+          auto: none
+
+  cloud:
+    task:
+      initialize:
+        enable: false
+    deployer:
+      mesos:
+        chronos:
+          apiEndpoint: http://chronos.marathon.l4lb.thisdcos.directory:10001/v1
+          memory: 30720
+          memory-daily: 4096
+          cpu: 4
+          cpu-daily: 1
+          # apply monthly constraints here
+          constraints: rack,EQUALS,rack-monthly
+        dcos:
+          authorizationToken: ${crss.dcos.token}
+
+  batch:
+    initializer:
+      enabled: false
+
+  cache:
+    jcache:
+      config: ehcache3.xml
+
+logging:
+  level:
+    com.pemc.crss: DEBUG
+    # org.hibernate.stat: debug
+    #org.hibernate: INFO
+    #org.hibernate.type: trace
+
+batch:
+  vacuum: false
+  chunkSize: 1000
+  maxWorkers: 20
+  partitionSize:
+    gap: 100000
+    gesq: 90000
+    gesq-report: 1
+    gesq-report-daily: 100
+    gesq-report-max-count: 288288
+
+mqreport:
+  directory: /tmp/
+
+sftp:
+  credentials:
+    username: pemc
+    password: 123qwe
+    host: sftp.marathon.l4lb.thisdcos.directory
+    port: 22
+    workingDirectory: /upload/gesq
+    privateKey:
+
+crss:
+  meterprocess:
+
+---
+spring:
+  profiles: dailyGesqReport
+  cloud.deployer.mesos.chronos.constraints: rack,EQUALS,rack-daily
+---
+
+---
+spring:
+  profiles: monthlyFinalGesqReport
+  cloud.deployer.mesos.chronos.constraints: rack,EQUALS,rack-monthly
+---
+
+---
+spring:
+  profiles: monthlyPrelimGesqReport
+  cloud.deployer.mesos.chronos.constraints: rack,EQUALS,rack-monthly
+---
+
+---
+spring:
+  profiles: monthlyAdjustedGesqReport
+  cloud.deployer.mesos.chronos.constraints: rack,EQUALS,rack-monthly
+---