安装JMS集群模块

要安装JMS集群模块,只需:

  • 下载 geoserver-jms-cluster-<version>.zip 来自“夜间生成”社区部分的文件

  • 停止地理服务器

  • 将压缩文件解压到 webapps/geoserver/WEB-INF/lib

  • 重新启动geoserver

:…警告::

In GeoServer versions 2.10.4, 2.11.1 and 2.12-beta default topic name was renamed from ``VirtualTopic.>``, which has a special meaning in ActiveMQ, to ``VirtualTopic.geoserver``. When upgrading to one of this versions or above the virtual topic name will be automatically updated. Note that only GeoServer instances that use the same topic name will be synchronized.

作为建议,对于第一个测试,尝试在一个拥有自己数据目录的geoserver集群上运行集群模块。

如果您想在共享同一个数据目录的同时使用集群扩展,这也是可能的,但是您必须记住使用 CLUSTER_CONFIG_DIR 系统变量,并为每个实例将其设置为不同的文件夹,例如:

  • -DCLUSTER_CONFIG_DIR=/path/to/cluster/config/dir/1 在第一个节点上,

  • -DCLUSTER_CONFIG_DIR=/path/to/cluster/config/dir/2 在第二个节点上

  • 等等。

目录不需要存在,geoserver将在启动时自动创建和填充它们。