CN110719189A - Server cluster control system based on TCPIP protocol - Google Patents

Server cluster control system based on TCPIP protocol Download PDF

Info

Publication number
CN110719189A
CN110719189A CN201910796576.6A CN201910796576A CN110719189A CN 110719189 A CN110719189 A CN 110719189A CN 201910796576 A CN201910796576 A CN 201910796576A CN 110719189 A CN110719189 A CN 110719189A
Authority
CN
China
Prior art keywords
server
client
control end
control
instruction
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201910796576.6A
Other languages
Chinese (zh)
Inventor
陈鼎
陈运文
蹇智华
纪达麒
王笑添
陈祥龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Daerguan Information Technology (shanghai) Co Ltd
Original Assignee
Daerguan Information Technology (shanghai) Co Ltd
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 Daerguan Information Technology (shanghai) Co Ltd filed Critical Daerguan Information Technology (shanghai) Co Ltd
Priority to CN201910796576.6A priority Critical patent/CN110719189A/en
Publication of CN110719189A publication Critical patent/CN110719189A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]

Abstract

The invention discloses a server cluster control system based on TCPIP protocol, the control system includes: a control end server; the control end is internally provided with an address of the control end server, and the control end server is connected with the control end; a plurality of client servers; the system comprises a plurality of routers, a client server, a control end server and a router, wherein the client server, the control end server and the router are jointly provided with a distributed database, and the router stores the address and the state information of the client server; the clients are connected with the client servers distributed by the router; the control end sends an instruction, the control end server receives the instruction and writes the instruction into the distributed database, and the client end server reads the instruction through the distributed database and then sends the instruction to the client end connected with the client end server. The invention can enable a user to use one client to control a large number of machines to complete required work.

Description

