Apache Ignite容错群集设置

Apache Ignite容错群集设置,ignite,Ignite,我已经开始了Apache Ignite的工作, 我提到了,但不理解集群 群集是否仅用于数据备份 1.(Node1客户端)我创建了SpringREST应用程序,并使用 Ignite ignite = Ignition.start("examples/config/example-ignite.xml") IgniteCache<Integer, String> cache=ignite.getOrCreateCache("myCache"); ca

我已经开始了Apache Ignite的工作, 我提到了,但不理解集群

群集是否仅用于数据备份

1.(Node1客户端)我创建了SpringREST应用程序,并使用

      Ignite ignite = Ignition.start("examples/config/example-ignite.xml")
      IgniteCache<Integer, String> cache=ignite.getOrCreateCache("myCache");

      cache.put(1, "Hello");
      cache.put(2, "World!");
我的问题是

1.设置这些配置以实现容错吗

2.如果我的节点1关闭,我必须自动将请求转发到另一个节点


请帮助我了解群集配置。

ApacheIgnite群集是一组相互连接的机器和JVM进程,表示为应用程序的单个计算单元和存储

有两种类型的节点—存储数据集并处理查询和计算的节点(服务器节点)和用于从应用程序端连接到集群的节点(客户端节点)。请参阅更多详细信息

回答您的问题:

  • 如前所述,为了使集群具有容错性,必须提高数据冗余级别(条目的备份副本数量)
  • 不,这由Ignite自动处理。您只需要使用客户机节点连接到集群,就这样
  • 另外,我建议您通读Ignite入门指南系列:

    • 更多文章将添加到该系列中。检查一下房间
     Ignite ignite = Ignition.start("examples/config/example-ignite.xml"))