Data processing method and device
The invention relates to the field of computers, in particular to a data processing method and device which are used for quickly recovering Redis service data, and the method comprises the steps that if it is monitored that a master server in Redis is abnormal and master-slave switching does not occ...
Gespeichert in:
Hauptverfasser: | , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to the field of computers, in particular to a data processing method and device which are used for quickly recovering Redis service data, and the method comprises the steps that if it is monitored that a master server in Redis is abnormal and master-slave switching does not occur, data backup information generated by a target slave server is acquired, and then data backup information is acquired according to the data backup information; and recovering the memory data in the main server. Therefore, the master server can recover the lost memory data according to the data backup information under the conditions that the master server is abnormal and master-slave switching cannot be carried out, and the service can be rapidly recovered to the maximum granularity.
本申请涉及计算机领域,特别涉及一种数据处理方法及装置,用于快速恢复Redis业务数据,该方法为:若监控到Redis中的主服务器发生异常,且未发生主从切换,则获取目标从服务器生成的数据备份信息,进而根据数据备份信息,对主服务器中的内存数据进行恢复。这样,主服务器可以在发生异常,且无法进行主从切换的情况下,根据数据备份信息,对丢失的内存数据进行恢复,最大粒度地快速恢复业务。 |
---|