Server cluster control system based on TCPIP protocol
Technical Field
The invention belongs to the field of computers, and particularly relates to a server cluster control system based on a TCPIP protocol.
Background
In a production environment, hundreds of servers need to be controlled to cooperate to complete a certain work, and how to make the servers cooperate becomes a problem to be solved.
As long as the machine is in fault, thousands of machines work together, and how to automatically process the fault is also a problem to be solved.
Disclosure of Invention
The invention provides a server cluster control system based on a TCPIP protocol, and partial embodiments of the invention can control thousands of computers to complete a certain work and store corresponding work results by using a single client, and when the client server fails, the fault transfer can be automatically completed under the condition that the client normally works.
In order to achieve the purpose, the invention adopts the following technical scheme:
a server cluster control system based on the TCPIP protocol, the control system comprising: a control end server; the control end is internally provided with an address of the control end server, and the control end server is connected with the control end; a plurality of client servers; the system comprises a plurality of routers, a client server, a control end server and a router, wherein the client server, the control end server and the router are jointly provided with a distributed database, and the router stores the address and the state information of the client server; and
the clients are connected with the client servers distributed by the router; the control end sends an instruction, the control end server receives the instruction and writes the instruction into the distributed database, the client server reads the instruction through the distributed database and sends the instruction to a client connected with the client server, the client executes the instruction and sends feedback to the corresponding client server, the client server writes the feedback into the distributed database, and the control end reads the feedback through the control end server.
Preferably, the control end and the control end server communicate through a socket.
Preferably, the client server and the client communicate through a socket.
Preferably, the control end server and the client end server communicate through the distributed database.
Preferably, an update index is set in the distributed database, the update index is used to indicate whether the control end server receives a new instruction from the control end, and the client end server checks the update index regularly to determine whether to read the instruction.
Preferably, the distributed database is a MongoDB.
Preferably, the central processing units of the client server and the router are both composed of two kernels, wherein one kernel is responsible for information transceiving tasks, and the other kernel is responsible for data computing tasks.
Preferably, the client server and client communication is based on a TCPIP encapsulated protocol, using agreed-upon key encryption and decryption.
Preferably, the control end server includes a WEB control interface, and the WEB control interface can receive an external instruction.
Compared with the prior art, the invention has the beneficial effects that:
1. the control is simple and convenient, and a user can use one client to control all machines to complete required work;
2. the expansion is convenient, and when the number of client machines is increased, the number of corresponding servers is increased;
3. the results generated by all machines can be stored, and reading is convenient;
4. the high availability, the control end broadcasts the information to the customer end in a large scale in short time, the information between customer end machine and customer end server is strictly secret, prevent eavesdropping, when the server breaks down, realize the fault transfer under the situation that does not influence the normal work of the customer end machine, the server processes a large amount of information from customer end asynchronously, the server unit takes CPU kernel as measurement, a server unit (comprising 2 kernels) supports 3000 customer ends to communicate at the same time;
5. the client deployment is convenient, one-key deployment is supported, and when the number of clients is increased greatly, the server can be added quickly through simple configuration.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic overall structure diagram of an embodiment of the present invention.
Fig. 2 is a schematic diagram of a client connection method according to an embodiment of the present invention.
Fig. 3 is a diagram illustrating an internal architecture of a client server according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
In the description of the present invention, it is to be understood that the terms "longitudinal", "lateral", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like, indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced devices or elements must have a particular orientation, be constructed in a particular orientation, and be operated, and thus, are not to be construed as limiting the present invention.
As shown in fig. 1 to 3, this embodiment provides a server cluster control system based on the TCPIP protocol, where the control system includes: a control end server 1; the control end 2, the address of the control end server 1 is configured in the control end 2, and the control end server 1 is connected with the control end 2; a plurality of client servers 3; a distributed database 5 is jointly arranged in the plurality of routers 4, the client server 3, the control end server 1 and the routers 4, and the routers 4 store the address and the state information of the client server 3; and
the clients 6 are connected with the client servers 3 distributed by the router 4; the control end 2 issues an instruction, the control end server 1 receives the instruction and writes the instruction into the distributed database 5, the client end server 3 reads the instruction through the distributed database 5 and then sends the instruction to the client end 6 connected with the client end server, the client end 6 executes the instruction and then sends feedback to the corresponding client end server 3, the client end server 3 writes the feedback into the distributed database 5, and the control end 2 reads the feedback through the control end server 1.
The control end 2 and the control end server 1 communicate through a socket.
The client server 3 and the client 6 communicate via a socket.
The control end server 1 and the client end 6 end server communicate through a distributed database 5.
The distributed database 5 is provided with an update index, the update index is used for indicating whether the control end server 1 receives a new instruction from the control end 2, and the client end server 3 regularly checks the update index to judge whether to read the instruction.
The distributed database 5 is a MongoDB.
The central processing units of the client server 3 and the router 4 are composed of two kernels, wherein one kernel is responsible for information transceiving tasks, and the other kernel is responsible for data computing tasks.
The client server 3 and client 6 communicate a tcp ip encapsulation based protocol, using a contracted key for encryption and decryption.
The control end server 1 comprises a WEB control interface which can receive external instructions.
The system comprises a client, a router, a client server, a control end server and a control end. The control end supports command modes and web interface operations.
A client: compiled using go.
Client connection mode, as shown in fig. 2:
client first connects to the router, asking for Client server status.
2. The router returns the client server state. And after receiving the information, the client is disconnected with the router.
And 3, connecting the client with the client server.
4. And establishing long-term connection through the verification of the client server.
A client server:
1. the core is written based on python AsyncIo, requiring more than python version 3.6.
2. The linux epoll technique is used to address high concurrency issues.
3. The information transceiving and computing units are assigned to different cores.
4. The client server designation is computed in units of cores, eliminating the physical machine concept.
5. The client server and the client communicate by using a custom protocol based on tcp/ip packaging and by using a convention key for encryption and decryption.
The router:
1. the server has 2 functions of a router server and a client server. The router is generated by an internal election mechanism (most principles), and can be understood as being elected from client servers, and the elected client servers are no longer responsible for serving clients, but are dedicated to routing.
2. And counting the health state of each client server in the client server cluster.
3. And allocating the client to the healthy client server.
4. And counting the health state of the router server, and initiating election in the alternative machine when the router fault is found.
5. After the election is completed, the VIP server address is automatically updated.
When the client server fails, the router can rapidly allocate a new client server to the client after acquiring the failure information, so that the barrier processing is completed under the condition that the work of the client is not influenced.
A control end:
1. command line control.
Web interface control.
A control end server:
1. and analyzing the control end command.
2. And (5) client-side one-key deployment.
3. And providing cluster system state and related information lookup.
A database:
using mongodb, read-write separation.
1. Control end issuing command flow
The process comprises the following steps: control end server client
1.1 the control end and the control end server communicate through socket
1.2 control end server and client end server communicate through database
1.3 client Server and client communicate through socket
2. Client-side login client-side server process
2.1. Client-side router returns client-side server address
2.2 client > client Server
3. Deployment flow
3.1 database: deploying database clusters
3.2 router: copying the code to a physical machine, configuring the address of the database and directly operating. And 2 routers automatically configure the keeplive virtual IP, and one router is randomly selected from the 2 routers to serve as a main router.
3.3 client server: copying the code to a physical machine, configuring the address of the database and directly operating. The client server and the router automatically establish communication.
3.4 control end server: copying the code to a physical machine, configuring the address of the database and directly operating. The control end server, the client end server and the router can automatically establish communication.
3.5, control end: the control end can work only by configuring the address of the server of the control end.
3.6, client: there are 2 ways of installation.
Mode 1: and manually or through an operation and maintenance software cluster, controlling the PC (90 machines) where the client is located to download to the control end server, and then operating.
Mode 2: and uploading the account number, the password and the IP address of 90 machines to a control end server, and automatically deploying the control end by one key.
Although the present invention has been described in detail with respect to the above embodiments, it will be understood by those skilled in the art that modifications or improvements based on the disclosure of the present invention may be made without departing from the spirit and scope of the invention, and these modifications and improvements are within the spirit and scope of the invention.

