GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 1 | # |
| 2 | # Copyright 2017 ZTE Corporation. |
| 3 | # |
| 4 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | # you may not use this file except in compliance with the License. |
| 6 | # You may obtain a copy of the License at |
| 7 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | server: |
| 17 | type: simple |
| 18 | rootPath: '/api/holmes-engine-mgmt/v1/*' |
| 19 | applicationContextPath: / |
| 20 | adminContextPath: /admin |
| 21 | connector: |
Andreas Geissler | 4a5c1bd | 2023-03-01 11:23:32 +0100 | [diff] [blame] | 22 | type: http |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 23 | port: 9102 |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 24 | validateCerts: false |
| 25 | validatePeers: false |
| 26 | |
| 27 | |
| 28 | # Logging settings. |
| 29 | logging: |
| 30 | |
| 31 | # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL. |
GuangrongFu | 717d30b | 2022-04-26 16:05:53 +0800 | [diff] [blame] | 32 | level: INFO |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 33 | |
| 34 | # Logger-specific levels. |
| 35 | loggers: |
| 36 | |
| 37 | # Sets the level for 'com.example.app' to DEBUG. |
| 38 | org.onap.holmes.engine: ALL |
| 39 | |
| 40 | appenders: |
| 41 | - type: console |
GuangrongFu | 717d30b | 2022-04-26 16:05:53 +0800 | [diff] [blame] | 42 | threshold: INFO |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 43 | timeZone: UTC |
| 44 | logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n" |
| 45 | - type: file |
| 46 | threshold: ERROR |
| 47 | logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n" |
| 48 | currentLogFilename: /var/log/ONAP/holmes/engine-d-error.log |
| 49 | archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/engine-d-error-%d{yyyy-MM-dd}.log.gz |
| 50 | archivedFileCount: 7 |
| 51 | - type: file |
GuangrongFu | 717d30b | 2022-04-26 16:05:53 +0800 | [diff] [blame] | 52 | threshold: INFO |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 53 | logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n" |
| 54 | currentLogFilename: /var/log/ONAP/holmes/engine-d-debug.log |
| 55 | archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/engine-d-debug-%d{yyyy-MM-dd}.log.gz |
| 56 | archivedFileCount: 7 |
| 57 | |
| 58 | |
| 59 | database: |
| 60 | driverClass: org.postgresql.Driver |
| 61 | user: ${JDBC_USERNAME} |
| 62 | password: ${JDBC_PASSWORD} |
| 63 | url: jdbc:postgresql://${URL_JDBC}:${DB_PORT}/${DB_NAME} |
| 64 | properties: |
| 65 | charSet: UTF-8 |
| 66 | maxWaitForConnection: 1s |
| 67 | validationQuery: "/* MyService Health Check */ SELECT 1" |
| 68 | minSize: 8 |
| 69 | maxSize: 100 |
| 70 | checkConnectionWhileIdle: false |
| 71 | evictionInterval: 10s |
| 72 | minIdleTime: 1s |