Clustering

Clustering the Onegini Security Proxy is very easy. You only need to run multiple instances of the security-proxy Docker container. Redis contains all state that is used by the Security Proxy. The Security Proxy container itself is stateless.

See the Redis chapter for details on Redis configuration.

Deploying multiple instances of the Security Proxy simply means duplicating the Compose service that describes the security-proxy container.

The Compose excerpt below gives a very basic idea of deploying two instances of the security-proxy container. For a full example of a security-proxy Compose configuration see the Installation instructions.

  proxy1:
    image: release.onegini.com/onegini/security-proxy:<SECURITY_PROXY_VERSION>
    restart: always
    user: onegini
    environment:
      ...

  proxy2:
    image: release.onegini.com/onegini/security-proxy:<SECURITY_PROXY_VERSION>
    restart: always
    user: onegini
    environment:
      ...