aboutsummaryrefslogtreecommitdiffstats
path: root/docs/drools/feature_nolocking.rst
blob: 5399f8b0add10b006f4154c3de6955c6c30b0069 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
.. This work is licensed under a Creative Commons Attribution 4.0 International License.
.. http://creativecommons.org/licenses/by/4.0

*******************
Feature: no locking
*******************

.. contents::
    :depth: 3

The no-locking feature allows applications to use a Lock Manager that always succeeds.  It does not deny
acquiring resource locks.

To utilize the no-locking feature, first stop policy engine, disable other locking features, and then enable it
using the "*features*" command.

In an official OOM installation, place a script with a .pre.sh suffix:

    .. code-block:: bash
       :caption: features.pre.sh
        #!/bin/sh

        sh -c "features disable distributed-locking"
        sh -c "features enable no-locking"


under the directory:

    .. code-block:: bash
        oom/kubernetes/policy/components/policy-drools-pdp/resources/configmaps


and rebuild the policy charts.

At container initialization, the distributed-locking will be disabled, and the no-locking feature will be enabled.

End of Document