WO2020037580A1 - Ring-shaped server cluster management method and device, and computer storage medium - Google Patents

Ring-shaped server cluster management method and device, and computer storage medium Download PDF

Info

Publication number
WO2020037580A1
WO2020037580A1 PCT/CN2018/101829 CN2018101829W WO2020037580A1 WO 2020037580 A1 WO2020037580 A1 WO 2020037580A1 CN 2018101829 W CN2018101829 W CN 2018101829W WO 2020037580 A1 WO2020037580 A1 WO 2020037580A1
Authority
WO
WIPO (PCT)
Prior art keywords
server
management
message
ring
cluster
Prior art date
Application number
PCT/CN2018/101829
Other languages
French (fr)
Chinese (zh)
Inventor
袁振南
孟天晖
Original Assignee
袁振南
区链通网络有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 袁振南, 区链通网络有限公司 filed Critical 袁振南
Priority to PCT/CN2018/101829 priority Critical patent/WO2020037580A1/en
Priority to CN201880002399.3A priority patent/CN109496420B/en
Publication of WO2020037580A1 publication Critical patent/WO2020037580A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1044Group management mechanisms 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1087Peer-to-peer [P2P] networks using cross-functional networking aspects
    • H04L67/1089Hierarchical topologies

Definitions

  • the present application relates to the field of blockchain, and in particular, to a ring server cluster management method, device, and computer storage medium.
  • Blockchain is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithms.
  • Blockchain technology uses a blockchain-type data structure to verify and store data, and uses distributed node consensus algorithms to generate A new distributed infrastructure and computing method that updates and updates data, uses cryptography to ensure data transmission and access security, and uses smart contracts composed of automated script code to program and manipulate data.
  • a system running a blockchain requires a large amount of computing power.
  • a server cluster is used to provide computing power to a system running a blockchain.
  • the server cluster includes a large number of servers, and the number of communications between servers also increases. The number of servers increases exponentially. Therefore, how to ensure the communication quality in the server cluster and effectively manage the communication efficiency in the server cluster are the issues that need to be solved in the current development of blockchain technology.
  • the present application provides a ring server cluster management method, including:
  • each server cluster consisting of a plurality of servers in a vertical structure, the server cluster including a message management server, a message sending server, a request transmission server, and a backup server;
  • each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are peer server clusters to each other;
  • the message management service of the server cluster When the message management service of the server cluster receives the message, it sends the message to the message management servers of other server clusters in the same management ring shard through the message sending server; and sends the message to the other management through the message sending server.
  • the message transmission direction of the message management server and the message sending server is the same, and the message transmission direction of the message management server and the request transmission server are different.
  • the method further includes:
  • the standby server is configured as a message management server; or,
  • the standby server is configured as a request transmission server.
  • the method further includes:
  • the method further includes:
  • the mount server shares load pressure of a message management server, a message sending server, and a request transmission server of the same server cluster through a load balancing technology; each server cluster includes a message management server and two message sending servers. , 2 request transfer servers, and at least 1 standby server.
  • the method further includes:
  • the mounted servers of the server cluster on the management ring meet a preset condition, the mounted servers are aggregated into a new server cluster.
  • the present application further provides a ring server cluster management device, including:
  • Architecture composition module a management ring for logically forming a ring structure of several server clusters.
  • Each server cluster is composed of several servers in a vertical structure.
  • the server cluster includes a message management server, a message sending server, and request transmission.
  • Server and standby server
  • Sharding module used to divide the management ring into several management ring fragments, each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are peer server clusters to each other;
  • Message management module When a message management service of a server cluster receives a message, the message is sent by a message sending server to a message management server of another server cluster of the same management ring segment; and the message is passed through the message The sending server sends the message management server to the peer server clusters in other management ring shards.
  • the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program implements the foregoing ring server cluster management method when executed by a processor.
  • This application logically forms a management ring of a ring structure by managing server clusters that provide computing power for a blockchain system, and each server cluster is composed of several servers in a vertical structure, and then the management ring is divided into several The management ring shard, when the message management service of the server cluster receives the message, sends the message to the message management server of other server clusters in the same management ring shard through the message sending server; and sends the message through the message
  • the message management server sent by the server to the peer server cluster in the other management ring shards allows the messages to be quickly transmitted between the server clusters on the management ring through the sharded management ring; at the same time, based on the vertical multilayer architecture Server cluster.
  • the management ring based on the ring structure formed by the server cluster supports the expansion of the server cluster on the management ring and Reduced capacity to ensure high server clusters on the management ring Versatility and robustness.
  • FIG. 1 is a schematic flowchart of an embodiment of a ring server cluster management method of the present application
  • FIG. 2 is a schematic diagram of a management ring of a ring topology composed of a server cluster of the present application
  • FIG. 3 is a schematic diagram of a multilayered three-dimensional structure of a management ring of the present application.
  • FIG. 4 is a schematic diagram of an embodiment of a ring server cluster management device of the present application.
  • FIG. 5 is a schematic structural diagram of an embodiment of a server in a server cluster of the present application.
  • the present application describes a ring server cluster management method provided by the present application from the whole of the blockchain system.
  • the method is applied to a blockchain system, and the blockchain system includes:
  • the management ring is composed of several server clusters, which are used to run blockchain programs; as shown in Figure 1, the method includes the following steps:
  • a plurality of server clusters are logically formed into a management ring structure of a ring structure.
  • Each server cluster is composed of several servers in a vertical structure.
  • the server cluster includes a message management server, a message sending server, a request transmission server, and a backup server. .
  • a platform equipped with a blockchain system requires a large number of servers for transaction calculation and information transmission.
  • a plurality of server clusters are logically formed into a management structure of a ring structure.
  • the management is established through forwarding rules based on the IEEE 802.1 specification.
  • Messages from server clusters on the management ring support point-to-point, multipoint-to-multipoint, and point-to-multipoint transmission.
  • This embodiment preferably uses point-to-point
  • the message transmission is done point-to-point and point-to-multipoint; further, each server cluster is composed of several servers in a vertical structure, that is, several servers in the server cluster are deployed in a vertically split distributed architecture.
  • the servers at different positions in the vertical structure in the cluster perform different functions.
  • the server cluster includes a message management server, a message sending server, a request transmission server, and a backup server.
  • a management ring of a ring structure composed of server clusters of this embodiment is shown. Each point on the management ring is a server cluster.
  • FIG. 3 is a three-dimensional version of the management ring described in FIG. 2.
  • the multi-layered three-dimensional structure of the server cluster is presented, and each server cluster (Unity) is composed of N servers in a vertical structure (N ⁇ 6), which are named as servers 0-6 in sequence, among which server 0 is the present application.
  • the message management server is used to send management information (CMD) and error check information (Error_check); No.
  • No. 1 and No. 2 are message sending servers described in this application, which are responsible for sending messages in the ring;
  • No. 3 and No. 4 servers are The request transmission server described in the application is responsible for calculating or requesting the transmission of the returned results;
  • server 5 is the backup server described in the application and is responsible for supplementing the downtime of servers 0-4.
  • the management ring is divided into a plurality of management ring fragments, and each management ring fragment includes several server clusters. Server clusters at the same location on different management ring fragments are peer server clusters to each other.
  • the management ring is divided into several management ring fragments, and each management ring fragment includes several server clusters.
  • Server clusters at the same location on different management ring fragments are peer server clusters with each other, as shown in FIG. 2 Shown is a management ring of a ring structure composed of server clusters of this embodiment.
  • the server clusters on the management ring are named Aa, Ab, ..., Ba, Bb, ..., Ja, Jb, etc.
  • the management ring is divided into Several management ring shards, each management ring shard contains several server clusters, that is, the server clusters starting with the same capital letter in Figure 2 belong to the same management ring shard, such as Aa, Ab, ...
  • Aj are the same management ring shard
  • the server clusters at the same location on different management ring shards are peer server clusters to each other.
  • the server clusters Aa, Ba, Ca, ..., Ja are in the same position in different management ring shards
  • the server clusters Aa, Ba , Ca, ..., Ja are peer server clusters.
  • the management ring provides logical computing power for processing blockchain business, and the logical operations of the blockchain business provided by the blockchain system are processed by the server cluster on the management ring, and accordingly
  • the blockchain program runs on the server cluster of the management ring and enjoys the computing power of the server cluster.
  • the The message sending server on the server cluster sends the message to the message management servers of other server clusters in the same management ring segment, and the message sending server on the server cluster sends the message to other management ring segments.
  • the message management server of the peer server cluster when other message management servers of the peer server cluster managing the ring shard receive the message, send the message to the same management ring through the message sending server of the peer server cluster Shard the message management servers of other server clusters to complete the management of all servers on the ring The message transfer between the groups.
  • the message management service in server cluster Aa receives a message, it sends the message to other server clusters (including server clusters Ab, Ac) in the same management ring shard through the message sending server in server cluster Aa. , ...
  • This embodiment logically forms a management ring of a ring structure by managing the server clusters that provide computing power for the blockchain system, and each server cluster is composed of a number of servers in a vertical structure, and then the management ring is divided into several Management ring shards, when the message management service of the server cluster receives the message, sending the message to the message management server of other server clusters in the same management ring shard through the message sending server; and passing the message through the message
  • the sending server sends the message management server to other peer-to-peer server clusters in the management ring shards. Through the fragmented management ring, messages are quickly transmitted between server clusters on the management ring.
  • the vertical multilayer architecture Server cluster different servers in the server cluster perform different functions without affecting each other, so as to improve the communication efficiency between the servers; and the management ring based on the ring structure formed by the server cluster supports the expansion of the server cluster on the management ring And shrinking, ensuring the management of server clusters on the management ring Availability and robustness.
  • the message transmission direction of the message management server and the message sending server is the same, and the message transmission direction of the message management server and the request transmission server are different.
  • the message transmission directions of the servers in different layers are not exactly the same.
  • the message transmission directions of the message management server and the message sending server are the same.
  • the message transmission directions of servers 0, 1, and 2 are: In a counterclockwise direction, the message transmission direction of the message management server and the request transmission server is different.
  • the message transmission directions of the server numbers 3 and 4 are clockwise.
  • This embodiment uses a two-way ring design to make servers at different layers on the management ring only responsible for one type of message, thereby improving message processing speed.
  • the one-way interfaces (only responsible for sending or only receiving) of the servers at different layers are better than two-way. Interfaces (which handle both sending and receiving) can improve the efficiency of message processing.
  • the method further includes:
  • the standby server is configured as a message management server; or,
  • the standby server is configured as a request transmission server.
  • the standby server when an abnormality occurs in the message management server therein, the standby server is configured as a message management server, and the abnormalities include that the message server is down, access is denied, or crashes, and normal message transmission cannot be completed. Error checking. At this time, it plays the role of a standby server.
  • the standby server is configured as a message management server to temporarily replace the message management server to complete a specific function.
  • the backup server when an exception occurs in the message sending server in a server cluster, is configured as a message sending server; when an abnormality occurs in the request transmission server in a server cluster, the backup server is configured as a request transmission server; thereby ensuring the high availability and robustness of the management ring and the management ring system High availability and robustness.
  • the method further includes:
  • the newly added server is added to the backup server of a server cluster in the management ring to ensure the flexibility and scalability of the management ring.
  • the original number of servers in each server cluster was 6, and one of them was used as a backup server to supplement the downtime of the message management server or message sending server or request transmission server.
  • add the server to a server cluster (such as server cluster Aa) in the management ring and configure the newly added server as a backup server of server cluster Aa.
  • server cluster Aa there is a server cluster Aa.
  • Two standby servers are responsible for complementing the downtime of the message management server or message sending server or request transmission server. On the one hand, it can improve the efficiency of message processing, and on the other hand, ensure the high availability and robustness of the management ring.
  • the newly added server is mounted to a server cluster on the management ring as the mount server, and the mount server is the server.
  • the cluster provides the computing power to expand the corresponding server.
  • the newly added server is mounted in a server cluster, and the mounted server is configured as a message management server, thereby improving the computing power of the server cluster's message management server.
  • mount the newly added server into a server cluster and configure the mounted server as a message sending server to increase the computing power of the message sending server of the server cluster; or, mount the newly added server Load into a server cluster, and configure the mount server as a request transfer server to increase the computing power of the server cluster's request transfer server; or, mount the newly added server into a server cluster, and mount the server Configured as a standby server to improve the downtime protection capability of the standby server in this server cluster.
  • the mount server shares load pressure of a message management server, a message sending server, and a request transmission server of a same server cluster through a load balancing technology, and each of the server clusters includes 1 1 message management server, 2 message sending servers, 2 request transmission servers, and at least 1 standby server.
  • the new server is mounted to a server cluster as a mount server of the message management server in the server cluster to share load pressure for the message management server.
  • mount the newly added server to the server cluster as the mount server for the message sending server in the server cluster, and share the load pressure for the message sending server; and so on.
  • the mounted server is used to share the load pressure among the servers with a relatively large load pressure to ensure the high availability of the corresponding server.
  • the method further includes:
  • the mounted servers of the server cluster on the management ring meet a preset condition, the mounted servers are aggregated into a new server cluster.
  • the mounted servers are aggregated into a new server cluster according to a predetermined rule and threshold, so that a new server cluster is added on the management ring.
  • This further improves the computing power of the management ring; for example, when one server cluster on the management ring has six mounted servers, one of the mounted servers is configured as a message management server, and two mounted servers are configured as messages.
  • the sending server, 2 mount servers are configured as request transmission servers, and 1 mount server is configured as a standby server.
  • the mount server meets the preset conditions and can independently become a server cluster.
  • the mount servers are aggregated. A new server cluster on the management ring.
  • the present application provides a ring server cluster management device, including:
  • Architecture composition module 10 used to logically form a management ring of a plurality of server clusters, each server cluster is composed of several servers in a vertical structure, and the server cluster includes a message management server, a message sending server, and a request Transport server and backup server
  • Sharding module 20 used to divide the management ring into several management ring shards, each management ring shard contains several server clusters, and server clusters at the same location on different management ring shards are peer server clusters to each other;
  • the message management module 30 is configured to: when the message management service of the server cluster receives the message, send the message to the message management server of other server clusters in the same management ring segment through the message sending server; and pass the message through The message sending server sends the message management server to the peer server clusters in other management ring shards.
  • the message transmission direction of the message management server and the message sending server is the same, and the message transmission direction of the message management server and the request transmission server are different.
  • the apparatus further includes:
  • the standby server is configured as a message management server; or,
  • the standby server is configured as a request transmission server.
  • the apparatus further includes:
  • the apparatus further includes:
  • the mount server shares load pressure of a message management server, a message sending server, and a request transmission server of the same server cluster through a load balancing technology; each of the server clusters includes a message management server, 2 messaging servers, 2 request transfer servers, and at least 1 standby server.
  • the device executes mounting the newly added server to a certain server cluster on the management ring, and after mounting the server, the device further includes executing:
  • the mounted servers of the server cluster on the management ring meet a preset condition, the mounted servers are aggregated into a new server cluster.
  • the present application provides a computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • messages in the server cluster according to the foregoing embodiment are implemented. Delivery method.
  • the computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory, read-only memory), and RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or Rays card.
  • the storage device includes any medium that stores or transmits information in a readable form by a device (for example, a computer, a mobile phone), and may be a read-only memory, a magnetic disk, or an optical disk.
  • a computer-readable storage medium provided in the embodiment of the present application can implement a management ring that logically forms a plurality of server clusters into a ring structure.
  • Each server cluster is composed of several servers in a vertical structure.
  • the server cluster includes A message management server, a message sending server, a request transmission server, and a backup server; the management ring is divided into a plurality of management ring fragments, and each management ring fragment includes a plurality of server clusters, and the server clusters at the same location on different management ring fragments Peer server clusters to each other; when the message management service of the server cluster receives the message, it sends the message to the message management servers of other server clusters in the same management ring shard through the message sending server; and passes the message through The message sending server sends the message management server to the peer server clusters in other management ring shards.
  • the server cluster that provides computing power for the blockchain system is logically formed into a management ring of a ring structure, and each server cluster is composed of a number of servers in a vertical structure, and then the management ring is divided into several management rings Fragmentation, when the message management service of the server cluster receives the message, it sends the message to the message management server of other server clusters in the same management ring fragment through the message sending server; and sends the message through the message sending server
  • the computer-readable storage medium provided in the embodiment of the present application can implement the foregoing embodiment of the ring server cluster management method.
  • the present application further provides a server cluster, where the server cluster includes several servers, and the server cluster constitutes a management ring as shown in FIG. 2 and FIG. 3, as shown in FIG. 5.
  • the server includes devices such as a processor 503 and a memory 505.
  • the memory 505 may be used to store a computer program 501 and various functional modules, and the processor 503 runs the computer program 501 stored in the memory 505 to execute various functional applications and data processing of the device.
  • the memory 505 may be an internal memory or an external memory, or include both an internal memory and an external memory.
  • the internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory.
  • External storage may include hard disks, floppy disks, ZIP disks, U disks, magnetic tapes, and so on.
  • the memory disclosed in this application includes, but is not limited to, these types of memory.
  • the memory 505 disclosed in this application is only an example and not a limitation.
  • One or more processors 503 shown in FIG. 5 can execute and implement the functions of the architectural composition module 10, the fragmentation module 20, and the message management module 30 shown in FIG.
  • the server includes one or more processors 503, and one or more memories 505, one or more computer programs 501, wherein the one or more computer programs 501 are stored in the memory 505 And is configured to be executed by the one or more processors 503, and the one or more computer programs 501 are configured to execute the ring server cluster management method described in the above embodiment.
  • a server cluster provided in the embodiment of the present application can implement a management ring in which a plurality of server clusters logically form a ring structure.
  • Each server cluster is composed of several servers in a vertical structure, and the server cluster includes a message management server. , Message sending server, request transmission server, and backup server; divide the management ring into several management ring fragments, each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are mutually opposite Wait for the server cluster; when the message management service of the server cluster receives the message, send the message to the message management server of other server clusters in the same management ring shard through the message sending server; and send the message through the message sending server Message management server sent to peer server clusters in other management ring shards.
  • the server cluster that provides computing power for the blockchain system is logically formed into a management ring of a ring structure, and each server cluster is composed of a number of servers in a vertical structure, and then the management ring is divided into several management rings Fragmentation, when the message management service of the server cluster receives the message, it sends the message to the message management server of other server clusters in the same management ring fragment through the message sending server; and sends the message through the message sending server
  • the server cluster provided in the embodiment of the present application can implement the embodiment of the ring server cluster management method provided above.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer And Data Communications (AREA)

