服务器重启后找不到aerospike数据

时间:2021-10-06 19:18:58

I am new to aerospike DB. I inserted data from mysql to aerospike using a migration script. Due to some issue aerospike server was restarted. But after the restart, there was no data in aerospike DB.

我是aerospike DB的新手。我使用迁移脚本将数据从mysql插入到aerospike中。由于一些问题,空气动力学服务器重新启动。但重启后,airospike DB中没有数据。

Can someone please let me know what could be the issue? Any config problem in Aerospike ?

有人可以让我知道可能是什么问题吗? Aerospike中的任何配置问题?

1 个解决方案

#1


What is the storage mechanism that you used with Aerospike? Did you use one of the default databases? One of the defaults is a in-memory only. Hence, data will be lost if it is an in-memory storage only with a single node and is restarted.

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

So basically you should ensure that the database storage is configured for persistence[1], has replication factor 2 or more and the suggested minimum number of servers in the cluster should be atleast equal to replication factor to ensure HA.

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

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

#1


What is the storage mechanism that you used with Aerospike? Did you use one of the default databases? One of the defaults is a in-memory only. Hence, data will be lost if it is an in-memory storage only with a single node and is restarted.

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

So basically you should ensure that the database storage is configured for persistence[1], has replication factor 2 or more and the suggested minimum number of servers in the cluster should be atleast equal to replication factor to ensure HA.

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

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