Update docker installation
[policy/parent.git] / docs / drools / feature_nolocking.rst
1
2 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
3 .. http://creativecommons.org/licenses/by/4.0
4
5 *******************
6 Feature: no locking
7 *******************
8
9 .. contents::
10     :depth: 3
11
12 The no-locking feature allows applications to use a Lock Manager that always succeeds.  It does not deny
13 acquiring resource locks.
14
15 To utilize the no-locking feature, first stop policy engine, disable other locking features, and then enable it
16 using the "*features*" command.
17
18 In an official OOM installation, place a script with a .pre.sh suffix:
19
20     .. code-block:: bash
21        :caption: features.pre.sh
22
23         #!/bin/sh
24
25         sh -c "features disable distributed-locking"
26         sh -c "features enable no-locking"
27
28
29 under the directory:
30
31     .. code-block:: bash
32
33         oom/kubernetes/policy/components/policy-drools-pdp/resources/configmaps
34
35
36 and rebuild the policy charts.
37
38 At container initialization, the distributed-locking will be disabled, and the no-locking feature will be enabled.
39
40 End of Document