Abstract

A ring-shaped server cluster management method and device, and a storage medium, which relate to the field of blockchain. The method comprises: logically compositing multiple server clusters into a management ring having a ring-shaped structure, each server cluster consisting of multiple servers having a vertical structure, and the server clusters comprising a message management server, a message transmission server, a request transmission server and a backup server (S10); dividing the management ring into multiple management ring fragments, each management ring fragment comprising multiple server clusters, wherein server clusters at the same position of different management ring fragments are peer server clusters (S20); transmitting a message to a message management server of another server cluster of the same management ring fragment by means of the message transmission server when the message management server of the server cluster receives the message; and transmitting the message to message management servers of peer server clusters in another management ring fragment by means of the message transmission server (S30).

Description

环状服务器集群管理方法、装置及计算机存储介质Ring server cluster management method, device and computer storage medium 技术领域Technical field
本申请涉及区块链领域,具体涉及一种环状服务器集群管理方法、装置及计算机存储介质。The present application relates to the field of blockchain, and in particular, to a ring server cluster management method, device, and computer storage medium.
背景技术Background technique
区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式,区块链技术是利用块链式数据结构来验证与存储数据、利用分布式节点共识算法来生成和更新数据、利用密码学的方式保证数据传输和访问的安全、利用由自动化脚本代码组成的智能合约来编程和操作数据的一种全新的分布式基础架构与计算方式。运行区块链的系统需要大量的运算力,现有技术中,通过服务器集群为运行区块链的系统提供运算力,服务器集群中包括了数量庞大的服务器,服务器之间的通信次数也随着服务器数量的增加而呈现指数递增,因此,如何保证服务器集群中的通信质量、有效地管理服务器集群中的通信效率是目前发展区块链技术亟需解决的问题。Blockchain is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithms. Blockchain technology uses a blockchain-type data structure to verify and store data, and uses distributed node consensus algorithms to generate A new distributed infrastructure and computing method that updates and updates data, uses cryptography to ensure data transmission and access security, and uses smart contracts composed of automated script code to program and manipulate data. A system running a blockchain requires a large amount of computing power. In the prior art, a server cluster is used to provide computing power to a system running a blockchain. The server cluster includes a large number of servers, and the number of communications between servers also increases. The number of servers increases exponentially. Therefore, how to ensure the communication quality in the server cluster and effectively manage the communication efficiency in the server cluster are the issues that need to be solved in the current development of blockchain technology.
发明内容Summary of the Invention
为克服以上技术问题,特别是现有技术服务器集群无法高效、高质量地进行通信的问题,特提出以下技术方案:In order to overcome the above technical problems, especially the problem that the prior art server cluster cannot communicate efficiently and with high quality, the following technical solutions are proposed:
第一方面,本申请提供了一种环状服务器集群管理方法,包括:In a first aspect, the present application provides a ring server cluster management method, including:
将若干个服务器集群在逻辑上组成环状结构的管理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器;Logically forming a plurality of server clusters into a ring-shaped management ring, each server cluster consisting of a plurality of servers in a vertical structure, the server cluster including a message management server, a message sending server, a request transmission server, and a backup server;
将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群;Divide the management ring into several management ring fragments, each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are peer server clusters to each other;
当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。When the message management service of the server cluster receives the message, it sends the message to the message management servers of other server clusters in the same management ring shard through the message sending server; and sends the message to the other management through the message sending server. Message management server for a peer-to-peer server cluster in a ring shard.
进一步的,所述消息管理服务器与消息发送服务器的消息传输方向相同,所述消息管理服务器与请求传输服务器的消息传输方向不同。Further, the message transmission direction of the message management server and the message sending server is the same, and the message transmission direction of the message management server and the request transmission server are different.
进一步的,所述方法还包括:Further, the method further includes:
当服务器集群中的消息管理服务器出现异常时,将所述备用服务器配置为消息管理服务器;或,When the message management server in the server cluster is abnormal, the standby server is configured as a message management server; or,
当服务器集群中的消息发送服务器出现异常时,将所述备用服务器配置为消息发送服务器;或When the message sending server in the server cluster is abnormal, configure the standby server as the message sending server; or
当服务器集群中的请求传输服务器出现异常时,将所述备用服务器配置为请求传输服务器。When an abnormality occurs in the request transmission server in the server cluster, the standby server is configured as a request transmission server.
进一步的,所述方法还包括:Further, the method further includes:
当新增服务器时,将新增的服务器添加至管理环上的某一服务器集群的备用服务器中。When adding a new server, add the new server to the standby server of a server cluster on the management ring.
进一步的,所述方法还包括:Further, the method further includes:
当新增服务器时,将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器。When adding a new server, mount the new server to a server cluster on the management ring as the mounted server.
进一步的,所述挂载服务器通过负载均衡技术分担同一服务器集群的消息管理服务器、消息发送服务器、请求传输服务器的负载压力;每个所述服务器集群包括1台消息管理服务器、2台消息发送服务器、2台请求传输服务器、至少1台备用服务器。Further, the mount server shares load pressure of a message management server, a message sending server, and a request transmission server of the same server cluster through a load balancing technology; each server cluster includes a message management server and two message sending servers. , 2 request transfer servers, and at least 1 standby server.
进一步的,所述将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器之后,还包括:Further, after mounting the newly added server to a certain server cluster on the management ring as the mounted server, the method further includes:
当管理环上的服务器集群的挂载服务器满足预设条件时,将所述挂载服务器聚集成新的服务器集群。When the mounted servers of the server cluster on the management ring meet a preset condition, the mounted servers are aggregated into a new server cluster.
第二方面,本申请还提供了一种环状服务器集群管理装置,包括:In a second aspect, the present application further provides a ring server cluster management device, including:
架构组成模块:用于将若干个服务器集群在逻辑上组成环状结构的管 理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器Architecture composition module: a management ring for logically forming a ring structure of several server clusters. Each server cluster is composed of several servers in a vertical structure. The server cluster includes a message management server, a message sending server, and request transmission. Server and standby server
分片模块:用于将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群;Sharding module: used to divide the management ring into several management ring fragments, each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are peer server clusters to each other;
消息管理模块:用于当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。Message management module: When a message management service of a server cluster receives a message, the message is sent by a message sending server to a message management server of another server cluster of the same management ring segment; and the message is passed through the message The sending server sends the message management server to the peer server clusters in other management ring shards.
第三方面,本申请还提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述的环状服务器集群管理方法。According to a third aspect, the present application also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program implements the foregoing ring server cluster management method when executed by a processor.
本申请与现有技术相比,具有以下有益效果:Compared with the prior art, this application has the following beneficial effects:
本申请通过将为区块链系统提供运算力的服务器集群管理在逻辑上组成环状结构的管理环,并且每个服务器集群由垂直结构的若干台服务器组成,然后将所述管理环分成若干个管理环分片,当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器,通过分片式的管理环让消息在管理环上的服务器集群之间进行快速地传输;同时,基于垂直多层架构的服务器集群,服务器集群中的不同服务器分别执行不同的功能,互不影响,以此提高服务器之间的通信效率;并且基于服务器集群构成的环状结构的管理环支持管理环上的服务器集群扩容和缩容,保证管理环上服务器集群的高可用性和健壮性。This application logically forms a management ring of a ring structure by managing server clusters that provide computing power for a blockchain system, and each server cluster is composed of several servers in a vertical structure, and then the management ring is divided into several The management ring shard, when the message management service of the server cluster receives the message, sends the message to the message management server of other server clusters in the same management ring shard through the message sending server; and sends the message through the message The message management server sent by the server to the peer server cluster in the other management ring shards allows the messages to be quickly transmitted between the server clusters on the management ring through the sharded management ring; at the same time, based on the vertical multilayer architecture Server cluster. Different servers in the server cluster perform different functions without affecting each other, so as to improve the communication efficiency between the servers; and the management ring based on the ring structure formed by the server cluster supports the expansion of the server cluster on the management ring and Reduced capacity to ensure high server clusters on the management ring Versatility and robustness.
本申请附加的方面和优点将在下面的描述中部分给出,这些将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be given in the following description, which will become apparent from the following description or be learned through the practice of the present application.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and / or additional aspects and advantages of this application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:
图1为本申请环状服务器集群管理方法的一实施例流程示意图;FIG. 1 is a schematic flowchart of an embodiment of a ring server cluster management method of the present application;
图2为本申请服务器集群组成的环拓扑状结构的管理环示意图;2 is a schematic diagram of a management ring of a ring topology composed of a server cluster of the present application;
图3为本申请管理环的多层立体结构示意图;FIG. 3 is a schematic diagram of a multilayered three-dimensional structure of a management ring of the present application; FIG.
图4为本申请环状服务器集群管理装置的一实施例示意图;FIG. 4 is a schematic diagram of an embodiment of a ring server cluster management device of the present application; FIG.
图5为本申请服务器集群中的服务器的一实施例结构示意图。FIG. 5 is a schematic structural diagram of an embodiment of a server in a server cluster of the present application.
具体实施方式detailed description
下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本申请,而不能解释为对本申请的限制。Hereinafter, embodiments of the present application will be described in detail. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals represent the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the drawings are exemplary and are only used to explain the present application, and cannot be construed as limiting the present application.
本技术领域技术人员可以理解,除非特意声明,这里使用的单数形式“一”、“一个”、“所述”和“该”也可包括复数形式。应该进一步理解的是,本申请的说明书中使用的措辞“包括”是指存在所述特征、整数、步骤、操作,但是并不排除存在或添加一个或多个其他特征、整数、步骤、操作。Those skilled in the art will understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "the" may include plural forms. It should be further understood that the wording "include" used in the specification of the present application refers to the presence of the described features, integers, steps, operations, but does not exclude the presence or addition of one or more other features, integers, steps, operations.
本技术领域技术人员可以理解,除非另外定义,这里使用的所有术语(包括技术术语和科学术语),具有与本申请所属领域中的普通技术人员的一般理解相同的意义。还应该理解的是,诸如通用字典中定义的那些术语,应该被理解为具有与现有技术的上下文中的意义一致的意义,并且除非像这里一样被特定定义,否则不会用理想化或过于正式的含义来解释。It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It should also be understood that terms such as those defined in the general dictionary should be understood to have meanings consistent with the meanings in the context of the prior art, and unless specifically defined like this, they would not be idealized or overly Formal meaning to explain.
本领域技术人员应当理解,本申请所称的“应用”、“应用程序”、“计算机程序”以及类似表述的概念,是业内技术人员所公知的相同概念,是指由一系列计算机指令及相关数据资源有机构造的适于电子运行的计算机软件。除非特别指定,这种命名本身不受编程语言种类、级别,也不受其赖以运行的操作系统或平台所限制。Those skilled in the art should understand that the concepts of “application”, “application program”, “computer program” and similar expressions in this application are the same concepts known to those skilled in the art, and refer to a series of computer instructions and related Data resources are organically constructed computer software suitable for electronic operation. Unless otherwise specified, this naming is not limited by the type or level of programming language, nor by the operating system or platform on which it is running.
在一种实施例中,本申请从区块链系统的整体上,阐述本申请提供的一种环状服务器集群管理方法,该方法应用于区块链系统中,所述区块链 系统包括:管理环,由若干个服务器集群组成,所述服务器集群用于运行区块链程序;如图1所示,该方法包括以下步骤:In one embodiment, the present application describes a ring server cluster management method provided by the present application from the whole of the blockchain system. The method is applied to a blockchain system, and the blockchain system includes: The management ring is composed of several server clusters, which are used to run blockchain programs; as shown in Figure 1, the method includes the following steps:
S10:将若干个服务器集群在逻辑上组成环状结构的管理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器。S10: A plurality of server clusters are logically formed into a management ring structure of a ring structure. Each server cluster is composed of several servers in a vertical structure. The server cluster includes a message management server, a message sending server, a request transmission server, and a backup server. .
搭载了区块链系统的平台都需要大量的服务器进行交易计算、信息传导,本实施例中,将若干个服务器集群在逻辑上组成环状结构的管理环,具体的,将若干个服务器集群在逻辑上通过基于IEEE 802.1规范的转发规则建立所述管理,管理环上的服务器集群的消息支持点到点、多点到多点和点到多点等方式的传输,本实施例优选地以点到点及点到多点的方式进行消息的传输;进一步的,每个服务器集群由垂直结构的若干台服务器组成,即将服务器集群中的若干台服务器以垂直拆分的分布式架构进行部署,服务器集群中垂直结构的不同位置处的服务器执行不同的功能,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器。如图2所示为本实施例服务器集群组成的环状结构的管理环,管理环上的每一个点为一个服务器集群,图3所示是图2所述管理环的立体版,图3示出了所述服务器集群的多层立体结构,每个服务器集群(Unity)由垂直结构的N台服务器组成(N≥6),依次命名为0-6号服务器,其中,0号服务器为本申请所述的消息管理服务器,用于发送管理信息(CMD)和差错检验信息(Error_check);1、2号为本申请所述的消息发送服务器,负责环内消息发送;3、4号服务器为本申请所述的请求传输服务器,负责计算或者请求返回结果的传输;5号服务器为本申请所述的备用服务器,负责为0-4号服务器的作宕机补充。A platform equipped with a blockchain system requires a large number of servers for transaction calculation and information transmission. In this embodiment, a plurality of server clusters are logically formed into a management structure of a ring structure. Specifically, a plurality of server clusters Logically, the management is established through forwarding rules based on the IEEE 802.1 specification. Messages from server clusters on the management ring support point-to-point, multipoint-to-multipoint, and point-to-multipoint transmission. This embodiment preferably uses point-to-point The message transmission is done point-to-point and point-to-multipoint; further, each server cluster is composed of several servers in a vertical structure, that is, several servers in the server cluster are deployed in a vertically split distributed architecture. The servers at different positions in the vertical structure in the cluster perform different functions. The server cluster includes a message management server, a message sending server, a request transmission server, and a backup server. As shown in FIG. 2, a management ring of a ring structure composed of server clusters of this embodiment is shown. Each point on the management ring is a server cluster. FIG. 3 is a three-dimensional version of the management ring described in FIG. 2. The multi-layered three-dimensional structure of the server cluster is presented, and each server cluster (Unity) is composed of N servers in a vertical structure (N≥6), which are named as servers 0-6 in sequence, among which server 0 is the present application. The message management server is used to send management information (CMD) and error check information (Error_check); No. 1 and No. 2 are message sending servers described in this application, which are responsible for sending messages in the ring; No. 3 and No. 4 servers are The request transmission server described in the application is responsible for calculating or requesting the transmission of the returned results; server 5 is the backup server described in the application and is responsible for supplementing the downtime of servers 0-4.
S20:将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群。S20: The management ring is divided into a plurality of management ring fragments, and each management ring fragment includes several server clusters. Server clusters at the same location on different management ring fragments are peer server clusters to each other.
本实施例中,将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群,如图2所示为本实施例服务器集群组成的环状结构的管理 环,管理环上的服务器集群依次命名为Aa,Ab,…,Ba,Bb,…,Ja,Jb…,本实施例将管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,即图2中相同大写字母开头的服务器集群属于同一管理环分片,如Aa,Ab,…Aj为同一管理环分片;并且,不同管理环分片上相同位置的服务器集群互为对等服务器集群,图2中服务器集群Aa、Ba、Ca、……、Ja处于不同管理环分片的相同位置,服务器集群Aa、Ba、Ca、……、Ja互为对等服务器集群。In this embodiment, the management ring is divided into several management ring fragments, and each management ring fragment includes several server clusters. Server clusters at the same location on different management ring fragments are peer server clusters with each other, as shown in FIG. 2 Shown is a management ring of a ring structure composed of server clusters of this embodiment. The server clusters on the management ring are named Aa, Ab, ..., Ba, Bb, ..., Ja, Jb, etc. In this embodiment, the management ring is divided into Several management ring shards, each management ring shard contains several server clusters, that is, the server clusters starting with the same capital letter in Figure 2 belong to the same management ring shard, such as Aa, Ab, ... Aj are the same management ring shard And, the server clusters at the same location on different management ring shards are peer server clusters to each other. In Figure 2, the server clusters Aa, Ba, Ca, ..., Ja are in the same position in different management ring shards, and the server clusters Aa, Ba , Ca, ..., Ja are peer server clusters.
S30:当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。S30: When the message management service of the server cluster receives the message, the message is sent to the message management servers of other server clusters in the same management ring segment through the message sending server; and the message is sent to the message management server through the message sending server. Message management server for peer-to-peer server clusters in other management ring shards.
本实施例的区块链系统中,由所述管理环提供处理区块链业务的逻辑运算力,区块链系统所提供的区块链业务的逻辑运算由管理环上的服务器集群处理,相应的,所述区块链程序运行在管理环的服务器集群上,享有着服务器集群的运算力,当管理环上运行区块链程序的任一服务器集群接收到区块链系统的消息时,该服务器集群上的消息发送服务器将所述消息发送至同一管理环分片的其它服务器集群的消息管理服务器,以及,该服务器集群上的消息发送服务器将所述消息发送至其它管理环分片中的对等服务器集群的消息管理服务器,当其它管理环分片的对等服务器集群的消息管理服务器接收到所述消息时,将所述消息通过该对等服务器集群的消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器,以此完成管理环上的所有服务器集群之间消息的传递。如图2所示,服务器集群Aa中的消息管理服务接收到消息时,将所述消息通过服务器集群Aa中的消息发送服务器发送至同一管理环分片的其它服务器集群(包括服务器集群Ab,Ac,…Aj)的消息管理服务器,以及,发送至其它管理环分片的对等服务器集群(包括服务器集群Ba、Ca、……、Ja)的消息管理服务器,然后由服务器集群Ba、Ca、……、Ja将所述消息传递至对应管理环分片的其它服务器集群,如服务器集群Ba将消息传递至服务器集群Ba所在的管理环分片的其它服务器集群Bb、Bc……、Bj;服 务器集群Ca将消息传递至服务器集群Ca所在的管理环分片的其它服务器集群Cb、Cc……、Cj,从而管理环上服务器集群间消息的传递。In the blockchain system of this embodiment, the management ring provides logical computing power for processing blockchain business, and the logical operations of the blockchain business provided by the blockchain system are processed by the server cluster on the management ring, and accordingly The blockchain program runs on the server cluster of the management ring and enjoys the computing power of the server cluster. When any server cluster running the blockchain program on the management ring receives a message from the blockchain system, the The message sending server on the server cluster sends the message to the message management servers of other server clusters in the same management ring segment, and the message sending server on the server cluster sends the message to other management ring segments. The message management server of the peer server cluster, when other message management servers of the peer server cluster managing the ring shard receive the message, send the message to the same management ring through the message sending server of the peer server cluster Shard the message management servers of other server clusters to complete the management of all servers on the ring The message transfer between the groups. As shown in Figure 2, when the message management service in server cluster Aa receives a message, it sends the message to other server clusters (including server clusters Ab, Ac) in the same management ring shard through the message sending server in server cluster Aa. , ... Aj) message management server, and message management servers sent to other peer server clusters (including server clusters Ba, Ca, ..., Ja) that manage ring shards, and then server clusters Ba, Ca, ... ..., Ja passes the message to other server clusters corresponding to the management ring shard, such as server cluster Ba passes the message to other server clusters Bb, Bc, ..., Bj of the management ring shard where server cluster Ba is located; server cluster Ca passes the message to the other server clusters Cb, Cc, ..., Cj of the management ring segment where the server cluster Ca is located, so as to manage the transmission of messages between server clusters on the ring.
本实施例通过将为区块链系统提供运算力的服务器集群管理在逻辑上组成环状结构的管理环,并且每个服务器集群由垂直结构的若干台服务器组成,然后将所述管理环分成若干个管理环分片,当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器,通过分片式的管理环让消息在管理环上的服务器集群之间进行快速地传输;同时,基于垂直多层架构的服务器集群,服务器集群中的不同服务器分别执行不同的功能,互不影响,以此提高服务器之间的通信效率;并且基于服务器集群构成的环状结构的管理环支持管理环上的服务器集群扩容和缩容,保证管理环上服务器集群的高可用性和健壮性。This embodiment logically forms a management ring of a ring structure by managing the server clusters that provide computing power for the blockchain system, and each server cluster is composed of a number of servers in a vertical structure, and then the management ring is divided into several Management ring shards, when the message management service of the server cluster receives the message, sending the message to the message management server of other server clusters in the same management ring shard through the message sending server; and passing the message through the message The sending server sends the message management server to other peer-to-peer server clusters in the management ring shards. Through the fragmented management ring, messages are quickly transmitted between server clusters on the management ring. At the same time, based on the vertical multilayer architecture Server cluster, different servers in the server cluster perform different functions without affecting each other, so as to improve the communication efficiency between the servers; and the management ring based on the ring structure formed by the server cluster supports the expansion of the server cluster on the management ring And shrinking, ensuring the management of server clusters on the management ring Availability and robustness.
本申请的一种实施例,所述消息管理服务器与消息发送服务器的消息传输方向相同,所述消息管理服务器与请求传输服务器的消息传输方向不同。In an embodiment of the present application, the message transmission direction of the message management server and the message sending server is the same, and the message transmission direction of the message management server and the request transmission server are different.
本实施例中,不同层的服务器的消息传输方向不完全相同,所述消息管理服务器与消息发送服务器的消息传输方向相同,如图3所示,0、1、2号服务器的消息传输方向为逆时针方向,所述消息管理服务器与请求传输服务器的消息传输方向不同,如图3所示,3、4号服务器的消息传输方向为顺时针方向。本实施例通过双向环设计使得管理环上不同层的服务器只负责一种消息,从而提高消息处理速度,其次,不同层的服务器的单向的接口(只负责发送,或者只负责接收)比双向接口(既处理发送又处理接收)能够提高对消息的处理效率。In this embodiment, the message transmission directions of the servers in different layers are not exactly the same. The message transmission directions of the message management server and the message sending server are the same. As shown in FIG. 3, the message transmission directions of servers 0, 1, and 2 are: In a counterclockwise direction, the message transmission direction of the message management server and the request transmission server is different. As shown in FIG. 3, the message transmission directions of the server numbers 3 and 4 are clockwise. This embodiment uses a two-way ring design to make servers at different layers on the management ring only responsible for one type of message, thereby improving message processing speed. Secondly, the one-way interfaces (only responsible for sending or only receiving) of the servers at different layers are better than two-way. Interfaces (which handle both sending and receiving) can improve the efficiency of message processing.
本申请的一种实施例,所述方法还包括:According to an embodiment of the present application, the method further includes:
当服务器集群中的消息管理服务器出现异常时,将所述备用服务器配置为消息管理服务器;或,When the message management server in the server cluster is abnormal, the standby server is configured as a message management server; or,
当服务器集群中的消息发送服务器出现异常时,将所述备用服务器配置为消息发送服务器;或When the message sending server in the server cluster is abnormal, configure the standby server as the message sending server; or
当服务器集群中的请求传输服务器出现异常时,将所述备用服务器配置为请求传输服务器。When an abnormality occurs in the request transmission server in the server cluster, the standby server is configured as a request transmission server.
在一个服务器集群中,当其中的消息管理服务器出现异常时,将所述备用服务器配置为消息管理服务器,所述异常包括消息服务器出现宕机、拒绝访问或崩溃,无法完成正常的消息传力和差错检验,此时便发挥备用服务器的作用,将备用服务器配置为消息管理服务器,以暂时替代消息管理服务器完成特定的功能;同样的,当一个服务器集群中的消息发送服务器出现异常时,将所述备用服务器配置为消息发送服务器;当一个服务器集群中的请求传输服务器出现异常时,将所述备用服务器配置为请求传输服务器;以此保证该管理环的高可用性和健壮性,保证管理环系统的高可用性和健壮性。In a server cluster, when an abnormality occurs in the message management server therein, the standby server is configured as a message management server, and the abnormalities include that the message server is down, access is denied, or crashes, and normal message transmission cannot be completed. Error checking. At this time, it plays the role of a standby server. The standby server is configured as a message management server to temporarily replace the message management server to complete a specific function. Similarly, when an exception occurs in the message sending server in a server cluster, The backup server is configured as a message sending server; when an abnormality occurs in the request transmission server in a server cluster, the backup server is configured as a request transmission server; thereby ensuring the high availability and robustness of the management ring and the management ring system High availability and robustness.
本申请的一种实施例,所述方法还包括:According to an embodiment of the present application, the method further includes:
当新增服务器时,将新增的服务器添加至管理环上的某一服务器集群的备用服务器中。When adding a new server, add the new server to the standby server of a server cluster on the management ring.
当管理环上要新增服务器,提高管理环的运算能力时,本实施例中,将新增的服务器添加至管理环中的某一服务器集群的备用服务器中,保证管理环的灵活可扩展性。例如,原先每一个服务器集群中的服务器数量为6台,其中有1台作为备用服务器,负责为消息管理服务器或消息发送服务器或请求传输服务器的作宕机补充,而当管理环上新增了1台服务器时,将该服务器添加至管理环中的某一服务器集群(例如服务器集群Aa)中,并把该新增的服务器配置为服务器集群Aa的备用服务器,此时服务器集群Aa中便有2台备用服务器,负责为消息管理服务器或消息发送服务器或请求传输服务器的作宕机补充,一方面可以提高消息处理的效率,另一方面保证管理环的高可用性和健壮性。When a new server is added to the management ring to improve the computing power of the management ring, in this embodiment, the newly added server is added to the backup server of a server cluster in the management ring to ensure the flexibility and scalability of the management ring. . For example, the original number of servers in each server cluster was 6, and one of them was used as a backup server to supplement the downtime of the message management server or message sending server or request transmission server. When there is one server, add the server to a server cluster (such as server cluster Aa) in the management ring, and configure the newly added server as a backup server of server cluster Aa. At this time, there is a server cluster Aa. Two standby servers are responsible for complementing the downtime of the message management server or message sending server or request transmission server. On the one hand, it can improve the efficiency of message processing, and on the other hand, ensure the high availability and robustness of the management ring.
本申请的一种实施例,还包括:An embodiment of the present application further includes:
当新增服务器时,将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器。When adding a new server, mount the new server to a server cluster on the management ring as the mounted server.
当管理环上要新增服务器,提高管理环的运算能力时,本实施例中,将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器, 挂载服务器为服务器集群提供了拓展相应服务器的运算力,可选地,将所述新增的服务器挂载至服务器集群中,并将挂载服务器配置为消息管理服务器,提高该服务器集群的消息管理服务器的运算力;或,将所述新增的服务器挂载至服务器集群中,并将挂载服务器配置为消息发送服务器,提高该服务器集群的消息发送服务器的运算力;或,将所述新增的服务器挂载至服务器集群中,并将挂载服务器配置为请求传输服务器,提高该服务器集群的请求传输服务器的运算力;或,将所述新增的服务器挂载至服务器集群中,并将挂载服务器配置为备用服务器,提高该服务器集群的备用服务器的宕机保护能力。When a new server is added to the management ring to improve the computing power of the management ring, in this embodiment, the newly added server is mounted to a server cluster on the management ring as the mount server, and the mount server is the server. The cluster provides the computing power to expand the corresponding server. Optionally, the newly added server is mounted in a server cluster, and the mounted server is configured as a message management server, thereby improving the computing power of the server cluster's message management server. ; Or, mount the newly added server into a server cluster, and configure the mounted server as a message sending server to increase the computing power of the message sending server of the server cluster; or, mount the newly added server Load into a server cluster, and configure the mount server as a request transfer server to increase the computing power of the server cluster's request transfer server; or, mount the newly added server into a server cluster, and mount the server Configured as a standby server to improve the downtime protection capability of the standby server in this server cluster.
本申请的一种实施例,上述实施例中,所述挂载服务器通过负载均衡技术分担同一服务器集群的消息管理服务器、消息发送服务器、请求传输服务器的负载压力,每个所述服务器集群包括1台消息管理服务器、2台消息发送服务器、2台请求传输服务器、至少1台备用服务器。可选的,例如,当新增一台服务器时,将该新增的服务器挂载至服务器集群,作为服务器集群中消息管理服务器的挂载服务器,为消息管理服务器分担负载压力;当新增第二台服务器时,将该新增的服务器挂载至服务器集群,作为服务器集群中消息发送服务器的挂载服务器,为消息发送服务器分担负载压力;以此类推。另一实施方式是,根据服务器集群中负载压力的占比,将所述挂载服务器为负载压力的占比较大的服务器分担负载压力,保证相应服务器的高可用性。In an embodiment of the present application, in the foregoing embodiment, the mount server shares load pressure of a message management server, a message sending server, and a request transmission server of a same server cluster through a load balancing technology, and each of the server clusters includes 1 1 message management server, 2 message sending servers, 2 request transmission servers, and at least 1 standby server. Optionally, for example, when a new server is added, the new server is mounted to a server cluster as a mount server of the message management server in the server cluster to share load pressure for the message management server. For two servers, mount the newly added server to the server cluster as the mount server for the message sending server in the server cluster, and share the load pressure for the message sending server; and so on. According to another embodiment, according to the proportion of load pressure in the server cluster, the mounted server is used to share the load pressure among the servers with a relatively large load pressure to ensure the high availability of the corresponding server.
本申请的一种实施例,所述将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器之后,还包括:According to an embodiment of the present application, after mounting the newly added server to a server cluster on the management ring as the mounted server, the method further includes:
当管理环上的服务器集群的挂载服务器满足预设条件时,将所述挂载服务器聚集成新的服务器集群。When the mounted servers of the server cluster on the management ring meet a preset condition, the mounted servers are aggregated into a new server cluster.
当管理环上的服务器集群挂载的挂载服务器满足预设条件时,按照预先约定好的规则和阈值将所述挂载服务器聚集成新的服务器集群,使得管理环上新增一个服务器集群,进而提高管理环的运算力;例如,当管理环上的一个服务器集群上挂载了6个挂载服务器,其中1个挂载服务器被配置为消息管理服务器、2个挂载服务器被配置为消息发送服务器、2个挂 载服务器被配置为请求传输服务器、1个挂载服务器被配置为备用服务器,此时挂载服务器满足预设条件,能够独立成为一个服务器集群,此时将挂载服务器聚集成管理环上新的服务器集群。When a mounted server mounted on a server cluster on the management ring meets a preset condition, the mounted servers are aggregated into a new server cluster according to a predetermined rule and threshold, so that a new server cluster is added on the management ring. This further improves the computing power of the management ring; for example, when one server cluster on the management ring has six mounted servers, one of the mounted servers is configured as a message management server, and two mounted servers are configured as messages. The sending server, 2 mount servers are configured as request transmission servers, and 1 mount server is configured as a standby server. At this time, the mount server meets the preset conditions and can independently become a server cluster. At this time, the mount servers are aggregated. A new server cluster on the management ring.
在另一种实施例中,如图4所示,本申请提供一种环状服务器集群管理装置,包括:In another embodiment, as shown in FIG. 4, the present application provides a ring server cluster management device, including:
架构组成模块10:用于将若干个服务器集群在逻辑上组成环状结构的管理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器Architecture composition module 10: used to logically form a management ring of a plurality of server clusters, each server cluster is composed of several servers in a vertical structure, and the server cluster includes a message management server, a message sending server, and a request Transport server and backup server
分片模块20:用于将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群;Sharding module 20: used to divide the management ring into several management ring shards, each management ring shard contains several server clusters, and server clusters at the same location on different management ring shards are peer server clusters to each other;
消息管理模块30:用于当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。The message management module 30 is configured to: when the message management service of the server cluster receives the message, send the message to the message management server of other server clusters in the same management ring segment through the message sending server; and pass the message through The message sending server sends the message management server to the peer server clusters in other management ring shards.
本申请的一种实施例,所述消息管理服务器与消息发送服务器的消息传输方向相同,所述消息管理服务器与请求传输服务器的消息传输方向不同。In an embodiment of the present application, the message transmission direction of the message management server and the message sending server is the same, and the message transmission direction of the message management server and the request transmission server are different.
本申请的一种实施例,所述装置还包括执行:According to an embodiment of the present application, the apparatus further includes:
当服务器集群中的消息管理服务器出现异常时,将所述备用服务器配置为消息管理服务器;或,When the message management server in the server cluster is abnormal, the standby server is configured as a message management server; or,
当服务器集群中的消息发送服务器出现异常时,将所述备用服务器配置为消息发送服务器;或When the message sending server in the server cluster is abnormal, configure the standby server as the message sending server; or
当服务器集群中的请求传输服务器出现异常时,将所述备用服务器配置为请求传输服务器。When an abnormality occurs in the request transmission server in the server cluster, the standby server is configured as a request transmission server.
本申请的一种实施例,所述装置包括还执行:According to an embodiment of the present application, the apparatus further includes:
当新增服务器时,将新增的服务器添加至管理环上的某一服务器集群的备用服务器中。When adding a new server, add the new server to the standby server of a server cluster on the management ring.
本申请的一种实施例,所述装置还包括执行:According to an embodiment of the present application, the apparatus further includes:
当新增服务器时,将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器。When adding a new server, mount the new server to a server cluster on the management ring as the mounted server.
本申请的一种实施例,所述挂载服务器通过负载均衡技术分担同一服务器集群的消息管理服务器、消息发送服务器、请求传输服务器的负载压力;每个所述服务器集群包括1台消息管理服务器、2台消息发送服务器、2台请求传输服务器、至少1台备用服务器。According to an embodiment of the present application, the mount server shares load pressure of a message management server, a message sending server, and a request transmission server of the same server cluster through a load balancing technology; each of the server clusters includes a message management server, 2 messaging servers, 2 request transfer servers, and at least 1 standby server.
本申请的一种实施例,所述装置执行将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器之后,还包括执行:In an embodiment of the present application, the device executes mounting the newly added server to a certain server cluster on the management ring, and after mounting the server, the device further includes executing:
当管理环上的服务器集群的挂载服务器满足预设条件时,将所述挂载服务器聚集成新的服务器集群。When the mounted servers of the server cluster on the management ring meet a preset condition, the mounted servers are aggregated into a new server cluster.
在另一种实施例中,本申请提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该程序被处理器执行时实现上述实施例所述的服务器集群中的消息传递方法。其中,所述计算机可读存储介质包括但不限于任何类型的盘(包括软盘、硬盘、光盘、CD-ROM、和磁光盘)、ROM(Read-Only Memory,只读存储器)、RAM(Random Access Memory,随即存储器)、EPROM(Erasable Programmable Read-Only Memory,可擦写可编程只读存储器)、EEPROM(Electrically Erasable Programmable Read-Only Memory,电可擦可编程只读存储器)、闪存、磁性卡片或光线卡片。也就是,存储设备包括由设备(例如,计算机、手机)以能够读的形式存储或传输信息的任何介质,可以是只读存储器,磁盘或光盘等。In another embodiment, the present application provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium. When the program is executed by a processor, messages in the server cluster according to the foregoing embodiment are implemented. Delivery method. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks), ROM (Read-Only Memory, read-only memory), and RAM (Random Access Memory), EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or Rays card. That is, the storage device includes any medium that stores or transmits information in a readable form by a device (for example, a computer, a mobile phone), and may be a read-only memory, a magnetic disk, or an optical disk.
本申请实施例提供的一种计算机可读存储介质,可实现将若干个服务器集群在逻辑上组成环状结构的管理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器;将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群;当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器 集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。通过将为区块链系统提供运算力的服务器集群管理在逻辑上组成环状结构的管理环,并且每个服务器集群由垂直结构的若干台服务器组成,然后将所述管理环分成若干个管理环分片,当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器,通过分片式的管理环让消息在管理环上的服务器集群之间进行快速地传输;同时,基于垂直多层架构的服务器集群,服务器集群中的不同服务器分别执行不同的功能,互不影响,以此提高服务器之间的通信效率;并且基于服务器集群构成的环状结构的管理环支持管理环上的服务器集群扩容和缩容,保证管理环上服务器集群的高可用性和健壮性。A computer-readable storage medium provided in the embodiment of the present application can implement a management ring that logically forms a plurality of server clusters into a ring structure. Each server cluster is composed of several servers in a vertical structure. The server cluster includes A message management server, a message sending server, a request transmission server, and a backup server; the management ring is divided into a plurality of management ring fragments, and each management ring fragment includes a plurality of server clusters, and the server clusters at the same location on different management ring fragments Peer server clusters to each other; when the message management service of the server cluster receives the message, it sends the message to the message management servers of other server clusters in the same management ring shard through the message sending server; and passes the message through The message sending server sends the message management server to the peer server clusters in other management ring shards. The server cluster that provides computing power for the blockchain system is logically formed into a management ring of a ring structure, and each server cluster is composed of a number of servers in a vertical structure, and then the management ring is divided into several management rings Fragmentation, when the message management service of the server cluster receives the message, it sends the message to the message management server of other server clusters in the same management ring fragment through the message sending server; and sends the message through the message sending server A message management server to a peer-to-peer server cluster in other management ring shards, which allows messages to be quickly transferred between server clusters on the management ring through a sharded management ring; at the same time, a server cluster based on a vertical multilayer architecture , Different servers in a server cluster perform different functions without affecting each other, so as to improve the communication efficiency between the servers; and the management ring based on the ring structure formed by the server cluster supports the expansion and reduction of the server cluster on the management ring To ensure high availability of server clusters on the management ring Robustness.
本申请实施例提供的计算机可读存储介质可以实现上述环状服务器集群管理方法的实施例,具体功能实现请参见方法实施例中的说明,在此不再赘述。The computer-readable storage medium provided in the embodiment of the present application can implement the foregoing embodiment of the ring server cluster management method. For specific function implementation, refer to the description in the method embodiment, and details are not described herein again.
此外,在又一种实施例中,本申请还提供一种服务器集群,所述服务器集群包括若干个服务器,由所述服务器集群构成如图2、图3所示的管理环,如图5所示,所述服务器包括处理器503、存储器505等器件。本领域技术人员可以理解,图5示出的结构器件并不构成对所有服务器的限定,可以包括比图示更多或更少的部件,或者组合某些部件。存储器505可用于存储计算机程序501以及各功能模块,处理器503运行存储在存储器505的计算机程序501,从而执行设备的各种功能应用以及数据处理。存储器505可以是内存储器或外存储器,或者包括内存储器和外存储器两者。内存储器可以包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦写可编程ROM(EEPROM)、快闪存储器、或者随机存储器。外存储器可以包括硬盘、软盘、ZIP盘、U盘、磁带等。本申请所公开的存储器包括但不限于这些类型的存储器。本申请所公开的存储器505只作为例子而非作为限定。图5中所示的一个或多个处理器503 能够执行、实现图4中所示的架构组成模块10、分片模块20、消息管理模块30的功能。In addition, in another embodiment, the present application further provides a server cluster, where the server cluster includes several servers, and the server cluster constitutes a management ring as shown in FIG. 2 and FIG. 3, as shown in FIG. 5. The server includes devices such as a processor 503 and a memory 505. Those skilled in the art can understand that the structural device shown in FIG. 5 does not constitute a limitation on all servers, and may include more or fewer components than shown in the figure, or combine some components. The memory 505 may be used to store a computer program 501 and various functional modules, and the processor 503 runs the computer program 501 stored in the memory 505 to execute various functional applications and data processing of the device. The memory 505 may be an internal memory or an external memory, or include both an internal memory and an external memory. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. External storage may include hard disks, floppy disks, ZIP disks, U disks, magnetic tapes, and so on. The memory disclosed in this application includes, but is not limited to, these types of memory. The memory 505 disclosed in this application is only an example and not a limitation. One or more processors 503 shown in FIG. 5 can execute and implement the functions of the architectural composition module 10, the fragmentation module 20, and the message management module 30 shown in FIG.
在一种实施方式中,所述服务器包括一个或多个处理器503,以及一个或多个存储器505,一个或多个计算机程序501,其中所述一个或多个计算机程序501被存储在存储器505中并被配置为由所述一个或多个处理器503执行,所述一个或多个计算机程序501配置用于执行以上实施例所述的环状服务器集群管理方法。In one embodiment, the server includes one or more processors 503, and one or more memories 505, one or more computer programs 501, wherein the one or more computer programs 501 are stored in the memory 505 And is configured to be executed by the one or more processors 503, and the one or more computer programs 501 are configured to execute the ring server cluster management method described in the above embodiment.
本申请实施例提供的一种服务器集群,可实现将若干个服务器集群在逻辑上组成环状结构的管理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器;将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群;当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。通过将为区块链系统提供运算力的服务器集群管理在逻辑上组成环状结构的管理环,并且每个服务器集群由垂直结构的若干台服务器组成,然后将所述管理环分成若干个管理环分片,当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器,通过分片式的管理环让消息在管理环上的服务器集群之间进行快速地传输;同时,基于垂直多层架构的服务器集群,服务器集群中的不同服务器分别执行不同的功能,互不影响,以此提高服务器之间的通信效率;并且基于服务器集群构成的环状结构的管理环支持管理环上的服务器集群扩容和缩容,保证管理环上服务器集群的高可用性和健壮性。A server cluster provided in the embodiment of the present application can implement a management ring in which a plurality of server clusters logically form a ring structure. Each server cluster is composed of several servers in a vertical structure, and the server cluster includes a message management server. , Message sending server, request transmission server, and backup server; divide the management ring into several management ring fragments, each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are mutually opposite Wait for the server cluster; when the message management service of the server cluster receives the message, send the message to the message management server of other server clusters in the same management ring shard through the message sending server; and send the message through the message sending server Message management server sent to peer server clusters in other management ring shards. The server cluster that provides computing power for the blockchain system is logically formed into a management ring of a ring structure, and each server cluster is composed of a number of servers in a vertical structure, and then the management ring is divided into several management rings Fragmentation, when the message management service of the server cluster receives the message, it sends the message to the message management server of other server clusters in the same management ring fragment through the message sending server; and sends the message through the message sending server A message management server to a peer-to-peer server cluster in other management ring shards, which allows messages to be quickly transferred between server clusters on the management ring through a sharded management ring; at the same time, a server cluster based on a vertical multilayer architecture , Different servers in a server cluster perform different functions without affecting each other, so as to improve the communication efficiency between the servers; and the management ring based on the ring structure formed by the server cluster supports the expansion and reduction of the server cluster on the management ring To ensure high availability of server clusters on the management ring Robustness.
本申请实施例提供的服务器集群可以实现上述提供的环状服务器集群管理方法的实施例,具体功能实现请参见方法实施例中的说明,在此不 再赘述。The server cluster provided in the embodiment of the present application can implement the embodiment of the ring server cluster management method provided above. For specific function implementation, refer to the description in the method embodiment, and details are not described herein again.
以上所述仅是本申请的部分实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本申请的保护范围。The above description is only part of the implementation of the present application. It should be noted that, for those of ordinary skill in the art, without departing from the principles of the present application, several improvements and retouches can be made. These improvements and retouches also It should be regarded as the protection scope of this application.

