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

Distributed table system, fragmentation master selection method and device, server and medium

A main server and server technology, applied in the direction of database distribution/replication, special data processing applications, structured data retrieval, etc., can solve problems such as long waiting time and affecting the availability of read and write services

Active Publication Date: 2020-09-25
BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since only the master server can handle the read and write requests sent by users, a master election cycle is usually a few seconds. If the master election is performed after a master election cycle, the waiting time before initiating the master election will be too long, which will affect read and write service availability

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
  • Distributed table system, fragmentation master selection method and device, server and medium
  • Distributed table system, fragmentation master selection method and device, server and medium
  • Distributed table system, fragmentation master selection method and device, server and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0086] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0087] The data corresponding to each shard of the table will be stored as multiple copies, and the multiple copies include a copy whose role is a leader (leader) and at least one copy whose role is a follower (follower). A copy is stored on the server.

[0088] For the convenience of description, the replica whose role is the leader is called the master replica, and the replica whose role is the follower is called the slave replica. The server whose role is ...

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 embodiment of the invention provides a distributed table system, a fragmentation master selection method and device, a server and a medium, relates to the technical field of distributed storage, and can improve the availability of read-write services. According to the technical scheme of the embodiment, the method comprises the steps that when the copy role stored in the master server needs tobe changed, the master server determines a target server with the latest log from the at least one slave server; then, the master server sends a first master selection message to the target server, and sends a second master selection message to other slave servers except the target server in the at least one slave server, so that the target server initiates master selection based on the first master selection message, and the other slave servers initiate master selection based on the second master selection message when detecting that the target server does not successfully select the masterwithin the delay duration.

Description

technical field [0001] The present invention relates to the technical field of distributed storage, in particular to a method, device, server and medium for a distributed table system and slice master selection. Background technique [0002] Table data in a distributed table system is usually sliced ​​horizontally to form multiple shards. The data corresponding to shards has certain redundancy, and the data corresponding to each shard will be stored as multiple copies. Contains one copy whose role is the leader and one or more copies whose role is the follower. For the convenience of description, below, the server to which the replica with the role of leader belongs is called the master server, and the server to which the replica with the role of follower belongs is called the slave server. [0003] When performing a write operation, the master server writes the write operation to the log, synchronizes the log with the slave server, and executes the write operation after de...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F16/22G06F16/23G06F16/27
CPCG06F16/2282G06F16/2358G06F16/27
Inventor 万进
Owner BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD