Unlock instant, AI-driven research and patent intelligence for your innovation.

Master-slave architecture configuration method and device, equipment and computer readable storage medium

A configuration method and host technology, applied in the field of database management, can solve problems such as uneven distribution of master-slave instances, failure to consider distribution, and inability to effectively utilize host resources.

Active Publication Date: 2020-07-07
PING AN TECH (SHENZHEN) CO LTD
View PDF4 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Without any resource selection strategy, the resources of each host cluster and host are randomly allocated, and the master-slave instances are not evenly distributed, so host resources cannot be effectively used, and the distribution of master-slave nodes on a certain host is not considered In some cases, there may be a host that is full of master instances. Once the host fails, it will cause a large-scale master-slave switch, which will affect the user experience.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Master-slave architecture configuration method and device, equipment and computer readable storage medium
  • Master-slave architecture configuration method and device, equipment and computer readable storage medium
  • Master-slave architecture configuration method and device, equipment and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

example

[0051] Instance: A series of processes in the operating system and the memory blocks allocated for these processes. Instances are an integral part of the implementation of database applications.

[0052] refer to figure 2 , figure 2 It is a schematic flowchart of the first exemplary embodiment of the master-slave architecture configuration method of the present invention. In this embodiment, the master-slave architecture configuration method includes the following steps:

[0053] Step S10, when receiving a configuration request for an in-memory database to be created, acquiring specification information of the in-memory database to be created carried in the configuration request;

[0054] The executor of the method in this embodiment may be a user terminal such as a mobile phone or a tablet computer; the memory database to be created in this embodiment may be a database such as MemCache, SSDB, Cassandra, or Redis, which is not specifically limited in this embodiment.

[0...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a master-slave architecture configuration method, a master-slave architecture configuration device, equipment and a computer readable storage medium. The master-slave architecture configuration method comprises the steps of: acquiring specification information, carried by a configuration request, of a to-be-created memory database when a configuration request of the to-be-created memory database is received; determining a host cluster of a to-be-configured instance of the to-be-created memory database according to the specification information; determining candidate hosts of to-be-configured instances of the to-be-created memory database from the host cluster according to the specification information; and determining a master instance host and a slave instance hostof the to-be-created memory database from the candidate hosts based on the host parameters of the candidate hosts, and configuring the master instance host and the slave instance host according to apreset configuration flow. By adopting the master-slave architecture configuration method and the master-slave architecture configuration device, the master instance host and the slave instance host in the host cluster are determined through utilizing the specification information, so that the hosts in the cluster are equivalent in load degree and balanced in resource allocation, the master instances and the slave instances are uniformly distributed on the hosts, the problem of large-scale master-slave switching is avoided, and the user experience is further improved.

Description

technical field [0001] The present invention relates to the technical field of database management, and in particular to a master-slave architecture configuration method, device, equipment and computer-readable storage medium. Background technique [0002] Redis (Remote Dictionary Server remote dictionary service) is completely open source and free. It complies with the BSD (Berkeley Software Distribution, Berkeley software suite) protocol and is a high-performance key-value database. Due to its efficient read and write performance, Redis is often used as a key-value data cache. In the actual production environment, there are two main usage scenarios of Redis: 1. Master-slave cluster mode; 2. Distributed mode. The former focuses on the separation of reading and writing of data, while the latter focuses on distributed storage data, load balancing and other aspects. Among them, in the master-slave cluster mode, the Redis master library (master instance) is called Master, and...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/21G06F16/245G06F15/16G06F15/163
CPCG06F16/211G06F16/24569G06F15/161G06F15/163Y02D10/00
Inventor 祝明洲
Owner PING AN TECH (SHENZHEN) CO LTD