blob: 1d3f5013e2e0a9e5d677f3ee2df3609f99381202 [file] [log] [blame]
tragait34a94b92021-03-30 12:02:27 +01001# ============LICENSE_START=======================================================
lukegleeson15b93e72021-07-07 15:25:30 +01002# Copyright (C) 2021 Pantheon.tech
puthuparambil.aditya395795e2022-05-27 10:59:19 +01003# Modifications Copyright (C) 2021-2022 Bell Canada
seanbeirne7d256442023-01-13 17:13:25 +00004# Modifications Copyright (C) 2021-2023 Nordix Foundation
tragait34a94b92021-03-30 12:02:27 +01005# ================================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
10# http://www.apache.org/licenses/LICENSE-2.0
lukegleeson15b93e72021-07-07 15:25:30 +010011#
tragait34a94b92021-03-30 12:02:27 +010012# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17#
18# SPDX-License-Identifier: Apache-2.0
19# ============LICENSE_END=========================================================
20
Rishi Chailb220d742020-09-16 15:23:53 +010021server:
puthuparambil.aditya52cff682020-11-05 11:34:41 +000022 port: 8080
Ruslan Kashapov708fd662021-01-21 09:37:05 +020023
24rest:
25 api:
Claudio D. Gasparinib77bf252021-01-28 15:36:37 +010026 cps-base-path: /cps/api
Renu Kumari4d520012021-08-30 11:50:43 -040027 ncmp-base-path: /ncmp
Renu Kumari139e8222021-10-04 20:59:18 -040028 ncmp-inventory-base-path: /ncmpInventory
Rishi Chailb220d742020-09-16 15:23:53 +010029
30spring:
Rishi Chail8af414a2020-10-08 12:33:33 +010031 main:
32 banner-mode: "off"
sourabh_sourabh01b60122022-01-21 01:46:12 +053033 application:
34 name: "cps-application"
Rishi Chail8af414a2020-10-08 12:33:33 +010035 jpa:
JosephKeenan42cf9c42022-10-17 12:48:18 +010036 show-sql: false
Rishi Chail8af414a2020-10-08 12:33:33 +010037 ddl-auto: create
38 open-in-view: false
39 properties:
40 hibernate:
41 enable_lazy_load_no_trans: true
42 dialect: org.hibernate.dialect.PostgreSQLDialect
43
44 datasource:
puthuparambil.aditya73d58862022-01-28 13:22:33 +000045 url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb
Rishi Chail8af414a2020-10-08 12:33:33 +010046 username: ${DB_USERNAME}
47 password: ${DB_PASSWORD}
48 driverClassName: org.postgresql.Driver
ToineSiebelink8bc84d82022-08-18 08:43:07 +010049 hikari:
50 minimumIdle: 5
51 maximumPoolSize: 80
sourabh_sourabh86b5cee2022-09-08 12:35:04 +010052 idleTimeout: 60000
53 connectionTimeout: 120000
sourabh_sourabh89a0d392022-09-14 10:23:02 +010054 leakDetectionThreshold: 30000
ToineSiebelink8bc84d82022-08-18 08:43:07 +010055 pool-name: CpsDatabasePool
Rishi Chailb220d742020-09-16 15:23:53 +010056
Claudio David Gasparini1b8a4dd2021-01-13 19:12:25 +010057 cache:
58 type: caffeine
59 cache-names: yangSchema
60 caffeine:
61 spec: maximumSize=10000,expireAfterAccess=10m
puthuparambil.aditya495ae8e2021-02-23 15:51:00 +000062
63 liquibase:
64 change-log: classpath:changelog/changelog-master.yaml
65 labels: ${LIQUIBASE_LABELS}
66
niamhcore49a609c2021-04-07 11:35:19 +010067 servlet:
68 multipart:
69 enabled: true
70 max-file-size: 100MB
71 max-request-size: 100MB
72
Renu Kumariff52b942021-05-27 23:16:32 -040073 kafka:
74 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
75 security:
76 protocol: PLAINTEXT
77 producer:
78 value-serializer: org.springframework.kafka.support.serializer.JsonSerializer
79 client-id: cps-core
JosephKeenanf31c7f82022-05-24 18:59:25 +010080 consumer:
81 group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
82 key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
83 value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
84 properties:
85 spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
86 spring.deserializer.value.delegate.class: org.springframework.kafka.support.serializer.JsonDeserializer
JosephKeenanf31c7f82022-05-24 18:59:25 +010087 spring.json.use.type.headers: false
mpriyank5d3ed6f2022-05-26 20:25:40 +010088
89 jackson:
seanbeirne7d256442023-01-13 17:13:25 +000090 default-property-inclusion: NON_NULL
91 serialization:
92 FAIL_ON_EMPTY_BEANS: false
sourabh_sourabh86b5cee2022-09-08 12:35:04 +010093 sql:
seanbeirne7d256442023-01-13 17:13:25 +000094 init:
95 mode: ALWAYS
JosephKeenanf31c7f82022-05-24 18:59:25 +010096app:
97 ncmp:
98 async-m2m:
99 topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
seanbeirne632942a2022-12-06 11:12:18 +0000100 avc:
101 subscription-topic: ${NCMP_CM_AVC_SUBSCRIPTION:cm-avc-subscription}
mpriyanka6fa6c32022-07-11 12:15:55 +0100102 lcm:
mpriyankc2c4f5f2022-06-02 11:27:55 +0100103 events:
mpriyanka6fa6c32022-07-11 12:15:55 +0100104 topic: ${LCM_EVENTS_TOPIC:ncmp-events}
mpriyankf0d50b62023-03-08 15:29:57 +0000105 dmi:
106 cm-events:
107 topic: ${DMI_CM_EVENTS_TOPIC:dmi-cm-events}
JosephKeenan1c908482022-06-16 16:19:09 +0100108
seanbeirne7d256442023-01-13 17:13:25 +0000109
Renu Kumariff52b942021-05-27 23:16:32 -0400110notification:
JosephKeenan1c908482022-06-16 16:19:09 +0100111 enabled: true
Renu Kumariff52b942021-05-27 23:16:32 -0400112 data-updated:
Bruno Sakoto8db64142021-08-20 18:59:14 -0400113 topic: ${CPS_CHANGE_EVENT_TOPIC:cps.data-updated-events}
Renu Kumari8f01bf62021-08-17 14:06:53 -0400114 filters:
Renu Kumari86c74c72021-08-19 13:11:00 -0400115 enabled-dataspaces: ${NOTIFICATION_DATASPACE_FILTER_PATTERNS:""}
Renu Kumaricd048072021-09-02 10:30:09 -0400116 async:
Renu Kumaricd048072021-09-02 10:30:09 -0400117 executor:
ToineSiebelinkc51d4f62022-08-18 08:50:06 +0100118 core-pool-size: 2
119 max-pool-size: 10
Renu Kumaricd048072021-09-02 10:30:09 -0400120 queue-capacity: 500
121 wait-for-tasks-to-complete-on-shutdown: true
122 thread-name-prefix: Async-
JosephKeenanf31c7f82022-05-24 18:59:25 +0100123 time-out-value-in-ms: 2000
Renu Kumariff52b942021-05-27 23:16:32 -0400124
JosephKeenan2472e612021-06-23 14:15:52 +0100125springdoc:
126 swagger-ui:
Renu Kumari4d520012021-08-30 11:50:43 -0400127 disable-swagger-default-url: true
128 urlsPrimaryName: cps-core
129 urls:
130 - name: cps-core
131 url: /api-docs/cps-core/openapi.yaml
132 - name: cps-ncmp
133 url: /api-docs/cps-ncmp/openapi.yaml
Renu Kumari139e8222021-10-04 20:59:18 -0400134 - name: cps-ncmp-inventory
135 url: /api-docs/cps-ncmp/openapi-inventory.yaml
136
Renu Kumari8f01bf62021-08-17 14:06:53 -0400137
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200138security:
139 # comma-separated uri patterns which do not require authorization
Renu Kumari139e8222021-10-04 20:59:18 -0400140 permit-uri: /manage/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200141 auth:
Renu Kumari3da52072021-04-14 10:14:13 -0400142 username: ${CPS_USERNAME}
143 password: ${CPS_PASSWORD}
Ruslan Kashapov0d6bbae2021-03-11 14:15:49 +0200144
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200145# Actuator
146management:
puthuparambil.adityab46d1372021-07-09 12:51:10 +0100147 server:
148 port: 8081
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200149 endpoints:
150 web:
151 base-path: /manage
puthuparambil.adityab46d1372021-07-09 12:51:10 +0100152 exposure:
153 include: info,health,loggers,prometheus
Ruslan Kashapovf4d1c982020-10-29 11:39:31 +0200154 endpoint:
155 health:
156 show-details: always
157 # kubernetes probes: liveness and readiness
158 probes:
159 enabled: true
160
Rishi Chailb220d742020-09-16 15:23:53 +0100161logging:
sourabh_sourabhac5ae3e2022-04-22 22:47:41 +0100162 format: json
Rishi Chail8af414a2020-10-08 12:33:33 +0100163 level:
164 org:
165 springframework: INFO
sourabh_sourabh01b60122022-01-21 01:46:12 +0530166 onap:
167 cps: INFO
mpriyank107dbd82022-09-19 15:56:39 +0100168ncmp:
169 dmi:
170 auth:
171 username: ${DMI_USERNAME}
172 password: ${DMI_PASSWORD}
173 api:
174 base-path: dmi
DylanB95EST324eb162022-05-16 10:45:56 +0100175
mpriyank107dbd82022-09-19 15:56:39 +0100176 timers:
177 advised-modules-sync:
178 sleep-time-ms: 5000
179 locked-modules-sync:
180 sleep-time-ms: 300000
181 cm-handle-data-sync:
182 sleep-time-ms: 30000
DylanB95EST324eb162022-05-16 10:45:56 +0100183
mpriyank107dbd82022-09-19 15:56:39 +0100184 modules-sync-watchdog:
185 async-executor:
186 parallelism-level: 10