Claims (9)

  1. 一种环状服务器集群管理方法,其特征在于,包括:A ring server cluster management method is characterized in that it includes:
    将若干个服务器集群在逻辑上组成环状结构的管理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器;Logically forming a plurality of server clusters into a ring-shaped management ring, each server cluster consisting of a plurality of servers in a vertical structure, the server cluster including a message management server, a message sending server, a request transmission server, and a backup server;
    将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群;Divide the management ring into several management ring fragments, each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are peer server clusters to each other;
    当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。When the message management service of the server cluster receives the message, it sends the message to the message management servers of other server clusters in the same management ring shard through the message sending server; and sends the message to the other management through the message sending server. Message management server for a peer-to-peer server cluster in a ring shard.
  2. 根据权利要求1所述的方法,其特征在于,所述消息管理服务器与消息发送服务器的消息传输方向相同,所述消息管理服务器与请求传输服务器的消息传输方向不同。The method according to claim 1, wherein the message transmission direction of the message management server and the message transmission server are the same, and the message transmission direction of the message management server and the request transmission server are different.
  3. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    当服务器集群中的消息管理服务器出现异常时,将所述备用服务器配置为消息管理服务器;或,When the message management server in the server cluster is abnormal, the standby server is configured as a message management server; or,
    当服务器集群中的消息发送服务器出现异常时,将所述备用服务器配置为消息发送服务器;或When the message sending server in the server cluster is abnormal, configure the standby server as the message sending server; or
    当服务器集群中的请求传输服务器出现异常时,将所述备用服务器配置为请求传输服务器。When an abnormality occurs in the request transmission server in the server cluster, the standby server is configured as a request transmission server.
  4. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    当新增服务器时,将新增的服务器添加至管理环上的某一服务器集群的备用服务器中。When adding a new server, add the new server to the standby server of a server cluster on the management ring.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, further comprising:
    当新增服务器时,将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器。When adding a new server, mount the new server to a server cluster on the management ring as the mounted server.
  6. 根据权利要求5所述的方法,其特征在于,所述挂载服务器通过负载均衡技术分担同一服务器集群的消息管理服务器、消息发送服务器、请求传输服务器的负载压力;每个所述服务器集群包括1台消息管理服务器、2台消息发送服务器、2台请求传输服务器、至少1台备用服务器。The method according to claim 5, wherein the mount server shares load pressure of a message management server, a message sending server, and a request transmission server of the same server cluster through a load balancing technology; each of the server clusters includes 1 1 message management server, 2 message sending servers, 2 request transmission servers, and at least 1 standby server.
  7. 根据权利要求5所述的方法,其特征在于,所述将新增的服务器挂载至管理环上的某一服务器集群中,作为挂载服务器之后,还包括:The method according to claim 5, wherein after mounting the newly added server to a certain server cluster on the management ring, after mounting the server, the method further comprises:
    当管理环上的服务器集群的挂载服务器满足预设条件时,将所述挂载服务器聚集成新的服务器集群。When the mounted servers of the server cluster on the management ring meet a preset condition, the mounted servers are aggregated into a new server cluster.
  8. 一种环状服务器集群管理装置,其特征在于,包括:A ring server cluster management device, comprising:
    架构组成模块:用于将若干个服务器集群在逻辑上组成环状结构的管理环,每个服务器集群由垂直结构的若干台服务器组成,所述服务器集群包括消息管理服务器、消息发送服务器、请求传输服务器及备用服务器Architecture composition module: a management ring for logically forming a ring structure of several server clusters. Each server cluster is composed of several servers in a vertical structure. The server cluster includes a message management server, a message sending server, and request transmission. Server and standby server
    分片模块:用于将所述管理环分成若干个管理环分片,每个管理环分片包含若干个服务器集群,不同管理环分片上相同位置的服务器集群互为对等服务器集群;Sharding module: used to divide the management ring into several management ring fragments, each management ring fragment contains several server clusters, and server clusters at the same location on different management ring fragments are peer server clusters to each other;
    消息管理模块:用于当服务器集群的消息管理服务接收到消息时,将所述消息通过消息发送服务器发送至同一管理环分片的其它服务器集群的消息管理服务器;以及,将所述消息通过消息发送服务器发送至其它管理环分片中的对等服务器集群的消息管理服务器。Message management module: When a message management service of a server cluster receives a message, the message is sent by a message sending server to a message management server of another server cluster of the same management ring segment; and the message is passed through the message The sending server sends the message management server to the peer server clusters in other management ring shards.
  9. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现权利要求1至7任一项所述的环状服务器集群管理方法。A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the ring server cluster management according to any one of claims 1 to 7 is implemented method.
