embed-server --server-config=standalone-ha.xml echo **** Begin **** echo *** Update jgoups subsystem *** /subsystem=jgroups/stack=udp/transport=UDP:write-attribute(name=site, value=${jboss.site.name}) echo *** Update infinispan subsystem *** /subsystem=infinispan/cache-container=keycloak:write-attribute(name=module, value=org.keycloak.keycloak-model-infinispan) echo ** Update replicated-cache work element ** /subsystem=infinispan/cache-container=keycloak/replicated-cache=work/store=custom:add( \ class=org.keycloak.models.sessions.infinispan.remotestore.KeycloakRemoteStoreConfigurationBuilder, \ passivation=false, \ fetch-state=false, \ purge=false, \ preload=false, \ shared=true \ ) /subsystem=infinispan/cache-container=keycloak/replicated-cache=work/store=custom:write-attribute( \ name=properties, value={ \ rawValues=true, \ marshaller=org.keycloak.cluster.infinispan.KeycloakHotRodMarshallerFactory, \ remoteCacheName=work, \ sessionCache=false \ } \ ) /subsystem=infinispan/cache-container=keycloak/replicated-cache=work:write-attribute(name=statistics-enabled,value=true) echo ** Update distributed-cache sessions element ** /subsystem=infinispan/cache-container=keycloak/distributed-cache=sessions/store=custom:add( \ class=org.keycloak.models.sessions.infinispan.remotestore.KeycloakRemoteStoreConfigurationBuilder, \ passivation=false, \ fetch-state=false, \ purge=false, \ preload=false, \ shared=true \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=sessions/store=custom:write-attribute( \ name=properties, value={ \ remoteCacheName=sessions, \ useConfigTemplateFromCache=work, \ sessionCache=true \ } \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=sessions:write-attribute(name=statistics-enabled,value=true) echo ** Update distributed-cache offlineSessions element ** /subsystem=infinispan/cache-container=keycloak/distributed-cache=offlineSessions/store=custom:add( \ class=org.keycloak.models.sessions.infinispan.remotestore.KeycloakRemoteStoreConfigurationBuilder, \ passivation=false, \ fetch-state=false, \ purge=false, \ preload=false, \ shared=true \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=offlineSessions/store=custom:write-attribute( \ name=properties, value={ \ remoteCacheName=offlineSessions, \ useConfigTemplateFromCache=work, \ sessionCache=true \ } \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=offlineSessions:write-attribute(name=statistics-enabled,value=true) echo ** Update distributed-cache loginFailures element ** /subsystem=infinispan/cache-container=keycloak/distributed-cache=loginFailures/store=custom:add( \ class=org.keycloak.models.sessions.infinispan.remotestore.KeycloakRemoteStoreConfigurationBuilder, \ passivation=false, \ fetch-state=false, \ purge=false, \ preload=false, \ shared=true \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=loginFailures/store=custom:write-attribute( \ name=properties, value={ \ remoteCacheName=loginFailures, \ useConfigTemplateFromCache=work, \ sessionCache=true \ } \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=loginFailures:write-attribute(name=statistics-enabled,value=true) echo ** Update distributed-cache actionTokens element ** /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/store=custom:add( \ class=org.keycloak.models.sessions.infinispan.remotestore.KeycloakRemoteStoreConfigurationBuilder, \ passivation=false, \ fetch-state=false, \ purge=false, \ preload=true, \ shared=true \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens/store=custom:write-attribute( \ name=properties, value={ \ remoteCacheName=actionTokens, \ useConfigTemplateFromCache=work, \ sessionCache=false \ } \ ) /subsystem=infinispan/cache-container=keycloak/distributed-cache=actionTokens:write-attribute(name=statistics-enabled,value=true) echo ** Update distributed-cache authenticationSessions element ** /subsystem=infinispan/cache-container=keycloak/distributed-cache=authenticationSessions:write-attribute(name=statistics-enabled,value=true) echo *** Enable debug logging *** /subsystem=logging/logger=org.keycloak.cluster.infinispan:add(level=DEBUG) /subsystem=logging/logger=org.keycloak.connections.infinispan:add(level=DEBUG) /subsystem=logging/logger=org.keycloak.models.cache.infinispan:add(level=DEBUG) /subsystem=logging/logger=org.keycloak.models.sessions.infinispan:add(level=DEBUG) echo *** Update undertow subsystem *** /subsystem=undertow/server=default-server/http-listener=default:write-attribute(name=proxy-address-forwarding,value=true) echo **** End ****