Claims (9)

1. A server cluster control system based on a TCPIP protocol, the control system comprising:
a control end server (1);
the control terminal (2), the address of the control terminal server (1) is configured in the control terminal (2), and the control terminal server (1) is connected with the control terminal (2);
a number of client servers (3);
the system comprises a plurality of routers (4), a distributed database (5) is jointly distributed in the client server (3), the control end server (1) and the routers (4), and the routers (4) store the address and state information of the client server (3); and
a plurality of clients (6), wherein the clients (6) are connected with the client server (3) distributed by the router (4);
the control end (2) issues an instruction, the control end server (1) receives the instruction and writes the instruction into the distributed database (5), the client server (3) reads the instruction through the distributed database (5) and then sends the instruction to the client (6) connected with the client server, the client (6) executes the instruction and then sends feedback to the corresponding client server (3), the client server (3) writes the feedback into the distributed database (5), and the control end (2) reads the feedback through the control end server (1).
2. The server cluster control system based on the TCPIP protocol of claim 1, wherein the control terminal (2) and the control terminal server (1) communicate through a socket.
3. The server cluster control system based on TCPIP protocol of claim 2, wherein the client server (3) and the client (6) communicate through a socket.
4. The server cluster control system based on the TCPIP protocol of claim 3, wherein the control end server (1) and the client end server (6) communicate through the distributed database (5).
5. The server cluster control system based on TCPIP protocol of claim 4, wherein the distributed database (5) is configured with an update indicator, the update indicator is used to indicate whether the control end server (1) receives a new command from the control end (2), and the client end server (3) checks the update indicator regularly to determine whether to read the command.
6. The server cluster control system based on TCPIP protocol according to any one of claims 1 to 5, wherein the distributed database (5) is MongoDB.
7. The server cluster control system based on the TCPIP protocol of claim 1, wherein the central processing units of the client server (3) and the router (4) are composed of two cores, one of which is responsible for the information transceiving task and the other is responsible for the data computing task.
8. The server cluster control system based on TCPIP protocol according to claim 1, wherein the client server (3) and the client (6) communicate a TCPIP encapsulation based protocol using agreed upon key encryption and decryption.
9. The server cluster control system based on TCPIP protocol of claim 1, wherein the control end server (1) includes a WEB control interface, and the WEB control interface can receive external commands.
CN201910796576.6A 2019-08-27 2019-08-27 Server cluster control system based on TCPIP protocol Pending CN110719189A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910796576.6A CN110719189A (en) 2019-08-27 2019-08-27 Server cluster control system based on TCPIP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910796576.6A CN110719189A (en) 2019-08-27 2019-08-27 Server cluster control system based on TCPIP protocol

