如何在 Kubernetes 上为有状态应用程序设置 Websphere Liberty 集群

How to setup a Websphere Liberty cluster on Kubernetes for stateful applications

我有一个 Kubernetes 集群(内部安装),我部署了一个基于 Websphere Liberty 映像的应用程序(来自 docker hub)。

我为我的服务配置了会话关联(或粘性会话),然后它可以通过请求保持会话(访问同一个 pod)。但是现在,我想在节点或 pod 死亡时保持应用程序会话(用于 HA 和使用 LB)。我可以在 Websphere liberty 中这样做吗?如何设置 Websphere 自由集群

您可以通过 hazelcast 或通过集群内部或外部的传统数据库 运行 配置会话持久性。这使应用程序不再对缩放敏感 up/down.

https://openliberty.io/guides/sessions.html https://www.ibm.com/support/knowledgecenter/en/SSEQTP_liberty/com.ibm.websphere.wlp.doc/ae/twlp_admin_session_persistence.html