Feature: Session Persistence¶
The session persistence feature allows drools kie sessions to be persisted in a database surviving pdp-d restarts.
1 2 policy stop features enable session-persistence
The configuration is located at:
Each controller that wants to be started with persistence should contain the following line in its <controller-name>-controller.properties
1 2 db-migrator -o upgrade -s ALL policy start
Facts will survive PDP-D restart using the native drools capabilities and introduce a performance overhead.
1 2 3 4 5 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