blob: 9e62ccf2f79e0af20d1c5939d16f2b241ed2329d [file] [log] [blame]
GuangrongFucc1316b2021-02-03 17:29:08 +08001#
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#
16server:
17 type: simple
18 rootPath: '/api/holmes-engine-mgmt/v1/*'
19 applicationContextPath: /
20 adminContextPath: /admin
21 connector:
22 type: https
23 port: 9102
24 keyStorePath: /opt/onap/conf/holmes.keystore
25 keyStorePassword: holmes
26 validateCerts: false
27 validatePeers: false
28
29
30# Logging settings.
31logging:
32
33 # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
GuangrongFu717d30b2022-04-26 16:05:53 +080034 level: INFO
GuangrongFucc1316b2021-02-03 17:29:08 +080035
36 # Logger-specific levels.
37 loggers:
38
39 # Sets the level for 'com.example.app' to DEBUG.
40 org.onap.holmes.engine: ALL
41
42 appenders:
43 - type: console
GuangrongFu717d30b2022-04-26 16:05:53 +080044 threshold: INFO
GuangrongFucc1316b2021-02-03 17:29:08 +080045 timeZone: UTC
46 logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
47 - type: file
48 threshold: ERROR
49 logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
50 currentLogFilename: /var/log/ONAP/holmes/engine-d-error.log
51 archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/engine-d-error-%d{yyyy-MM-dd}.log.gz
52 archivedFileCount: 7
53 - type: file
GuangrongFu717d30b2022-04-26 16:05:53 +080054 threshold: INFO
GuangrongFucc1316b2021-02-03 17:29:08 +080055 logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
56 currentLogFilename: /var/log/ONAP/holmes/engine-d-debug.log
57 archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/engine-d-debug-%d{yyyy-MM-dd}.log.gz
58 archivedFileCount: 7
59
60
61database:
62 driverClass: org.postgresql.Driver
63 user: ${JDBC_USERNAME}
64 password: ${JDBC_PASSWORD}
65 url: jdbc:postgresql://${URL_JDBC}:${DB_PORT}/${DB_NAME}
66 properties:
67 charSet: UTF-8
68 maxWaitForConnection: 1s
69 validationQuery: "/* MyService Health Check */ SELECT 1"
70 minSize: 8
71 maxSize: 100
72 checkConnectionWhileIdle: false
73 evictionInterval: 10s
74 minIdleTime: 1s