Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Caching 使用Docker swarm通过服务器管理控制台运行Infinispan群集_Caching_Docker_Docker Swarm_Infinispan - Fatal编程技术网

Caching 使用Docker swarm通过服务器管理控制台运行Infinispan群集

Caching 使用Docker swarm通过服务器管理控制台运行Infinispan群集,caching,docker,docker-swarm,infinispan,Caching,Docker,Docker Swarm,Infinispan,Hi已成功使用docker swarm使Infinispan群集运行。我用这个网站来弄明白怎么做 我创建了自己的覆盖网络,名为infinispan。 然后,我使用以下命令启动了一个jgroups八卦服务: docker service create --name jgroupsGossip --replicas 2 --network infinispan jboss/jgroups-gossip 然后,我使用以下方法构建了一个集群: docker service create --name

Hi已成功使用docker swarm使Infinispan群集运行。我用这个网站来弄明白怎么做

我创建了自己的覆盖网络,名为infinispan。 然后,我使用以下命令启动了一个jgroups八卦服务:

docker service create --name jgroupsGossip --replicas 2 --network infinispan jboss/jgroups-gossip
然后,我使用以下方法构建了一个集群:

docker service create --name infinispanTest --replicas 4 --network infinispan jboss/infinispan-server:latest -Djboss.default.jgroups.stack=tcp-gossip -Djgroups.gossip.initial_hosts=jgroupsGossip[12001]
下面的命令显示集群能够在群中的两个节点上看到彼此

docker exec -it {CONTAINER_ID} /opt/jboss/infinispan-server/bin/ispn-cli.sh -c "/subsystem=datagrid-infinispan/cache-container=clustered:read-attribute(name=members)"
我的问题是尝试使用以下两个命令而不是infinispanTest服务来运行管理控制台

docker service create --name infinispanUI --replicas 2 --network infinispan --publish 9990:9990 jboss/infinispan-server domain-controller -Djboss.default.jgroups.stack=tcp-gossip -Djgroups.gossip.initial_hosts=jgroupsGossip[12001]

docker service create --name infinispanCluster --replicas 4 --network infinispan jboss/infinispan-server host-controller -Djboss.default.jgroups.stack=tcp-gossip -Djgroups.gossip.initial_hosts=jgroupsGossip[12001]
infinispanCluster服务拒绝启动,当访问ip地址为9990的管理控制台时,它会询问凭据,然后只显示一个空白屏幕。以前有人对此设置感到厌倦并取得了任何进展吗

设法从一个infinispanCluster容器中获取一些日志

Entry point arguments: host-controller -Djboss.default.jgroups.stack=tcp-gossip -Djgroups.gossip.initial_hosts=jgroupsGossip[12001]
Added user 'user' to file '/opt/jboss/infinispan-server/standalone/configuration/application-users.properties'
Added user 'user' to file '/opt/jboss/infinispan-server/domain/configuration/application-users.properties'
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /opt/jboss/infinispan-server

JAVA: /usr/lib/jvm/java/bin/java

JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true

=========================================================================

15:23:59,225 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final
15:23:59,371 INFO  [org.jboss.as.process.Host Controller.status] (main) WFLYPC0018: Starting process 'Host Controller'
[Host Controller] 15:23:59,911 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.2.Final
[Host Controller] 15:24:00,087 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
[Host Controller] 15:24:00,132 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0049: Infinispan Server 9.1.0.CR1 (WildFly Core 2.2.0.Final) starting
[Host Controller] 15:24:00,781 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'permgen-size' in the resource at address '/host=c04c29fac2cd/jvm=default' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 15:24:00,782 INFO  [org.jboss.as.controller.management-deprecated] (Controller Boot Thread) WFLYCTL0028: Attribute 'max-permgen-size' in the resource at address '/host=c04c29fac2cd/jvm=default' is deprecated, and may be removed in future version. See the attribute description in the output of the read-resource-description operation to learn more about the deprecation.
[Host Controller] 15:24:00,816 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: ([
[Host Controller]     ("host" => "c04c29fac2cd"),
[Host Controller]     ("core-service" => "discovery-options"),
[Host Controller]     ("static-discovery" => "primary")
[Host Controller] ]) - failure description: "WFLYCTL0113: '' is an invalid value for parameter host. Values must have a minimum length of 1 characters"
[Host Controller] 15:24:00,822 INFO  [org.xnio] (MSC service thread 1-4) XNIO version 3.4.0.Final
[Host Controller] 15:24:00,828 INFO  [org.xnio.nio] (MSC service thread 1-4) XNIO NIO Implementation Version 3.4.0.Final
[Host Controller] 15:24:00,859 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0034: Host Controller boot has failed in an unrecoverable manner; exiting. See previous messages for details.
[Host Controller] 15:24:00,860 FATAL [org.jboss.as.host.controller] (Controller Boot Thread) WFLYHC0178: Aborting with exit code 99
[Host Controller] 15:24:00,871 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0050: Infinispan Server 9.1.0.CR1 (WildFly Core 2.2.0.Final) stopped in 6ms
[Host Controller]
15:24:01,198 INFO  [org.jboss.as.process.Host Controller.status] (reaper for Host Controller) WFLYPC0011: Process 'Host Controller' finished with an exit status of 99
15:24:01,200 INFO  [org.jboss.as.process] (Thread-8) WFLYPC0017: Shutting down process controller
15:24:01,201 INFO  [org.jboss.as.process] (Thread-8) WFLYPC0016: All processes finished; exiting

域模式当前通过按名称链接容器来工作。域控制器称为“dc”,从机与之链接,以便变量dc_端口、dc_主机等可见


你能在docker swarm上遵循这个命名吗?

域模式目前通过按名称链接容器来工作。域控制器称为“dc”,从机与之链接,以便变量dc_端口、dc_主机等可见


你能在docker swarm上遵循这个命名吗?

只要im感知链接在swarm中不使用/不可用。但是,如果使用用户定义的覆盖网络(im使用)连接两个或多个服务,则它们可以使用swarm服务名称(例如,在service_name_2中运行的容器中ping/curl/wget service_name_1)相互查询,只要在swarm中未使用/可用im感知链接,则这些服务应能正常工作。但是,如果使用用户定义的覆盖网络(im使用)连接两个或多个服务,则它们可以使用swarm服务名称(例如,ping/curl/wget service_name_1)从运行在service_name_2中的容器中进行查询