diff options
author | 2017-11-14 03:00:56 +0000 | |
---|---|---|
committer | 2017-11-14 03:00:56 +0000 | |
commit | ef28b6dd662b9daebf120aef0c9b8d4387260c72 (patch) | |
tree | e1db001b858cc040ba4c0c93f308a54f978369a1 /docs/platform/feature_sesspersist.rst | |
parent | d18118014319955fcf3402e8231f023dbde4f56a (diff) |
Policy Documention Eclipse, PDP-D, Sess Pers
Documentation for Eclipse, PDP-D and Session Persistance.
-------------------------------------------------------------
Change-Id: I2e988cf5cb64ea60c7173dcd716be5fa25855255
Issue-Id: POLICY-335
Signed-off-by: Saryu Shah <ss3917@att.com>
Diffstat (limited to 'docs/platform/feature_sesspersist.rst')
-rw-r--r-- | docs/platform/feature_sesspersist.rst | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/docs/platform/feature_sesspersist.rst b/docs/platform/feature_sesspersist.rst new file mode 100644 index 000000000..4bb5ef62c --- /dev/null +++ b/docs/platform/feature_sesspersist.rst @@ -0,0 +1,49 @@ + +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 + +************************************ +Feature: Session Persistence +************************************ + +The session persistence feature allows drools kie sessions to be persisted in a database surviving pdp-d restarts. + + .. code-block:: bash + :caption: Enable session persistence + :linenos: + + policy stop + features enable session-persistence + +The configuration is located at: + + - *$POLICY_HOME/config/feature-session-persistence.properties* + +Each controller that wants to be started with persistence should contain the following line in its *<controller-name>-controller.properties* + + - *persistence.type=auto* + + .. code-block:: bash + :caption: Start the PDP-D using session-persistence + :linenos: + + db-migrator -o upgrade -s ALL + policy start + +Facts will survive PDP-D restart using the native drools capabilities and introduce a performance overhead. + + .. code-block:: bash + :caption: Disable the session-persistence feature + :linenos: + + policy stop + features disable session-persistence + sed -i "/persistence.type=auto/d" <controller-name>-controller.properties + db-migrator -o erase -s sessionpersistence # delete all its database data (optional) + policy start + +End of Document + +.. SSNote: Wiki page ref. https://wiki.onap.org/display/DW/Feature+Session+Persistence + + |