1 # ============LICENSE_START=======================================================
2 # Copyright (C) 2021 Pantheon.tech
3 # Modifications Copyright (C) 2021-2022 Bell Canada
4 # Modifications Copyright (C) 2021-2024 Nordix Foundation
5 # Modifications Copyright (C) 2024 TechMahindra Ltd
6 # ================================================================================
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
11 # http://www.apache.org/licenses/LICENSE-2.0
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
19 # SPDX-License-Identifier: Apache-2.0
20 # ============LICENSE_END=========================================================
27 cps-base-path: /cps/api
29 ncmp-inventory-base-path: /ncmpInventory
35 name: "cps-application"
41 hibernate.enable_lazy_load_no_trans: true
42 hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
43 # Please ensure these values match those used in integration-test/src/test/resources/application.yml
44 hibernate.id.new_generator_mappings: true
45 hibernate.jdbc.batch_size: 100
48 url: jdbc:postgresql://${DB_HOST}:${DB_PORT:5432}/cpsdb
49 username: ${DB_USERNAME}
50 password: ${DB_PASSWORD}
51 driverClassName: org.postgresql.Driver
56 connectionTimeout: 30000
57 leakDetectionThreshold: 30000
58 pool-name: CpsDatabasePool
62 cache-names: yangSchema
64 spec: maximumSize=10000,expireAfterAccess=10m
67 change-log: classpath:changelog/changelog-master.yaml
68 label-filter: ${LIQUIBASE_LABELS}
74 max-request-size: 100MB
77 bootstrap-servers: ${KAFKA_BOOTSTRAP_SERVER:localhost:9092}
81 value-serializer: io.cloudevents.kafka.CloudEventSerializer
84 group-id: ${NCMP_CONSUMER_GROUP_ID:ncmp-group}
85 key-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
86 value-deserializer: org.springframework.kafka.support.serializer.ErrorHandlingDeserializer
88 spring.deserializer.key.delegate.class: org.apache.kafka.common.serialization.StringDeserializer
89 spring.deserializer.value.delegate.class: io.cloudevents.kafka.CloudEventDeserializer
90 spring.json.use.type.headers: false
93 default-property-inclusion: NON_NULL
95 FAIL_ON_EMPTY_BEANS: false
102 topic: ${NCMP_ASYNC_M2M_TOPIC:ncmp-async-m2m}
104 cm-subscription-ncmp-in: ${CM_SUBSCRIPTION_NCMP_IN_TOPIC:subscription}
105 cm-subscription-dmi-in: ${CM_SUBSCRIPTION_DMI_IN_TOPIC:ncmp-dmi-cm-avc-subscription}
106 cm-subscription-dmi-out: ${CM_SUBSCRIPTION_DMI_OUT_TOPIC:dmi-ncmp-cm-avc-subscription}
107 cm-subscription-ncmp-out: ${CM_SUBSCRIPTION_NCMP_OUT_TOPIC:subscription-response}
108 cm-events-topic: ${NCMP_CM_EVENTS_TOPIC:cm-events}
111 topic: ${LCM_EVENTS_TOPIC:ncmp-events}
114 topic: ${DMI_CM_EVENTS_TOPIC:dmi-cm-events}
116 topic: ${DMI_DEVICE_HEARTBEAT_TOPIC:dmi-device-heartbeat}
119 change-event-notifications-enabled: ${CPS_CHANGE_EVENT_NOTIFICATIONS_ENABLED:true}
120 topic: ${CPS_CHANGE_EVENT_TOPIC:cps-data-updated-events}
131 wait-for-tasks-to-complete-on-shutdown: true
132 thread-name-prefix: Async-
133 time-out-value-in-ms: 60000
137 disable-swagger-default-url: true
138 urlsPrimaryName: cps-core
141 url: /api-docs/cps-core/openapi.yaml
143 url: /api-docs/cps-ncmp/openapi.yaml
144 - name: cps-ncmp-inventory
145 url: /api-docs/cps-ncmp/openapi-inventory.yaml
148 # comma-separated uri patterns which do not require authorization
149 permit-uri: /actuator/**,/swagger-ui.html,/swagger-ui/**,/swagger-resources/**,/api-docs/**,/v3/api-docs/**
151 username: ${CPS_USERNAME:cpsuser}
152 password: ${CPS_PASSWORD:cpsr0cks!}
159 include: info,health,loggers,prometheus
163 # kubernetes probes: liveness and readiness
171 springframework: INFO
177 connectionTimeoutInSeconds: 30
178 maximumConnectionsPerRoute: 50
179 maximumConnectionsTotal: 100
180 idleConnectionEvictionThresholdInSeconds: 5
181 maximumInMemorySizeInMegabytes: 16
183 username: ${DMI_USERNAME:cpsuser}
184 password: ${DMI_PASSWORD:cpsr0cks!}
185 enabled: ${DMI_AUTH_ENABLED:true}
190 advised-modules-sync:
193 sleep-time-ms: 300000
196 subscription-forwarding:
197 dmi-response-timeout-ms: 30000
201 dmi-availability-watchdog-ms: 30000
203 modules-sync-watchdog:
205 parallelism-level: 10
208 maximum-attempt-count: 20
210 # Custom Hazelcast Config.
212 cluster-name: ${CPS_NCMP_CACHES_CLUSTER_NAME:"cps-and-ncmp-common-cache-cluster"}
215 enabled: ${HAZELCAST_MODE_KUBERNETES_ENABLED:false}
216 service-name: ${CPS_NCMP_SERVICE_NAME:"cps-and-ncmp-service"}