具有持久性的数据迁移(RDB,AOF)

时间:2019-01-07 03:07:56

标签: redis

我已阅读Redis文档以找到标题的答案。但是我找不到。 我想知道在迁移群集节点时如何操作RDB和AOF。

假设同一集群中有2个节点(A节点,B节点) * RDB,AOF选项处于启用状态。

如果A的一些数据被迁移到B,B在获得数据后立即操作AOF和Snapshotting?

如果不是,管理员应该显式发送命令(appendonly,BGSAVE)来保存更改的数据集?

谢谢

1 个答案:

答案 0 :(得分:0)

每个节点的持久性将按预期运行,而不考虑数据的来源(用户或迁移)。如果配置了RDB快照,则一旦达到阈值,节点B将使用新数据执行转储。 AOF将继续在节点B上连续运行,并且任何新数据都将包含在其中。

要手动触发转储,始终可以选择调用<table class="table table-sm"> <thead class="thead-light"> <tr> <th>Name</th> <th>Value</th> </tr> </thead> <tbody> <tr> <th scope="row">Summary</th> <td>0</td> </tr> <ng-template ngFor let-parent [ngForOf]="parentsModel"> <tr> <th scope="rowgroup" colspan="2">{{parent.parentName}}</th> </tr> <ng-template ngFor let-child [ngForOf]="parent.children"> <tr> <td>{{child.childName}}</td> <td>{{child.value}}</td> </tr> </ng-template> </ng-template> </tbody> </table>