CN112351098B - Copying service cluster system, control method, device and medium - Google Patents

Copying service cluster system, control method, device and medium Download PDF

Info

Publication number
CN112351098B
CN112351098B CN202011228913.0A CN202011228913A CN112351098B CN 112351098 B CN112351098 B CN 112351098B CN 202011228913 A CN202011228913 A CN 202011228913A CN 112351098 B CN112351098 B CN 112351098B
Authority
CN
China
Prior art keywords
test
server
cluster
copying
service cluster
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.)
Active
Application number
CN202011228913.0A
Other languages
Chinese (zh)
Other versions
CN112351098A (en
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.)
Sangfor Technologies Co Ltd
Original Assignee
Sangfor Technologies 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 Sangfor Technologies Co Ltd filed Critical Sangfor Technologies Co Ltd
Priority to CN202011228913.0A priority Critical patent/CN112351098B/en
Publication of CN112351098A publication Critical patent/CN112351098A/en
Application granted granted Critical
Publication of CN112351098B publication Critical patent/CN112351098B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • G06F16/275Synchronous replication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
    • 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/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a copying service cluster system, which comprises: the system comprises a webpage server, a test server cluster, a database cluster, a scheduling server, a DHCP dynamic host configuration protocol server and a system mirror image restoration server. A control method of a copying service cluster system comprises the following steps: when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction; obtaining a target test server corresponding to the function in the test server cluster; calling the target test server to enable the target test server to test the equipment to be tested according to the copying test instruction; and storing the test result of the target test server into the database cluster. The method and the device realize batch control of the equipment to be tested to automatically perform the copying test, and improve the copying test efficiency.

Description

