mcast addr and port as JAVA_OPTS
This commit is contained in:
parent
2f717dd7cb
commit
dd2e77f598
|
@ -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">
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue