2

我目前的设置:

  • 多个节点共享相同的数据库来更新值。
  • 缓存不在它们之间共享

要求 :

  • 当任何一个节点进行数据库更新时,都需要更新 liferay 缓存。

问题

  • 有没有办法 portlet 可以监听我的数据库并更新它的缓存。
  • 缓存独立性是正确的方法吗?(我无法控制这个决定)
  • 如果我们进行适当的集群,我们可以关闭一个独立于另一个节点的节点吗?liferay 会自动处理吗?

提前致谢

4

1 回答 1

0

I would cluster Liferay and enable propagation of cache invalidation. Then when something changes the data would be automatically updated.

If you by cache independency mean that the cache is not replicated then I would say yes. Replication is costly and propagation of cache invalidation should suffice.

If you have clustering you have to have node balancing in front of Liferay (apache ...). Then when you kill one Liferay the balancer should detect it and ignore the killed node until it goes up again.

于 2013-03-14T17:19:17.817 回答