【问题标题】:aerospike data not found on after server restart服务器重新启动后未找到 aerospike 数据
【发布时间】:2015-05-10 07:39:48
【问题描述】:

我是aerospike DB 的新手。我使用迁移脚本将数据从mysql 插入到aerospike。由于某些问题aerospike 服务器已重新启动。 但是重启之后aerospike DB里面就没有数据了。

有人可以告诉我可能是什么问题吗? Aerospike 有配置问题吗?

【问题讨论】:

    标签: aerospike


    【解决方案1】:

    您在 Aerospike 中使用的存储机制是什么?您是否使用了默认数据库之一?默认值之一是仅在内存中。因此,如果它是仅具有单个节点的内存存储并重新启动,则数据将丢失。

    因此,基本上您应该确保数据库存储配置为持久性[1],复制因子为 2 或更多,并且集群中建议的最小服务器数量应至少等于复制因子以确保 HA。

    [1]https://www.aerospike.com/docs/operations/configure/namespace/storage/#recipe-for-an-ssd-storage-engine

    【讨论】:

    • 谢谢安舒!我检查了aerospike.conf中的配置,它被设置为storage-engine memory
    猜你喜欢
    • 2022-01-06
    • 2011-04-21
    • 1970-01-01
    • 2021-06-20
    • 2016-07-23
    • 1970-01-01
    • 2015-12-29
    • 2021-11-06
    相关资源
    最近更新 更多