Copying service cluster system, control method, device and medium
Technical Field
The present invention relates to the field of testing, and in particular, to a copying service cluster system, a control method, a device, and a computer storage medium.
Background
With the rapid development of the prior art, product types, customer requirements, application conditions and the like are gradually becoming more and more diversified, and in order to ensure that the product quality meets the customer requirements, different testing and screening must be performed according to various different products, different customers and different applications in a targeted manner, which means that the situation that a plurality of control programs are not available on the same server, a plurality of products need to be tested, and even different products are possibly tested at the same time is necessarily avoided, so that the working efficiency of a copying test server is low.
Disclosure of Invention
The application mainly aims to provide a copying service cluster system, a control method, a control device and a computer storage medium, and aims to solve the problem that in the prior art, a copying test server is low in working efficiency due to overload.
To achieve the above object, the present invention provides a copy service cluster system including:
the system comprises a webpage server, a client and a control module, wherein the webpage server is used for providing a webpage interface for the client so that the client triggers a control instruction through the webpage interface;
the system comprises a test server cluster, a network system server and a network system server, wherein the test server cluster comprises a plurality of test servers, the test servers are different in corresponding test functions, the test servers comprise an NFS network system server, an LVS virtual server and a management server, and the management server synchronously updates the network system server cluster;
the system comprises a web server, a test server cluster and a database cluster, wherein the database cluster is a MySQL relational database management system and is used for storing data of the web server and the test server cluster, and the web server, the test server cluster and the database cluster are respectively and independently deployed on different servers to form a copying distributed system.
Optionally, the database cluster includes a master database node and a plurality of slave database nodes, the master database node is used for processing writing operation, the slave database nodes are used for processing reading operation, and the master database synchronously updates the processing result of the writing operation to each slave database node.
Optionally, the copying service cluster system further includes a scheduling server, where the scheduling server is connected to each test server in the test server cluster, and the scheduling server is configured to schedule the test server cluster in the test server cluster according to the remaining memory of each test server.
Optionally, the copy service cluster system further includes a DHCP (Dynamic Host Configuration Protocol, dynamic host configuration protocol, which is a network protocol of a local area network, which means that a server controls a section of IP address range, and when a client logs in to the server, the client can automatically obtain an IP address and a subnet mask assigned by the server, and the DHCP server is used to send a dynamic IP address of a device to be tested to the client.
Optionally, the copying service cluster system further comprises a system mirror image restoration server, which is used for performing system restoration on the test equipment.
In order to achieve the above object, the present invention further provides a control method of a copying service cluster system, where the steps of the control method of the copying service cluster system include:
when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction;
obtaining a target test server corresponding to the function in the test server cluster;
calling the target test server to enable the target test server to test the equipment to be tested according to the copying test instruction;
and storing the test result of the target test server into the database cluster.
Optionally, before the step of acquiring the function corresponding to the copy test instruction when the copy test instruction sent by the client is received, the method further includes:
and sending a test interface to the client logging in the webpage server so that the client can send a test instruction through the test interface.
Optionally, the step of calling the target test server to enable the target test server to test the device to be tested according to the copying test instruction includes:
acquiring a test log of the target test server, and acquiring test process information according to the test log;
and sending the test process information to the client through the webpage server so that the client can display the test process information.
And when detecting that the copying test process of the device to be tested is interrupted, outputting alarm prompt information.
In order to achieve the above object, the present invention further provides a control device for a copying service cluster system, which includes a memory, a processor, and a control program for the copying service cluster system stored in the memory and capable of running on the processor, wherein the processor implements the control method for the copying service cluster system as described above when executing the control program for the copying service cluster system.
To achieve the above object, a computer-readable storage medium has stored thereon a control program of a copy service cluster system, which when executed by a processor, implements a control method of a copy service cluster system as described above.
The control device of the copying service cluster system distributes the copying test instruction corresponding to the copying test instruction sent by the client to the target test server corresponding to the test service cluster, and the target test server performs copying test on the equipment to be tested according to the copying test instruction and stores the test result in the database cluster. Therefore, when a plurality of control programs and a plurality of products are to be tested on the same server and even different products are possibly tested at the same time, the control device of the copying service cluster system distributes copying test instructions sent by the client to different servers in the test server cluster, and the copying test efficiency is improved.
Drawings
FIG. 1 is a block diagram illustrating an embodiment of a copy service cluster system of the present invention;
FIG. 2 is a block diagram of another embodiment of a copy service cluster system of the present invention;
FIG. 3 is a schematic diagram of an interface of a web server of the copy service cluster system of the present invention;
FIG. 4 is a schematic diagram of the present invention employing NFS (network File System) services as a test server cluster;
FIG. 5 is a schematic diagram of the hardware structure of the control device of the copying service cluster system of the present invention;
FIG. 6 is a flowchart of an embodiment of a control method of a copy service cluster system according to the present invention.
Detailed Description
In order that the above-described aspects may be better understood, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, fig. 1 is a block diagram illustrating an embodiment of a copying service cluster system according to the present invention.
Copying (burning) generally refers to a newly purchased computer, and particularly, a newly created computer allows the machine to run for 1-2 days without shutdown to test hardware compatibility and system stability. Because computer products generally appear in a short time if problems occur due to hardware performance and the like, if the time passes, the system is relatively stable, so after the computer is purchased, copying is generally carried out, so that the problems are found in a maintenance period, the problems are solved immediately, and the loss is reduced. The method does not run any software, is the most basic copying machine, and is used for detecting the compatibility of basic hardware of a computer. If no problem occurs, the large program is run to copy, for example, a large game, and the working conditions of hardware such as a memory, a display card and the like can be detected. A server cluster refers to a collection of at least two servers together for the same service, which appears to a client as if there is only one server. The cluster can use a plurality of computers to perform parallel computation so as to obtain high computation speed, and can also use a plurality of computers to perform backup, so that any machine breaks the whole system or can normally operate. When any failure occurs in a server, for example: the cluster monitors the failed server based on the application and other related servers take over the application when the hard disk, memory, CPU, motherboard, I/O board and power fails or when an administrator misoperates a server resulting in a shutdown of the server and the application on the server.
The copying service cluster system comprises: the system comprises a web server, a test server cluster and a database cluster, wherein the database cluster is used for storing data of the web server and the test server cluster. The webpage server is used for providing a webpage interface for the client so that the client can trigger a control instruction through the webpage interface. The test server cluster comprises a plurality of test servers, the test functions corresponding to different test servers are different, the test servers comprise NFS network system servers, LVS virtual servers and management servers, and the management servers synchronously update the network system server cluster. The database cluster is used for storing test data generated in the copying test process of the copying service cluster system.
Referring to fig. 3, fig. 3 is an interface schematic diagram of a web server of the copying service cluster system according to the present invention. The web server refers to a program of a certain type of computer residing on the internet, and can process requests of web clients such as a browser and return corresponding responses, can place web files for world-wide browsing, and can place data files for world-wide downloading. The three most popular web servers at present are Apache, nedinx and IIS. The WEB service (WEB service) may be configured to monitor and display the copy status of the device under test, the system mirror restore progress, the basic information, the running log information, the copy test function selection button, and the function selection button for issuing other services through Apache (holly Apache HTTP Server, an open source WEB server), php (Hypertext Preprocessor, i.e., a "hypertext preprocessor", a general open source scripting language) and MySQL (a relational database management system), in which the relational database stores data in different tables, and the SQL language (Structured Query Language, structured query language, a database query and programming language, and a relational database system for accessing data and querying, updating, and managing) used by MySQL is the most commonly used standardized language for accessing databases. The interface shown in fig. 3 (a) is a main industry display, in which windows of copying, display parameters, restoring a universal master disc, uploading a master disc, managing the master disc, a Ghost disc (system restoring tool), building a bridge bombing package, viewing a bombing package page, sending an instruction, querying a gateway ID, managing a server, managing a database and the like are provided, services corresponding to the display parameters include displaying copying progress, copying state, an IP address of a device to be tested, a provider, a model, a management index, a hard disk drive, an operator, online time, start time, refresh time, error number, description and the like, and the display parameters can also query historical parameter records and the like. The interface shown in fig. 3 (b) is an interface for issuing batch commands in the copying test process, and functions corresponding to the interface include a confirmation device: manually input instructions and formatting/deleting validation of partitions, common command buttons: a restart instruction, a shutdown instruction, refresh management index information, synchronization time to bios (basic input output system), group RAID (Redundant Arrays of Independent Disks, redundant array of independent disks), led off, led on, and led flash. An operator can issue various operation instructions to the equipment to be tested in batches through the webpage interface, and after the equipment to be tested receives the issued instructions, corresponding operations such as automatic copying test, automatic reduction system mirror image, automatic writing customized information such as the product model number and supplier information of the equipment to be tested can be performed according to the names and the contents of the instructions.
Referring to fig. 4, fig. 4 is a schematic diagram of the present invention employing NFS services (Network File System, network file system, NFS is an application based on UDP/IP protocol, implemented using a remote procedure call mechanism) as a test server cluster. The test server cluster integrates various test tools, automatic test scripts, an automatic recovery backup system and other tools, can be compatible with various equipment operation, has different test functions distributed on different test servers, and can dynamically increase and decrease corresponding servers according to functional requirements. The control device of the copying service cluster system can realize that the synchronous management test server cluster carries out batch copying test. The test server cluster can adopt NFS network system service, and the network system service is a network system which is to be issued to the equipment end by a server for operation. A plurality of NFS network system servers+lvss (Linux Virtual Server, virtual servers) make up a test server cluster. The management server updates the NFS1 through SCP (secure copy), the NFS network system service cluster is synchronized with the NFS1 through Lsyncd (real-time synchronization tool), so that after the management server changes related files, the related files are safely copied to the NFS1 server, and then the Lsyncd service (Lsyncd real-time synchronization tool, an lua language encapsulates an inotify monitoring and rsync backup tool, an inotify triggering mechanism in a Linux kernel is adopted, and then difference synchronization is carried out through rsync, so that a real-time effect is achieved, the Lsyncd can simply and efficiently transmit mass data and support multiple working modes) and automatically synchronizes the change information to all the NFS servers, and the effect of reducing maintenance management work of each server is achieved. The test service cluster performs load scheduling through the LVS virtual server, the LVS virtual server adopts a DR (Direct Routing) mode, the DR Direct Routing mode is that the scheduler dynamically selects a server according to the load condition, the connection number, etc. of each real server, the target IP address (Internet Protocol Address ) and the target port are not modified, the IP message is not encapsulated, the target MAC address of the data frame of the request message is changed into the MAC address (Media Access Control Address, local area network address) of the real server, and then the modified data frame is sent to the target test server on the local area network of the server set.
Specifically, the working process of the direct routing mode is: when a client sends a test service request to a device to be tested corresponding to a target IP address, an LVS virtual server selects a pool (server cluster) of a corresponding real-server according to the target IP address, a test server is selected from the real-servers to test the device to be tested according to a preset algorithm, the virtual server records the connection in a hash (hash table, a data structure which can be directly accessed according to a key code value), then a request packet of the client is sent to the selected test server, and finally the selected test server directly transmits a response packet to the client; when the client continues to send the request packet, the virtual server directly sends the request belonging to the connection to the server selected just before according to the information of the hash table recorded just before; when the connection is aborted or times out, the record in the hash table will be deleted.
The database cluster comprises a master database node and a plurality of slave database nodes, wherein the master database node is used for processing writing operation, the slave database nodes are used for processing reading operation, the master database synchronously updates processing results of the writing operation to the slave database nodes, backup of copy machine data is realized through master-slave synchronization, a database middleware is added to store a large data table in a split mode, shan Zhangbiao of a plurality of processes for simultaneously reading and writing databases is supported, and reading and writing separation is realized to relieve reading and writing pressure of a single database. The control device of the copying service cluster system can upload all copying test results to the database cluster for storage so that the data can be managed uniformly.
It can be understood that the copy service cluster system may be set up as a virtual server cluster built on a cloud platform based on a server cluster or a single server, and may also be set up as an entity server cluster. For example, a plurality of server components, an aCloud (cloud service) virtualized private cloud platform, a copying server cluster is built on the aCloud cloud service platform, each functional module is independently deployed on a single virtual server, such as a test server cluster (which can be set as an NFS service cluster), a database service cluster (which can be set as a MySQL database management system, a plurality of MySQL databases form a Mycat service cluster, and Mycat is an open-element database middleware), and a copying distributed system (a system formed by dividing a service into a plurality of sub-services and deploying the sub-services on different servers) is formed. Each functional module can be flexibly expanded according to the current load pressure, so that the test efficiency of the copying server cannot be limited by a single functional module. If the NFS service cluster performs load scheduling through the LVS server, when there are more load devices, the NFS server may be added to relieve the system load pressure. The service is deployed to an aCloud cloud service platform, a failure transfer mechanism of the platform is utilized (the failure transfer mechanism is realized through a failure transfer cluster, the failure transfer cluster is a high-availability basic structure layer and consists of a plurality of computers, each computer is equivalent to a redundant node, the whole cluster system allows a part of nodes to be disconnected, failed or damaged without affecting the normal operation of the whole system. Increasing the overall fault tolerance. Each functional module may constitute a redundant server (meaning that some components of the system are repeatedly configured, and when the system fails, the components of the redundant configuration intervene and take over the work of the failed components, thereby reducing the downtime of the system). And e.g. a MySQL service cluster, backing up data is realized through master-slave synchronization, a database middleware is added to store large data tables in a separated mode, reading and writing separation is realized, and reading and writing pressure of a single database is relieved. All the devices acquire configuration from the MySQL cluster, and upload test results to the MySQL cluster, so that data can be managed uniformly. And starting the NFS network file system service cluster on the copying service cluster by the equipment to be tested through the network. The network file system service cluster is provided with a unified testing tool, a copying tool, a system restore backup tool and the like. And after the equipment to be tested is started, automatically running a related automation script, and reporting the related automation script to a webpage server through a network. Various instructions can be issued through the webpage, so that batch automatic testing, batch system restoration and backup can be realized.
In this embodiment, a web server in the copying service cluster system provides a web interface for a client to trigger a control instruction through the web interface, and can monitor and view the specific condition of each device to be tested in real time. The test server cluster comprises a plurality of test servers, and the corresponding test functions of different test servers are different. The database cluster is used for storing test data generated in the process of copying test of the copying service cluster system so as to uniformly manage the test data. The fault of any server in the copying service cluster system does not affect the whole service, the cluster server can be flexibly expanded according to the number of the equipment to be tested to ensure the reliability of the server, and when a plurality of control programs and a plurality of products to be tested exist on the same server and even different products are possibly tested at the same time, the control device of the copying service cluster system distributes a copying test request sent by a client to a target server corresponding to a test instruction in a test server cluster and sends the target server to the equipment to be tested, so that batch automatic operation can be realized, the labor cost of test is greatly reduced, and the efficiency and accuracy of copying test are improved.
Referring to fig. 2, fig. 2 is a block diagram of another embodiment of a copying service cluster system according to the present invention, and another embodiment of the copying service cluster system according to the present invention is proposed based on the above-mentioned one embodiment.
The copying service cluster system further comprises a dispatching server, a DHCP server (Dynamic Host Configuration Protocol ) and a mirror image restoration server, wherein the dispatching server is respectively connected with each test server in the test server clusters and is used for dispatching the test server clusters in the test server clusters according to the residual memory of each test server. And when receiving a test instruction of a client, the scheduling server can schedule according to the residual memory of the test server so as to reasonably distribute the load of each test server. It can be understood that the test servers corresponding to the test functions in the copying service cluster system can be flexibly expanded according to the current load pressure, so that the test servers corresponding to the single test functions cannot cause the whole copying service cluster system to have overlarge pressure to become a bottleneck of the system.
The scheduling server plays a role in load balancing or content scheduling for the entrance of the test server cluster. Typically, the primary schedule server will have a corresponding one of the backup schedule servers to take over when the primary schedule server cannot be served. The scheduling server can detect the running condition of the test server at regular time, and once downtime occurs, the scheduling server can detect the running condition quickly. Even if the downtime occurs in the detection time, the timing detection of the scheduling server does not get to know that the server is downtime, the server is immediately detected when the request is forwarded, and then the request is forwarded to other machines for processing, so that the request of a user is not influenced. Only if all the test servers are down, the requests of the users cannot be responded, and the backup of the test servers is equivalent to that of the test servers. The request is forwarded by the dispatching server, and the dispatching server can know how many requests are processed by each test server, so when deciding whether to forward to a certain test server, the request is decided according to the number of requests, and certain machines are prevented from forwarding too many requests. However, because of the uncertainty of the request, the processing time and the consumed resources are different, and the scheduling server needs to be able to distribute the request according to the response capability of each server. The dispatching server evenly divides the load to different servers, and the utilization rate of a single test server is fully improved.
The DHCP dynamic host configuration protocol server is a network protocol of a local area network, the DHCP server controls a section of IP address range, and equipment to be tested can automatically obtain an IP address and a subnet mask distributed by the DHCP server when logging in the DHCP server; it can be understood that before the control device of the copying service cluster system performs the copying test service, the IP address of each device to be tested needs to be obtained, and the IP address of each device to be tested is sent to the client and the test server cluster, so as to perform the copying test, system recovery and data reporting on the device to be tested corresponding to the IP address. Therefore, when the equipment to be tested logs in the DHCP dynamic host configuration protocol server, a dynamic IP address can be automatically obtained.
The mirror image restoration server can store and manage the system of the test equipment. In this embodiment, the image restoration server may use a system restoration tool or technology such as a Ghost or a regenerative dragon (a hard disk data restoration technology). It can be understood that the functions of the system installed in the device to be tested in the copying test only meet the functions required by the start-up test, and the system needs to be reinstalled in the device for normal use after the device leaves the factory after the copying test is completed, so that the system of the device to be tested needs to be reinstalled at last in the copying test, that is, the system mirror image reduction is performed.
In the technical scheme provided by the embodiment of the invention, the copying service cluster system further comprises a scheduling server, a DHCP dynamic host configuration protocol server and a mirror image restoration server. The DHCP dynamic host configuration protocol server obtains the dynamic IP address of each device to be tested, and sends the dynamic IP address of each device to be tested to a client and a test server cluster, so that the device to be tested corresponding to the IP address is subjected to a copying test according to the IP address; the mirror image restoration server is unified with a database cluster (MySQL cluster), so that the operation difficulty of data management and backup is reduced. With the increase of copying devices and the number of visitors, the web service, the DHCP service and the restored mirror service can also form respective clusters so as to bear more loads. The scheduling server is respectively connected with each test server in the test server clusters and is used for scheduling the test server clusters in the test server clusters according to the residual memory of each test server; therefore, the copying service cluster system can reasonably schedule the test server through the scheduling server according to the residual load of the test server corresponding to the copying test function, so that a copying test request can be sent to the test server with larger residual load, and the target test server carries out copying test on the equipment to be tested corresponding to the IP address according to the copying test instruction, thereby improving the efficiency of copying test.
As an implementation manner, a hardware structure schematic of a control device of the copy machine service cluster system may be shown in fig. 5.
The embodiment of the invention relates to a control device of a copying service cluster system, which comprises: a processor 101, such as a CPU, a memory 102, and a communication bus 103. Wherein the communication bus 103 is used to enable connected communication among the components.
The memory 102 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. As shown in fig. 1, a control program of a control device of a copy service cluster system may be included in a memory 103 as a kind of computer storage medium; and the processor 101 may be configured to call a control program of the control device of the copy machine service cluster system stored in the memory 102, and perform the following operations:
when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction;
when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction;
obtaining a target test server corresponding to the function in the test server cluster;
calling the target test server to enable the target test server to test the equipment to be tested according to the copying test instruction;
storing the test result of the target test server into the database cluster
Further, the processor 101 may be configured to call a control program of a control device of the copy machine service cluster system stored in the memory 102, and perform the following operations:
and sending a test interface to the client logging in the webpage server so that the client can send a test instruction through the test interface.
Further, the processor 101 may be configured to call a control program of a control device of the copy machine service cluster system stored in the memory 102, and perform the following operations:
acquiring a test log of the target test server, and acquiring test process information according to the test log;
and sending the test process information to the client through the webpage server so that the client can display the test process information.
And when detecting that the copying test process of the device to be tested is interrupted, outputting alarm prompt information.
According to the scheme, the control device of the copying service cluster system distributes the copying test instructions corresponding to the copying test instructions sent by the client to the target test servers corresponding to the test service clusters, and the target test servers perform copying test on the equipment to be tested according to the copying test instructions and store test results in the database clusters. Therefore, when a plurality of control programs and a plurality of products are to be tested on the same server and even different products are possibly tested at the same time, the control device of the copying service cluster system distributes copying test instructions sent by the client to the target test servers in the test server cluster, and the copying test efficiency is improved.
Based on the hardware architecture of the control device of the copying service cluster system, the embodiment of the control method of the copying service cluster system is provided.
Referring to fig. 6, fig. 6 is a flowchart of an embodiment of a control method of a copying service cluster system according to the present invention, where the control method of the copying service cluster system includes the following steps:
step S10, when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction;
the functions corresponding to the copying test instruction comprise software program running test, memory dead point scanning, hard disk dead point scanning, hardware model detection, automatic refreshing of customized information such as product model and supplier information and the like, system reinstallation and the like of the equipment to be tested.
It will be appreciated that prior to said step S10 it comprises: and sending a test page to the client logging in the webpage server so that the client can send a test instruction through the test interface.
The client is provided with an interface for logging in the copying service, when the web server detects that a user logs in the interface for the copying service, a test page is sent to the client, the test page can be set as a text and/or picture control interface corresponding to the test function, and the control interface is triggered to send a corresponding test instruction.
Step S20, obtaining a target test server corresponding to the function in the test server cluster;
step S30, calling the target test server to enable the target test server to test the equipment to be tested according to the copying test instruction; the target server is the test server corresponding to the copying test instruction triggered by the client.
It will be appreciated that the step S30 includes, after that:
acquiring a test log of the target test server, and acquiring test process information according to the test log;
and sending the test process information to the client through the webpage server so that the client can display the test process information.
And when detecting that the copying test process of the device to be tested is interrupted, outputting alarm prompt information.
And step S40, storing the test result of the target test server into the database cluster.
When testing is carried out, test data in all the test servers, including the copying state, the process, the equipment model and the like of the equipment to be tested, form a test log which is stored in a database cluster and can be sent to a client test log interface for displaying. When the copying process is interrupted and fails, outputting alarm prompt information of the type of the test equipment and the test function corresponding to the failure at the client interface, wherein the alarm prompt information can be set into text and/or picture and/or sound information, for example, the xx number equipment xx test fails, and restarting the test or checking equipment. Therefore, the copying test process of the equipment to be tested can be monitored in real time, so that a user can quickly know the copying state of the equipment to be tested.
According to the technical scheme provided by the embodiment of the invention, the control device of the copying service cluster system distributes the test request to the target test server corresponding to the test service cluster according to the copying test instruction sent by the client, and the target test server performs copying test on the equipment to be tested according to the copying test instruction and stores the test result into the database cluster for unified management. Therefore, when a plurality of control programs and a plurality of products are to be tested on the same server and even different products are possibly tested at the same time, the control device of the copying service cluster system distributes copying test instructions sent by the client to corresponding target test servers in the test server cluster, and the copying test efficiency is improved.
The embodiment of the invention also provides a computer readable storage medium, wherein a control program of the copying service cluster system is stored in the computer readable storage medium, and the control method of the copying service cluster system is realized when the control program of the copying service cluster system is executed by a processor.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of control methods of a copy service cluster system, control apparatuses (systems) of a copy service cluster system, and computer program products according to embodiments of the invention. It will be understood that each flowchart and/or block of the flowchart illustrations and/or block diagrams, and combinations of flowcharts and/or block diagrams, can be implemented by computer program copy control instructions. These computer program copy control instructions may be provided to a processor of a control means of a general purpose computer, special purpose computer, embedded processor or other programmable data processing copy service cluster system to produce a machine, such that the copy control instructions, which are executed by the processor of the control means of the computer or other programmable data processing copy service cluster system, produce means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program copy control instructions may also be stored in a computer-readable memory that can direct a control apparatus of a computer or other programmable data processing copy service cluster system to function in a particular manner, such that the copy control instructions stored in the computer-readable memory produce an article of manufacture including copy control instruction means which implement the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program copy control instructions may also be loaded onto a control apparatus of a computer or other programmable data processing copy service cluster system such that a series of operational steps are performed on the control apparatus of the computer or other programmable copy service cluster system to produce a computer implemented process, whereby the copy control instructions which execute on the control apparatus of the computer or other programmable copy service cluster system provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words one, another, etc. does not imply any order. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the invention
Clear spirit and scope. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (9)

1. A copy service cluster system, the copy service cluster system comprising:
the system comprises a webpage server, a client and a server, wherein the webpage server is used for providing a webpage interface for the client so that the client triggers a control instruction through the webpage interface, and the webpage interface comprises an interface for issuing batch commands;
the system comprises a test server cluster, wherein the test server cluster comprises a plurality of test servers, the test functions corresponding to different test servers are different, the test server comprises an NFS network system server, an LVS virtual server and a management server, the management server synchronously updates the network system server cluster, the LVS virtual server cluster selects the test server according to a preset algorithm and a target IP address associated with a test service request, the connection is recorded in a hash table, and when a request packet sent by a client is received, the request packet is sent to the test server according to information recorded in the hash table;
the scheduling server detects the running condition of the test server at regular time, and when the test server is in downtime in detection time, the scheduling server forwards the request to other test servers according to the number of the requests processed by the test server when the scheduling server forwards the request
The system comprises a web server, a test server cluster, a scheduling server and a database cluster, wherein the database cluster is a MySQL relational database management system and is used for storing data of the web server and the test server cluster, the web server, the test server cluster, the scheduling server and the database cluster are respectively and independently deployed on different servers to form a copying distributed system, and the database cluster further comprises a database middleware which is used for storing large data tables in a separated mode so as to support a plurality of processes to read and write single tables of the database cluster at the same time.
2. A copy service cluster system as claimed in claim 1, wherein said database cluster comprises a master database node for handling write operations and a plurality of slave database nodes for handling read operations, said master database synchronously updating the results of the write operations to each of said slave database nodes.
3. The copying machine service cluster system of claim 1, wherein the scheduling server is respectively connected to each test server in the test server cluster, and the scheduling server is configured to schedule the test server cluster in the test server cluster according to the remaining memory of each test server.
4. The copy-on service cluster system of claim 1, further comprising a DHCP dynamic host configuration protocol server for sending dynamic IP addresses to the device under test.
5. The copy service cluster system of claim 1, further comprising a system image restoration server for performing system restoration on the test device.
6. A control method of a copy service cluster system, characterized in that the control method of a copy service cluster system is applied to the copy service cluster system as claimed in any one of claims 1 to 5, the control method comprising:
sending a test interface to the client logging in the webpage server so that the client can send a test instruction through the test interface;
when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction;
obtaining a target test server corresponding to the function in the test server cluster;
calling the target test server to enable the target test server to test the equipment to be tested according to the copying test instruction;
and storing the test result of the target test server into the database cluster.
7. The method for controlling a copy service cluster system as claimed in claim 6, wherein said step of calling said target test server to cause said target test server to test a device under test according to said copy test instruction comprises:
acquiring a test log of the target test server, and acquiring test process information according to the test log;
sending the test process information to the client through the webpage server so that the client can display the test process information;
and when detecting that the copying test process of the device to be tested is interrupted, outputting alarm prompt information.
8. A control device of a copying service cluster system, characterized by comprising a memory, a processor and a control program of the copying service cluster system stored on the memory and operable on the processor, wherein the processor implements the control method of the copying service cluster system according to any one of claims 6-7 when executing the control program of the copying service cluster system.
9. A computer-readable storage medium, characterized in that a control program of a copy service cluster system is stored thereon, which when executed by a processor implements the control method of a copy service cluster system according to any of claims 6-7.
CN202011228913.0A 2020-11-05 2020-11-05 Copying service cluster system, control method, device and medium Active CN112351098B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011228913.0A CN112351098B (en) 2020-11-05 2020-11-05 Copying service cluster system, control method, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011228913.0A CN112351098B (en) 2020-11-05 2020-11-05 Copying service cluster system, control method, device and medium

Publications (2)

Publication Number Publication Date
CN112351098A CN112351098A (en) 2021-02-09
CN112351098B true CN112351098B (en) 2023-05-12

Family

ID=74428421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011228913.0A Active CN112351098B (en) 2020-11-05 2020-11-05 Copying service cluster system, control method, device and medium

Country Status (1)

Country Link
CN (1) CN112351098B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113342638A (en) * 2021-05-11 2021-09-03 中天恒星(上海)科技有限公司 Distributed test system and method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6662217B1 (en) * 1999-01-19 2003-12-09 Microsoft Corporation Distributed and automated test administration system for administering automated tests on server computers over the internet
CN104378252A (en) * 2014-08-26 2015-02-25 国家电网公司 Cloud testing service platform
CN107832206A (en) * 2017-10-16 2018-03-23 深圳市牛鼎丰科技有限公司 Method of testing, device, computer-readable recording medium and computer equipment
CN109560996B (en) * 2019-01-14 2023-11-17 上海挚极信息科技有限公司 Automatic testing system and method for terminal of Internet of things
CN110297766B (en) * 2019-06-03 2023-05-30 合肥移瑞通信技术有限公司 Software testing method and software testing system based on distributed test node cluster
CN111092784B (en) * 2019-10-15 2021-11-09 福建星网智慧科技有限公司 MCU cluster automatic testing method and system based on B/S architecture

Also Published As

Publication number Publication date
CN112351098A (en) 2021-02-09

Similar Documents

Publication Publication Date Title
US20220261419A1 (en) Provisioning and managing replicated data instances
WO2020253079A1 (en) Jmeter-based distributed performance test method and apparatus, device, and storage medium
US6898727B1 (en) Method and apparatus for providing host resources for an electronic commerce site
US6587970B1 (en) Method and apparatus for performing site failover
CA2778456C (en) Failover and recovery for replicated data instances
US7441024B2 (en) Method and apparatus for applying policies
EP2494439B1 (en) Monitoring of replicated data instances
US7281031B1 (en) Method and apparatus for providing additional resources for a host computer
US20030037177A1 (en) Multiple device management method and system
JP2008517358A (en) Apparatus, system, and method for facilitating storage management
CN112162821B (en) Container cluster resource monitoring method, device and system
CN106452836B (en) main node setting method and device
CN100421382C (en) Maintaining unit structure of high extending internet superserver and its method
CN112351098B (en) Copying service cluster system, control method, device and medium
US9973569B2 (en) System, method and computing apparatus to manage process in cloud infrastructure
CN116346834A (en) Session synchronization method, device, computing equipment and computer storage medium
WO2022227719A1 (en) Data backup method and system, and related device
US11762741B2 (en) Storage system, storage node virtual machine restore method, and recording medium
CN113656378A (en) Server management method, device and medium
Bekas et al. Cross-layer management of a containerized NoSQL data store
CN112685486A (en) Data management method and device for database cluster, electronic equipment and storage medium
CN116132289A (en) Information configuration method, device, equipment and medium
WO2006027038A2 (en) Computer arrangement for providing services for clients over a network

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
GR01 Patent grant
GR01 Patent grant