Skip to content

How to run Infinispan server on Docker Swarm for Keycloak? #12048

Closed Answered by pruivo
jerrac asked this question in Q&A
Discussion options

You must be logged in to vote

JGroups has multiple discovery protocols available: http://jgroups.org/manual5/index.html#DiscoveryProtocols

You will need to update the Infinispan configuration XML file with a custom stack, as documented here: https://infinispan.org/docs/stable/titles/embedding/embedding.html#customizing-jgroups-stacks_cluster-transport

For example, TCPPINP is the simplest one and can be configured as follows

<jgroups>
  <!-- Creates a custom JGroups stack named "my-stack". -->
  <!-- Inherits properties from the default TCP stack. -->
  <stack name="my-stack" extends="tcp">
    <TCPPING initial_hosts="ip1[port],ip2[port]"
             stack.combine="REPLACE"
             stack.position="MPING" />
  </s…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pruivo
Comment options

@jerrac
Comment options

Answer selected by jerrac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants