mcast addr and port as JAVA_OPTS

This commit is contained in:
Andrea Dell'Amico 2022-12-29 17:12:37 +01:00
parent 2f717dd7cb
commit dd2e77f598
Signed by untrusted user: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 1 additions and 17 deletions

View File

@ -21,23 +21,6 @@
xsi:schemaLocation="urn:infinispan:config:11.0 http://www.infinispan.org/schemas/infinispan-config-11.0.xsd"
xmlns="urn:infinispan:config:11.0">
<jgroups>
<UDP
mcast_port="{{ keycloak_jgroups_multicast_port }}"
mcast_addr="{{ keycloak_jgroups_multicast_address }}"
ucast_recv_buf_size="5M"
ucast_send_buf_size="640K"
mcast_recv_buf_size="5M"
mcast_send_buf_size="640K"
max_bundle_size="64K"
ip_ttl="${jgroups.udp.ip_ttl:2}"
enable_diagnostics="true"
thread_pool.min_threads="2"
thread_pool.max_threads="8"
thread_pool.keep_alive_time="5000"/>
</jgroups>
<cache-container name="{{ keycloak_cache_container_name }}">
<transport lock-timeout="60000"/>
<local-cache name="realms">

View File

@ -16,6 +16,7 @@ Before=apache2.service
[Service]
Environment=JAVA={{ keycloak_openjdk_bin }}
Environment=JAVA_HOME=/usr/lib/jvm/java-{{ keycloak_openjdk_runtime_version}}-openjdk-amd64
Environment=JAVA_OPTS_APPEND="-Djgroups.mcast_addr={{ keycloak_jgroups_multicast_address}} -Djgroups.mcast_port={{ keycloak_jgroups_multicast_port }}"
User={{ keycloak_user }}
Group={{ keycloak_user }}
SuccessExitStatus=0 143