X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=docs%2Fdeployment.rst;h=2f68a64ee1830ecfeb0edaec44d77d9abfb13ece;hb=refs%2Fheads%2Fmaster;hp=7ba163d574ffff6df540e4b6fc84c0bf33fbf015;hpb=83433140bac9358aef50036081d1f7079ac10c01;p=cps.git diff --git a/docs/deployment.rst b/docs/deployment.rst index 7ba163d57..ba8fcd934 100644 --- a/docs/deployment.rst +++ b/docs/deployment.rst @@ -1,6 +1,6 @@ .. This work is licensed under a Creative Commons Attribution 4.0 International License. .. http://creativecommons.org/licenses/by/4.0 -.. Copyright (C) 2021-2022 Nordix Foundation +.. Copyright (C) 2021-2024 Nordix Foundation .. Modifications Copyright (C) 2021 Bell Canada. .. DO NOT CHANGE THIS LABEL FOR RELEASE NOTES - EVEN THOUGH IT GIVES A WARNING @@ -12,6 +12,13 @@ CPS Deployment .. contents:: :depth: 2 +Database configuration +====================== +CPS uses PostgreSQL database. As per the `PostgreSQL documentation on resource consumption +`_, the *shared_buffers* +parameter should be set between 25% and 40% of total memory. It has a default value of 128 megabytes, so this should be +set appropriately. For example, given a database with 2GB of memory, 512MB is a recommended value. + CPS OOM Charts ============== The CPS kubernetes chart is located in the `OOM repository `_. @@ -255,6 +262,10 @@ Any spring supported property can be configured by providing in ``config.additio | notification.async.executor. | | | | thread-name-prefix | | | +-------------------------------------------+---------------------------------------------------------------------------------------------------------+-------------------------------+ +| config.additional. | Maximum time allowed by the thread pool executor for execution of one of the threads in milliseconds. | ``60000`` | +| notification.async.executor. | | | +| time-out-value-in-ms | | | ++-------------------------------------------+---------------------------------------------------------------------------------------------------------+-------------------------------+ | config.additional. | Specifies number of database connections between database and application. | ``10`` | | spring.datasource.hikari. | This property controls the maximum size that the pool is allowed to reach, | | | maximumPoolSize | including both idle and in-use connections. | | @@ -316,24 +327,24 @@ These instances require some additional ports to be available. The default range Below are the list of distributed datastructures that we have. -+--------------+---------------------------------+----------------------------------------------------------+ -| Component | Datastructure name | Use | -+==============+=================================+==========================================================+ -| cps-core | anchorDataCache | Used to resolve prefix for the container name. | -+--------------+---------------------------------+----------------------------------------------------------+ -| cps-ncmp | moduleSyncStartedOnCmHandles | Watchdog process to register cmHandles. | -+--------------+---------------------------------+----------------------------------------------------------+ -| cps-ncmp | dataSyncSemaphores | Watchdog process to sync data from the nodes. | -+--------------+---------------------------------+----------------------------------------------------------+ -| cps-ncmp | moduleSyncWorkQueue | Queue used internally for workers to pick the task. | -+--------------+---------------------------------+----------------------------------------------------------+ -| cps-ncmp | untrustworthyCmHandlesSet | Stores untrustworthy cmHandles whose TrustLevel is NONE. | -+--------------+---------------------------------+----------------------------------------------------------+ -| cps-ncmp | trustLevelPerDmiPlugin | Stores the TrustLevel for the dmi-plugins. | -+--------------+---------------------------------+----------------------------------------------------------+ -| cps-ncmp | moduleSetTagCacheMapConfig | Stores the Module Set Tags for cmHandles. | -+--------------+---------------------------------+----------------------------------------------------------+ -| cps-ncmp | cmSubscriptionEventCache | Stores and tracks CmSubscription requests. | -+--------------+---------------------------------+----------------------------------------------------------+ ++--------------+------------------------------------+-----------------------------------------------------------+ +| Component | Datastructure name | Use | ++==============+====================================+===========================================================+ +| cps-core | anchorDataCache | Used to resolve prefix for the container name. | ++--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | moduleSyncStartedOnCmHandles | Watchdog process to register cm handles. | ++--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | dataSyncSemaphores | Watchdog process to sync data from the nodes. | ++--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | moduleSyncWorkQueue | Queue used internally for workers to pick the task. | ++--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | untrustworthyCmHandlesSet | Stores untrustworthy cm handles whose trust level is NONE.| ++--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | trustLevelPerDmiPlugin | Stores the trust level for the dmi-plugins. | ++--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | moduleSetTagCacheMapConfig | Stores the module set tags for cm handles. | ++--------------+------------------------------------+-----------------------------------------------------------+ +| cps-ncmp | cmNotificationSubscriptionCache | Stores and tracks cm notification subscription requests. | ++--------------+------------------------------------+-----------------------------------------------------------+ Total number of caches : 8