94705861f97bfc68cfc6eb19830d976b1922d35d
[so.git] / adapters / mso-catalog-db-adapter / src / main / resources / application.yaml
1 # will be used as entry in DB to say SITE OFF/ON for healthcheck
2 # MSO Properties go here
3      
4 server:
5   port: 8080 
6   tomcat:
7       max-threads: 50
8      
9 mso:
10   logPath: ./logs/openstack
11   site-name: localDevEnv
12   async:
13     core-pool-size: 50
14     max-pool-size: 50
15     queue-capacity: 500
16     
17 # CatalogDB
18 spring:
19   datasource:
20     url: jdbc:mariadb://${DB_HOST}:${DB_PORT}/catalogdb
21     username: ${DB_USERNAME}
22     password: ${DB_PASSWORD}
23     driver-class-name: org.mariadb.jdbc.Driver
24     dbcp2: 
25       initial-size: 5
26       max-total: 20 
27       validation-query: select 1
28       test-on-borrow: true 
29   jpa:
30       show-sql: true
31       hibernate:
32         dialect: org.hibernate.dialect.MySQL5Dialect
33         ddl-auto: validate
34         naming-strategy: org.hibernate.cfg.ImprovedNamingStrategy
35         enable-lazy-load-no-trans: true
36   jackson:
37     serialization:
38       fail-on-empty-beans: false
39 flyway:
40   baseline-on-migrate: false
41   url:  jdbc:mariadb://${DB_HOST}:${DB_PORT}/catalogdb
42   user: ${DB_ADMIN_USERNAME}
43   password: ${DB_ADMIN_PASSWORD}
44   outOfOrder: true
45   validateOnMigrate: false
46
47 #Actuator
48 management: 
49   context-path: /manage
50   metrics:
51     se-global-registry: false
52     export:
53       prometheus:
54         enabled: true # Whether exporting of metrics to Prometheus is enabled.
55         step: 1m # Step size (i.e. reporting frequency) to use.