VM Cluster
Note
For high availability, we recommend using the Cloud-Native(CN) deployment instead of VM cluster deployments.
What if you need four or five nines availability, but cloud-native is not an option? You could cluster Janssen using VMs, but you'll have to do some legwork, because we don't publish tools for this task. This planning guide will cover some of the things you'll need to consider.
-
Hostname: Remember when you run the Linux setup to use the hostname of the cluster, not the hostname of the individual server. This is important because the OpenID Provider metadata needs to use the public hostname (i.e. the URLs you'll find at
/.well-known/openid-configuration
) -
Load Balancing / SSL: As Auth Server and FIDO (the two Internet facing components) are stateless, you can use any load balancer routing algorithm, even round robin. You can also use the load balancer to terminate SSL.
-
Database: The web services Janssen Components share the database, so you'll have to use database replication. You could also use a cloud database that takes care of replication for you.
-
Cache: You can't use
IN-MEMORY
cache which would have no way to replicate to the other nodes in the network. You could use the Database for caching, although this will impact performance, although it's only an issue for high concurrency use cases. But if you really need a very high concurrency, our recommendation is to use Redis for caching, which has less cache hit misses than Memcached. -
Key management: Where do you store the private keys? If on the file system, you'll have to make sure that they get securely copied. This is trickier than it sounds because of key rotation. OpenID Connect working group suggests key rotation every two days, to make sure developers who write OpenID applications handle key rotation properly in their code, and don't hardcode the metadata, but retrieve it from the OpenID configuration endpoint.
-
Customizations: You must copy any libraries, xhtml pages, CSS or javascript must be available on all servers.
Created: 2022-07-21