2 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
3 .. http://creativecommons.org/licenses/by/4.0
5 ************************************
6 Feature: Session Persistence
7 ************************************
9 The session persistence feature allows drools kie sessions to be persisted in a database surviving pdp-d restarts.
12 :caption: Enable session persistence
16 features enable session-persistence
18 The configuration is located at:
20 - *$POLICY_HOME/config/feature-session-persistence.properties*
22 Each controller that wants to be started with persistence should contain the following line in its *<controller-name>-controller.properties*
24 - *persistence.type=auto*
27 :caption: Start the PDP-D using session-persistence
30 db-migrator -o upgrade -s ALL
33 Facts will survive PDP-D restart using the native drools capabilities and introduce a performance overhead.
36 :caption: Disable the session-persistence feature
40 features disable session-persistence
41 sed -i "/persistence.type=auto/d" <controller-name>-controller.properties
42 db-migrator -o erase -s sessionpersistence # delete all its database data (optional)
47 .. SSNote: Wiki page ref. https://wiki.onap.org/display/DW/Feature+Session+Persistence