Details
-
Feature Request
-
Resolution: Unresolved
-
Optional
-
None
-
23.0.2.Final, 24.0.0.Final
-
None
Description
Currently Infinispan caches that are configured with a remote store cannot configure a connect-timeout, this is however supported by the underlying infinispan model.
See below:
# See https://docs.jboss.org/infinispan/11.0/configdocs/infinispan-cachestore-remote-config-11.0.html echo SETUP: Configure Remote Keycloak cache: work batch /subsystem=infinispan/cache-container=keycloak/replicated-cache=work:add() /subsystem=infinispan/cache-container=keycloak/replicated-cache=work/store=remote:add( \ cache=work, \ remote-servers=[ispn-remote-1,ispn-remote-2], \ passivation=false, \ fetch-state=false, \ purge=false, \ preload=false, \ shared=true, \ socket-timeout=${env.KEYCLOAK_REMOTE_ISPN_SOCK_TIMEOUT}, \ connect-timeout=${env.KEYCLOAK_REMOTE_ISPN_CONN_TIMEOUT} \ <-- NOT SUPPORTED by wildfly but supported in infinispan remote store! ) /subsystem=infinispan/cache-container=keycloak/replicated-cache=work/store=remote:write-attribute(name=properties,value={ \ rawValues=true, \ marshaller=org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory, \ infinispan.client.hotrod.auth_username=${env.KEYCLOAK_REMOTE_ISPN_USERNAME:keycloak}, \ infinispan.client.hotrod.auth_password=${env.KEYCLOAK_REMOTE_ISPN_PASSWORD:password}, \ infinispan.client.hotrod.auth_realm=${env.KEYCLOAK_REMOTE_ISPN_REALM:default}, \ infinispan.client.hotrod.auth_server_name=${env.KEYCLOAK_REMOTE_ISPN_SERVER:infinispan}, \ infinispan.client.hotrod.trust_store_file_name=${env.KEYCLOAK_REMOTE_ISPN_TRUSTSTORE_PATH:/opt/jboss/keycloak/standalone/configuration/ispn-truststore.jks}, \ infinispan.client.hotrod.trust_store_type=${env.KEYCLOAK_REMOTE_ISPN_TRUSTSTORE_TYPE:JKS}, \ infinispan.client.hotrod.trust_store_password=${env.KEYCLOAK_REMOTE_ISPN_TRUSTSTORE_PASSWORD:password} \ }) run-batch