PCT/CN2018/101829 2018-08-22 2018-08-22 Ring-shaped server cluster management method and device, and computer storage medium WO2020037580A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2018/101829 WO2020037580A1 (en) 2018-08-22 2018-08-22 Ring-shaped server cluster management method and device, and computer storage medium
CN201880002399.3A CN109496420B (en) 2018-08-22 2018-08-22 Ring server cluster management method, device and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/101829 WO2020037580A1 (en) 2018-08-22 2018-08-22 Ring-shaped server cluster management method and device, and computer storage medium

Publications (1)

Publication Number Publication Date
WO2020037580A1 true WO2020037580A1 (en) 2020-02-27

Family

ID=65713869

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/101829 WO2020037580A1 (en) 2018-08-22 2018-08-22 Ring-shaped server cluster management method and device, and computer storage medium

Country Status (2)

Country Link
CN (1) CN109496420B (en)
WO (1) WO2020037580A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110535706B (en) * 2019-09-02 2022-03-01 成都吉胜科技有限责任公司 Automatic cooperative scheduling method based on local area network
CN113364885B (en) * 2021-06-29 2022-11-22 天翼云科技有限公司 Micro-service calling method and device, electronic equipment and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969468A (en) * 2010-10-14 2011-02-09 广州从兴电子开发有限公司 Inquiry server cluster system and inquiry method
CN103684873A (en) * 2013-12-27 2014-03-26 乐视网信息技术(北京)股份有限公司 Polling heartbeat monitoring method, device and system
CN103974140A (en) * 2013-02-06 2014-08-06 中国科学院声学研究所 Management method and management system of TR069 protocol based large-scale interactive TV terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101677328A (en) * 2008-09-19 2010-03-24 中兴通讯股份有限公司 Content-fragment based multimedia distributing system and content-fragment based multimedia distributing method
CN103488687A (en) * 2013-09-02 2014-01-01 用友软件股份有限公司 Searching system and searching method of big data
CN105550274B (en) * 2015-12-10 2019-01-25 曙光信息产业(北京)有限公司 The querying method and device of this parallel database of two-pack
CN107231399B (en) * 2016-03-25 2020-11-06 阿里巴巴集团控股有限公司 Capacity expansion method and device for high-availability server cluster
US10317888B2 (en) * 2017-03-01 2019-06-11 PLETHORA IloT, S.L. Device and system including multiple devices for supervision and control of machines in industrial installation

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101969468A (en) * 2010-10-14 2011-02-09 广州从兴电子开发有限公司 Inquiry server cluster system and inquiry method
CN103974140A (en) * 2013-02-06 2014-08-06 中国科学院声学研究所 Management method and management system of TR069 protocol based large-scale interactive TV terminal
CN103684873A (en) * 2013-12-27 2014-03-26 乐视网信息技术(北京)股份有限公司 Polling heartbeat monitoring method, device and system

