首页>
外国专利>
IMPLEMENTATION METHOD AND APPARATUS FOR REDIS REPLICA SET
IMPLEMENTATION METHOD AND APPARATUS FOR REDIS REPLICA SET
展开▼
机译:REDIS副本集的实现方法和装置
展开▼
页面导航
摘要
著录项
相似文献
摘要
An implementation method and apparatus for a Redis replica set, the method comprising the following steps: S1. using a preset method to detect the activity of a proxy, and achieving high availability for the proxy; S2. achieving automatic failover, manual master-slave node switching, automatic sentinel switching, self-rescue of failed nodes, and split-brain multi-master detection by means of preset rules; and S3. the proxy obtains the latest structure information of a database Redis by using a preset rule, and corrects a routing request. The beneficial effects are: by means of collaboratively using Proxy, KeepAlived, Redis-server, Redis-sentinel and Check-sentinel scripts, the lowest configuration Redis can be used to achieve a high-availability solution, which not only effectively solves the problem in which split brain and virtual machine downtime cannot be switched, but also effectively solves the multi-master problem after a virtual machine is started. At the same time, the addition of the proxy can provide protection for Redis, such as the shielding of performance loss commands and the client connection full filling of Redis causing Redis to exit abnormally and so on.
展开▼