首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何备份和恢复apache点火器码头?

如何备份和恢复apache点火器码头?
EN

Stack Overflow用户
提问于 2021-04-05 13:35:40
回答 1查看 379关注 0票数 2

我正在使用apache点燃码头作为我的项目的持久存储。我需要在“config”文件夹(如封送拆收器、db、二进制文件和日志)下进行整个点燃数据备份。我用的是点火器:2.3.0。

下面是点火器的船坞组成结构:

代码语言:javascript
复制
ignite:
  hostname: ignite
  image: apacheignite/ignite:2.3.0
  environment:
    - CONFIG_URI=file:///opt/ignite/apache-ignite-fabric-2.3.0-bin/work/ignite_config.xml
  volumes:
    - ./volumes/ignite/config:/opt/ignite/apache-ignite-fabric-2.3.0-bin/work
  network_mode: "host"
  ports:
    - 0.0.0.0:${IGNITE_EXPOSED_PORT1}:${IGNITE_EXPOSED_PORT1}
    - 0.0.0.0:${IGNITE_EXPOSED_PORT2}:${IGNITE_EXPOSED_PORT2}
    - 0.0.0.0:${IGNITE_EXPOSED_PORT3}:${IGNITE_EXPOSED_PORT3}

ignite_config.xml

代码语言:javascript
复制
<bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration">
    <!-- Enabling Apache Ignite Persistent Store. -->
    <property name="peerClassLoadingEnabled" value="true"/>
    <property name="dataStorageConfiguration">
        <bean class="org.apache.ignite.configuration.DataStorageConfiguration">
            <property name="defaultDataRegionConfiguration">
                <bean class="org.apache.ignite.configuration.DataRegionConfiguration">
                    <property name="persistenceEnabled" value="true"/>
                    <!-- Setting the size of the default region to 5GB. -->
                    <property name="maxSize" value="#{5L * 1024 * 1024 * 1024}"/>
                </bean>
            </property>
        </bean>
    </property>
    <property name="discoverySpi">
        <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
            <property name="localPort" value="48500"/>
            <property name="localPortRange" value="30"/>
            <property name="ipFinder">
                <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder">
                    <property name="addresses">
                        <list>
                            <value>IP:48500..48530</value>
                        </list>
                    </property>
                </bean>
            </property>
        </bean>
    </property>
</bean>

当我再次把点火容器拿上来时,你能建议我如何进行备份和恢复吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-04-05 14:09:02

如果需要对活动群集节点进行备份,请确保在进行备份之前禁用群集,备份完成后重新激活。

您还可以使用最近引入的Apache快照特性更高级的GridGain快照特性

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/66953929

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档