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