github.com/verrazzano/verrazzano@v1.7.1/platform-operator/thirdparty/charts/keycloak/examples/postgresql-kubeping/cache-ispn-kubeping.xml (about)

     1  <?xml version="1.0" encoding="UTF-8"?>
     2  <infinispan
     3          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     4          xsi:schemaLocation="urn:infinispan:config:13.0 http://www.infinispan.org/schemas/infinispan-config-13.0.xsd"
     5          xmlns="urn:infinispan:config:13.0">
     6  
     7      <!-- https://github.com/infinispan/infinispan.github.io/tree/develop/schemas -->
     8  
     9      <!-- custom stack goes into the jgroups element -->
    10      <!-- see https://infinispan.org/blog/2019/03/05/enhanced-jgroups-configuration/ -->
    11      <!-- see http://jgroups.org/manual4/index.html#CommonProps -->
    12      <jgroups xmlns="http://jgroups.org/schema/jgroups-4.2.xsd">
    13          <stack name="tcp-k8s" extends="tcp">
    14              <org.jgroups.protocols.kubernetes.KUBE_PING
    15                      port_range="1"
    16                      namespace="${kubeping_namespace}"
    17                      labels="${kubeping_label}"
    18                      stack.position="MPING"
    19                      stack.combine="REPLACE"/>
    20          </stack>
    21      </jgroups>
    22  
    23      <cache-container name="keycloak">
    24          <!-- custom stack must be referenced by name in the stack attribute of the transport element -->
    25          <!-- note, that this should be keept aligned with: https://github.com/keycloak/keycloak/blob/main/quarkus/runtime/src/main/resources/cache-ispn.xml -->
    26          <transport lock-timeout="60000" stack="tcp-k8s"/>
    27          <local-cache name="realms">
    28              <encoding>
    29                  <key media-type="application/x-java-object"/>
    30                  <value media-type="application/x-java-object"/>
    31              </encoding>
    32              <memory max-count="10000"/>
    33          </local-cache>
    34          <local-cache name="users">
    35              <encoding>
    36                  <key media-type="application/x-java-object"/>
    37                  <value media-type="application/x-java-object"/>
    38              </encoding>
    39              <memory max-count="10000"/>
    40          </local-cache>
    41          <distributed-cache name="sessions" owners="2">
    42              <expiration lifespan="-1"/>
    43          </distributed-cache>
    44          <distributed-cache name="authenticationSessions" owners="2">
    45              <expiration lifespan="-1"/>
    46          </distributed-cache>
    47          <distributed-cache name="offlineSessions" owners="2">
    48              <expiration lifespan="-1"/>
    49          </distributed-cache>
    50          <distributed-cache name="clientSessions" owners="2">
    51              <expiration lifespan="-1"/>
    52          </distributed-cache>
    53          <distributed-cache name="offlineClientSessions" owners="2">
    54              <expiration lifespan="-1"/>
    55          </distributed-cache>
    56          <distributed-cache name="loginFailures" owners="2">
    57              <expiration lifespan="-1"/>
    58          </distributed-cache>
    59          <local-cache name="authorization">
    60              <encoding>
    61                  <key media-type="application/x-java-object"/>
    62                  <value media-type="application/x-java-object"/>
    63              </encoding>
    64              <memory max-count="10000"/>
    65          </local-cache>
    66          <replicated-cache name="work">
    67              <expiration lifespan="-1"/>
    68          </replicated-cache>
    69          <local-cache name="keys">
    70              <encoding>
    71                  <key media-type="application/x-java-object"/>
    72                  <value media-type="application/x-java-object"/>
    73              </encoding>
    74              <expiration max-idle="3600000"/>
    75              <memory max-count="1000"/>
    76          </local-cache>
    77          <distributed-cache name="actionTokens" owners="2">
    78              <encoding>
    79                  <key media-type="application/x-java-object"/>
    80                  <value media-type="application/x-java-object"/>
    81              </encoding>
    82              <expiration max-idle="-1" lifespan="-1" interval="300000"/>
    83              <memory max-count="-1"/>
    84          </distributed-cache>
    85      </cache-container>
    86  </infinispan>