aboutsummaryrefslogtreecommitdiffstats
path: root/docs/drools/feature_locking.rst
diff options
context:
space:
mode:
authorSaryu Shah <ss3917@att.com>2019-06-03 16:23:04 +0000
committerPamela Dragosh <pdragosh@research.att.com>2019-06-03 17:57:35 +0000
commitbd1de26f1e46c41b92ea7cdcc703af9372c6a278 (patch)
treeda2bf05f7d0565330aa07cbf6b1fd9c3c2ede11f /docs/drools/feature_locking.rst
parent21b8895270fdce164ba3a43e971cb4cc54cea098 (diff)
Create Drools PDP documentation - features
Create Drools PDP documentation in parent - features Change-Id: Ie710842a7921fd46ffdef4628d50637093111cc8 Issue-ID: POLICY-1678 Signed-off-by: Saryu Shah <ss3917@att.com> (cherry picked from commit f96ef833d3b00f84639b712579d6e2824e6063b4)
Diffstat (limited to 'docs/drools/feature_locking.rst')
-rw-r--r--docs/drools/feature_locking.rst47
1 files changed, 47 insertions, 0 deletions
diff --git a/docs/drools/feature_locking.rst b/docs/drools/feature_locking.rst
new file mode 100644
index 00000000..1236c93f
--- /dev/null
+++ b/docs/drools/feature_locking.rst
@@ -0,0 +1,47 @@
+
+.. This work is licensed under a Creative Commons Attribution 4.0 International License.
+.. http://creativecommons.org/licenses/by/4.0
+
+****************************
+Feature: Distributed Locking
+****************************
+
+Summary
+^^^^^^^
+
+The Distributed Locking Feature provides locking of resources across a pool of PDP-D hosts. The list of locks is maintained in a database, where each record includes a resource identifier, an owner identifier, and an expiration time. Typically, a drools application will unlock the resource when it's operation completes. However, if it fails to do so, then the resource will be automatically released when the lock expires, thus preventing a resource from becoming permanently locked.
+
+Usage
+^^^^^
+
+ .. code-block:: bash
+ :caption: Enable Feature Distributed Locking
+
+ policy stop
+
+ features enable distributed-locking
+
+ The configuration is located at:
+
+ * $POLICY_HOME/config/feature-distributed-locking.properties
+
+
+ .. code-block:: bash
+ :caption: Start the PDP-D using pooling
+
+ policy start
+
+
+ .. code-block:: bash
+ :caption: Disable the Distributed Locking feature
+
+ policy stop
+ features disable distributed-locking
+ policy start
+
+
+End of Document
+
+.. SSNote: Wiki page ref. https://wiki.onap.org/display/DW/Feature+Distributed+Locking
+
+