Also Published As

Publication number Publication date
CN109496420B (en) 2021-02-23
CN109496420A (en) 2019-03-19

Similar Documents

Publication Publication Date Title
CN108268208B (en) RDMA (remote direct memory Access) -based distributed memory file system
Collins et al. Online payments by merely broadcasting messages
JP2021508876A (en) Simultaneous transaction processing in a high-performance distributed recording system
EP3340055A1 (en) Communicating state information in distributed operating systems
US9495392B2 (en) System and method for parallel multiplexing between servers in a cluster
US20200374288A1 (en) Block chain-based multi-chain management method and system, electronic device, and storage medium
US20170063613A1 (en) Aggregation protocol
US20230316273A1 (en) Data processing method and apparatus, computer device, and storage medium
CN111902817A (en) Block chain data storage based on shared nodes and error correction coding
TWI759791B (en) Method, system and apparatus of shared blockchain data storage based on error correction code
TW202119428A (en) Consenus of shared blockchain data storage based on error correction code
US11095476B2 (en) Spanning tree protocol enabled n-node link aggregation system
TW202119243A (en) Prioritizing shared blockchain data storage
CN113490927A (en) RDMA transport with hardware integration and out-of-order placement
WO2020019342A1 (en) Method for delivering message in server cluster, device, and storage medium.
CN114050904B (en) Consensus system and method based on two-level leader node fragmentation structure
CN111489256A (en) Cross-chain processing method, equipment and system for multi-chain block chain system
US20200112499A1 (en) Multiple quorum witness
CN112073456B (en) Method, related equipment and system for realizing distributed lock
WO2020037580A1 (en) Ring-shaped server cluster management method and device, and computer storage medium
WO2023184881A1 (en) Proposal consensus execution method, blockchain system, device and storage medium
CN114745140B (en) Urban planning field block chain consensus verification method and system based on aggregation encryption
JP2018014049A (en) Information processing system, information processing device, information processing method and program
CN108462737B (en) Batch processing and pipeline-based hierarchical data consistency protocol optimization method
WO2022183518A1 (en) Cloud-computing-oriented high-performance blockchain architecture method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18930975

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18930975

Country of ref document: EP

Kind code of ref document: A1