Publications (1)

Publication Number Publication Date
CN110719189A true CN110719189A (en) 2020-01-21

Family

ID=69209490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910796576.6A Pending CN110719189A (en) 2019-08-27 2019-08-27 Server cluster control system based on TCPIP protocol

Country Status (1)

Country Link
CN (1) CN110719189A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102692897A (en) * 2012-05-07 2012-09-26 西安中创物联科技有限公司 Internet of Things based industrial equipment monitoring system and method thereof
US20170286516A1 (en) * 2010-12-23 2017-10-05 Eliot Horowitz Systems and methods for managing distributed database deployments
CN109765833A (en) * 2019-01-16 2019-05-17 四川长虹电器股份有限公司 A method of monitoring Internet of Things equipment state of a control

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170286516A1 (en) * 2010-12-23 2017-10-05 Eliot Horowitz Systems and methods for managing distributed database deployments
CN102692897A (en) * 2012-05-07 2012-09-26 西安中创物联科技有限公司 Internet of Things based industrial equipment monitoring system and method thereof
CN109765833A (en) * 2019-01-16 2019-05-17 四川长虹电器股份有限公司 A method of monitoring Internet of Things equipment state of a control

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
肖华等: "基于物联网与云架构的实验室监督管理系统", 《软件导刊》 *

Similar Documents

Publication Publication Date Title
JP4622835B2 (en) Virtual computer system and network communication method thereof
US20210157483A1 (en) Local management console for storage devices
DE102012210914B4 (en) Switch fabric management
US8244924B2 (en) Discovery and configuration of device configurations
JP4733399B2 (en) Computer system, computer, storage device and management terminal
WO2008070191B1 (en) Apparatus, system, and method for a reconfigurable baseboard management controller
US8612973B2 (en) Method and system for handling interrupts within computer system during hardware resource migration
US20090282283A1 (en) Management server in information processing system and cluster management method
JP2019101700A (en) System and method for controlling the same and program
CN106911648B (en) Environment isolation method and equipment
CN104503965A (en) High-elasticity high availability and load balancing realization method of PostgreSQL (Structured Query Language)
CN112395014B (en) Gateway service implementation method, device, equipment and storage medium
CN114531373A (en) Node state detection method, node state detection device, equipment and medium
CN110677509B (en) Automatic address configuration system suitable for high-performance computer
CN105264447B (en) Process automation system with central computation unit
CN110719189A (en) Server cluster control system based on TCPIP protocol
US20220283844A1 (en) Apparatus and method for port mapping of virtual machines in cloud infrastructure
CN116962184A (en) Method, system, terminal and medium for automatically deploying RoCE cluster
WO2022247575A1 (en) Interaction method and apparatus, and switching chip, medium and multi-node server
CN107704354B (en) Test method for port virtualization of multi-control storage system
US20220094590A1 (en) Self-healing network of infrastructure processing units
CN111884837A (en) Migration method and device of virtual encryption machine and computer storage medium
JP5176482B2 (en) Management program, management method, management apparatus, and communication system
CN110955537A (en) Method and device for containing pipes by physical machine
WO2019180812A1 (en) Information processing device, method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20200121

WD01 Invention patent application deemed withdrawn after publication