CN112351098A - 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
CN112351098A
CN112351098A CN202011228913.0A CN202011228913A CN112351098A CN 112351098 A CN112351098 A CN 112351098A CN 202011228913 A CN202011228913 A CN 202011228913A CN 112351098 A CN112351098 A CN 112351098A
Authority
CN
China
Prior art keywords
test
server
copying
cluster
copy
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.)
Granted
Application number
CN202011228913.0A
Other languages
Chinese (zh)
Other versions
CN112351098B (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 server and a system mirror reduction server. A control method of a copy 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; acquiring 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 automatic copying test of the equipment to be tested is controlled in batches, and the copying test efficiency is improved.

Description

Copying service cluster system, control method, device and medium
Technical Field
The invention relates to the field of testing, in particular to a copy service cluster system, a control method, a device and a computer storage medium.
Background
With the rapid development of the prior art, the product types, the client requirements, the application conditions and the like gradually become more and more diversified, and in order to ensure that the product quality meets the client requirements, different testing and screening must be performed according to various different products, different clients and different applications in a targeted manner, which means that the problem that a plurality of control programs and a plurality of products need to be tested on the same server, even the situation that different products are tested at the same time can not be avoided, and the work efficiency of the copy testing server is low.
Disclosure of Invention
The application mainly aims to provide a copying service cluster system, a control method, a 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.
In order to achieve the above object, the present invention provides a copy service cluster system, which includes:
the webpage server is used for providing a webpage interface for a client so that the client can trigger a control instruction through the webpage interface;
the system comprises a test server cluster, a network system server cluster and a management server cluster, wherein the test server cluster comprises a plurality of test servers, different test servers have different 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;
and the database cluster is a MySQL relational database management system, is used for storing the data of the web server and the test server cluster, and is respectively and independently deployed in different servers to form a copy machine distributed system.
Optionally, the database cluster includes a master database node and a plurality of slave database nodes, the master database node is configured to process a write operation, the slave database nodes are configured to process a read operation, and the master database node synchronously updates a processing result of the write operation to each of the slave database nodes.
Optionally, the system for clustering a copy machine service further includes a scheduling server, the scheduling server is connected to each test server in the cluster of test servers, and the scheduling server is configured to schedule a cluster of test servers in the cluster of test servers according to the remaining memory of each test server.
The server controls a segment of IP address range, and a client can automatically obtain an IP address and a subnet mask allocated by the server when logging in the server, and the DHCP server is used for sending a Dynamic IP address of a device to be tested to the client.
Optionally, the copy service cluster system further includes a system mirror restore server, configured to perform system restore on the test device.
In order to achieve the above object, the present invention further provides a method for controlling a copy service cluster system, where the method for controlling a copy service cluster system includes:
when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction;
acquiring 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, when receiving a copy test instruction sent by a client, before the step of obtaining a function corresponding to the copy test instruction, 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 make the target test server test the device to be tested according to the copy 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 equipment to be tested is interrupted, outputting alarm prompt information.
In order to achieve the above object, the present invention further provides a control device of a copy service cluster system, including a memory, a processor, and a control program of the copy service cluster system stored on the memory and operable on the processor, where the processor implements the control method of the copy service cluster system when executing the control program of the copy service cluster system.
To achieve the above object, a computer-readable storage medium having stored thereon a control program of a copying service clustering system, which when executed by a processor, implements a control method of the copying service clustering system as described above.
According to the control method and device for the copying service cluster system and the computer storage medium provided by the embodiment of the invention, the control device for the copying service cluster system distributes a copying test instruction corresponding to the copying test instruction sent by the client to a target test server corresponding to the test service cluster, and the target test server performs copying test on equipment to be tested according to the copying test instruction and stores a test result into the database cluster. Therefore, when a plurality of control programs are arranged on the same server, a plurality of products are to be tested, and even the situation that different products are tested at the same time is possible, 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 of a structure of an embodiment of a copying service cluster system according to the present invention;
FIG. 2 is a block diagram of another embodiment of the copying service clustering system of the present invention;
FIG. 3 is a schematic interface diagram 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 cluster of test servers;
FIG. 5 is a schematic diagram of a hardware structure of a control device of the copying service cluster system according to the present invention;
fig. 6 is a flowchart illustrating a method for controlling a copy service cluster system according to an embodiment of the present invention.
Detailed Description
For a better understanding of the above technical solutions, 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 a structure of an embodiment of a copying service cluster system according to the present invention.
Copying machine (burning machine) generally refers to a newly purchased computer, and particularly, the newly purchased computer allows the machine to run for 1-2 days without shutdown to test the compatibility of hardware and the stability of a system. If the computer product has problems due to hardware performance and the like, the problems generally appear in a short time, and if the time elapses, the system is relatively stable, so that the computer is copied before buying, so that the problems are found in the maintenance period, and the problems are solved early and the loss is reduced. The most basic copy machine is not running any software, and is used for detecting the compatibility of basic hardware of a computer. If no problem occurs, then the large program is run to copy the machine, such as 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 process in which at least two servers are collected together to perform the same service, and the client looks like 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 as to ensure that any one machine damages the whole system or can normally run. When any failure occurs in a certain server, such as: when a hard disk, a memory, a CPU, a mainboard, an I/O board and a power supply fail or an application system on a server is stopped due to improper operation of an administrator on the server, a cluster monitors the failed server based on an application, and other related servers take over the application.
The copying service cluster system comprises: the system comprises a webpage server, a test server cluster and a database cluster, wherein the database cluster is used for storing data of the webpage server and the test server cluster. The webpage server is used for providing a webpage interface for the client side so that the client side can trigger a control instruction through the webpage interface. The test server cluster comprises a plurality of test servers, different test servers have different corresponding test functions, 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. And 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 a schematic interface diagram of a web server of the copy service cluster system of the present invention. The web server refers to a program residing on a certain type of computer on the internet, and can process requests of web clients such as a browser and the like and return corresponding responses, can place website files for browsing all over the world, and can also place data files for downloading all over the world. Currently, the most popular three web servers are Apache, neidx and IIS. The WEB service (WEB service) may be an interface that monitors and displays a copy state, a system image reduction progress, basic information, operation log information, a copy test function selection button of the device to be tested, and a function selection button of issuing other services, through Apache (full Apache HTTP Server), a php (Hypertext Preprocessor, which is a general open source scripting Language), and a MySQL (relational database management system, which stores data in different tables, which is the most common standardized Language for accessing the database) that is the SQL (Structured Query Language) used by the MySQL. The interface shown in fig. 3(a) is a main industry display, in which buttons corresponding to functions such as copying, displaying parameters, restoring a general master disk, uploading the master disk, managing the master disk, a Ghost disk (system restoring tool), bridging and packet-lifting, viewing a packet-lifting page, sending an instruction, querying a gateway ID, a management server, and managing a database are provided, services corresponding to the displaying parameters include windows displaying copying progress, copying state, IP address, provider, model, management index, hard disk drive, operator, online time, start time, refresh time, error number, description, and the like of the device to be tested, and the displaying parameters may also query history parameter records, and the like. The interface shown in fig. 3(b) is an interface to which a batch command is issued during a copy test, and functions corresponding to the interface include that the device: manual input of commands and confirmation of formatting/deleting partitions, commonly used command buttons: the system comprises a restart instruction, a shutdown instruction, refresh management index information, synchronization time to bios (basic input output system), RAID (Redundant array of Independent Disks), led shutdown, led on and led flashing. An operator can issue various operation instructions to the equipment to be tested in batches through the web interface, and after the equipment to be tested receives the issued instructions, the corresponding operation can be performed according to the names and the contents of the instructions, such as automatic copying test, automatic recovery system mirror image, and automatic writing customization information, such as the product model of the equipment to be tested, supplier information and the like.
Referring to fig. 4, fig. 4 is a schematic diagram of the present invention adopting NFS service (Network File System, NFS is application based on UDP/IP protocol, and is implemented by using a remote procedure call mechanism) as a test server cluster. The test server cluster integrates various test tools, automatic test scripts, an automatic reduction backup system and other tools, can be compatible with various equipment to run, different test functions are distributed in different test servers, and corresponding servers can be dynamically increased and decreased according to functional requirements. The control device of the copying service cluster system can realize synchronous management of the test server cluster to perform batch copying test. The test server cluster can adopt NFS network system service, and the network system service is a network system which is issued by a server to an equipment end to operate. A plurality of NFS network system servers + LVS (Linux Virtual Server) constitute a test Server cluster. The management server updates NFS1 through SCP (secure copy), and the NFS network system service cluster is synchronized with 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 management server changes related files through Lsyncd service (Lsyncd real-time synchronization tool, which is an initiating monitoring and rsync backup tool packaged by lua language, adopts an initiating triggering mechanism in Linux kernel, and then performs differential synchronization through rsync, so as to achieve a real-time effect. The test service cluster performs load scheduling through the LVS virtual server, the LVS virtual server adopts a DR (Direct Routing, Direct Routing mode), the DR Direct Routing mode is that a scheduler dynamically selects one server according to the load condition, the connection number, and the like of each real server, does not modify a target IP Address (Internet Protocol Address) and a target port, does not encapsulate an IP message, but changes a target MAC Address of a data frame of a request message into a MAC Address (Media Access Control Address, local area network Address) of the real server, and then transmits the modified data frame to the target test server on a local area network of the server group.
Specifically, the working process of the direct routing mode is as follows: 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 corresponding pool (server cluster) of real-server according to the target IP address, selects a test server in the real-server to test the device to be tested according to a preset algorithm, records the connection in a hash (hash table, a data structure which can be directly accessed according to key code values) by the virtual server, then sends a request packet of the client to the selected test server, and finally the selected test server directly transmits a response packet to the client; when the client side 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 terminated 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 write operation, the slave database nodes are used for processing read operation, the master database synchronously updates the processing result of the write operation to each slave database node, copy data backup is realized through master-slave synchronization, database middleware is added to store large data tables in a database in a sub-database mode, a plurality of processes are supported to read and write single tables of a database simultaneously, and read-write separation is realized to relieve the read-write pressure of a single database. The control device of the copy service cluster system can upload all copy test results to the database cluster for storage, so that data can be uniformly managed.
It can be understood that the copying service clustering system can be set as a virtual server cluster built on a cloud platform based on a server cluster or a single server, and also can be set as an entity server cluster. For example, a plurality of server components, namely, an aCloud (cloud service) virtualization private cloud platform, builds a copy server cluster on the aCloud cloud service platform, and independently deploys each functional module 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 an MySQL database management system, a plurality of MySQL databases form a Mycat service cluster, and Mycat is an open database middleware), so as to form a copy distributed system (a system formed by dividing a service difference into a plurality of sub-services and deploying the sub-services on different servers). Each functional module can be flexibly expanded according to the current load pressure, so that the single functional module does not limit the testing efficiency of the copy server. If the load scheduling is performed by the NFS service cluster through the LVS server, when there are more load devices, the NFS server may be added to relieve the system load pressure. The method comprises the steps of deploying services to an aCloud cloud service platform, and utilizing a fault transfer mechanism of the platform (the fault transfer mechanism is realized through a fault transfer cluster which 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 cluster system. Increasing the overall fault tolerance. Each functional module may individually constitute a redundant server (meaning that some components of the system are repeatedly configured, and when the system fails, the redundantly configured components intervene and assume the work of the failed components, thereby reducing the failure time of the system). For example, the MySQL service cluster realizes data backup through master-slave synchronization, is added into a database middleware to store a large data table in a sub-database mode, realizes read-write separation and relieves the read-write pressure of a single database. 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 the equipment to be tested starts the NFS network file system service cluster on the copy service cluster through the network. The network file system service cluster is provided with a uniform testing tool, a copying tool, a system restoration backup tool and the like. After the equipment to be tested is started, the relevant automatic scripts are automatically operated and reported to the webpage server through the network. Various instructions are issued through the webpage, and batch automatic testing, batch system restoration and backup can be achieved.
In this embodiment, a web server in the copy service cluster system provides a web interface to the client, so that the client can trigger a control instruction through the web interface and can monitor and view the specific conditions of each device to be tested in real time. The test server cluster comprises a plurality of test servers, and the test functions corresponding to different test servers are different. The database cluster is used for storing test data generated in the process of the copying test of the copying service cluster system so as to uniformly manage the test data. When any server in the copying service cluster system fails, the whole service cannot be influenced, the cluster server can be flexibly expanded according to the number of devices to be tested to ensure the reliability of the server, and when a plurality of control programs and a plurality of products need to be tested and even different products can be tested simultaneously on the same server, the control device of the copying service cluster system distributes copying test requests sent by the client to target servers corresponding to test instructions in the test server cluster and sends the copying test requests to the devices to be tested to realize batch automatic operation, so that the labor cost of testing 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 the copying service cluster system of the present invention, and based on the above embodiment, another embodiment of the copying service cluster system of the present invention is provided.
The copying service cluster system further comprises a scheduling server, a Dynamic Host Configuration Protocol (DHCP) and a mirror image reduction server, wherein the scheduling server is respectively connected with each test server in the test server cluster and is used for scheduling the test server cluster in the test server cluster according to the residual memory of each test server. The server cluster corresponding to each copying machine test function module in the test server cluster is in communication connection with the scheduling server, and when a test instruction of the client is received, scheduling can be performed through the scheduling server 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 a single test function cannot cause the whole copying service cluster system to be over-stressed to become a bottleneck of the system.
The dispatching server is an entrance of the testing server cluster and plays a role in load balancing or content dispatching. Usually the primary dispatch server will have a corresponding backup dispatch server to take over when the primary dispatch server is not capable of serving. The scheduling server can regularly detect the running condition of the test server, and once the scheduling server goes down, the scheduling server can quickly detect the running condition. Even if the downtime occurs in the detection time, the timing detection of the scheduling server does not know the downtime of the server, the timing detection can be immediately detected when the request is forwarded, and then the request is forwarded to other machines for processing, so that the request of the user is not influenced. Only under the condition that all the test servers are down, the request of the user cannot be responded, and equivalently, a plurality of test servers are mutually backed up. The requests are forwarded by the dispatching server, and the dispatching server can clearly know how many requests are processed by each testing server, so that the requests can be determined according to the number of the requests when determining whether to forward the requests to a certain testing server, and excessive requests are prevented from being forwarded by some machines. However, due to the uncertainty of the requests, the processing time and the consumed resources are different, and the scheduling server is required to be able to distribute the requests according to the response capability of each server. The dispatching server distributes the load to different servers, and the utilization rate of a single testing 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 the equipment to be tested can automatically obtain the IP address and the subnet mask distributed by the DHCP server when logging in the DHCP server; it can be understood that, before the control device of the copy service cluster system performs the copy test service, the IP address of each device to be tested needs to be acquired, 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 copy test, system recovery and data report on the device to be tested corresponding to the IP address. Therefore, when the device to be tested logs in the DHCP dynamic host configuration protocol server, the dynamic IP address can be automatically obtained.
The mirror image restoration server can store and manage the system of the test equipment to restore the system. In this embodiment, the mirror image restoring server may use a system restoring tool or technology such as Ghost or dragon (Colonezilla, a hard disk data restoring technology). It can be understood that the system function installed when the device to be tested performs the copy test only satisfies the function required by the start-up test, and the system needs to be reinstalled in the device after the copy test is completed for normal use after the device leaves the factory, so that the system of the device to be tested needs to be reinstalled at last in the copy test, that is, the system mirror image restoration is performed.
In the technical scheme provided by the embodiment of the invention, the copy service cluster system further comprises a scheduling server, a DHCP dynamic host configuration protocol server and a mirror image reduction server. The DHCP dynamic host configuration protocol server acquires a dynamic IP address of each device to be tested, and sends the dynamic IP address of each device to be tested to the client and the test server cluster so as to perform a copy test on the device to be tested corresponding to the IP address according to the IP address; the unification of the mirror image reduction server and the database cluster (MySQL cluster) reduces the operation difficulty of data management and backup. With the increase of copy equipment and number of visitors, the web service, the DHCP service and the recovery mirror image service can also form respective clusters to bear more load. The dispatching server is respectively connected with each test server in the test server cluster and used for dispatching the test server cluster in the test server cluster 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 the copying test request can be sent to the test server with larger residual load, and the target test server performs copying test on the equipment to be tested corresponding to the IP address according to the copying test instruction, thereby improving the copying test efficiency.
As an implementation manner, a schematic diagram of a hardware structure of a control device of a copy service cluster system may be as shown in fig. 5.
The embodiment scheme of the invention relates to a control device of a copying service cluster system, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, a memory 103 as a kind of computer storage medium may include therein a control program of a control device of the copy service clustering system; and the processor 101 may be configured to call a control program of the control apparatus of the copy 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;
acquiring 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 in the database cluster
Further, the processor 101 may be configured to call a control program of the control apparatus of the copy 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 the control apparatus of the copy 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 equipment to be tested is interrupted, outputting alarm prompt information.
According to the scheme, the control device of the copy service cluster system distributes the copy test instruction corresponding to the copy test instruction sent by the client to the target test server corresponding to the test service cluster, and the target test server performs the copy test on the equipment to be tested according to the copy test instruction and stores the test result in the database cluster. Therefore, when a plurality of control programs are arranged on the same server, a plurality of products are to be tested, and even the situation that different products are tested simultaneously is possible, the control device of the copying service cluster system distributes the copying test instruction sent by the client to the target test server 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 schematic flow chart of an embodiment of a control method of a copy service cluster system of the present invention, where the control method of the copy 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 pixel scanning, hard disk dead pixel scanning, hardware model detection, automatic writing of customized information such as product model and supplier information, system reinstallation and the like of the equipment to be tested.
It is understood that step S10 is preceded by: and sending a test page to the client logging in the web 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 copy service, when the web server detects that a user logs in the interface of the copy 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 a test function, and a corresponding test instruction can be sent by triggering the control interface.
Step S20, acquiring 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; and the target server is a test server corresponding to the copying test instruction triggered by the client.
It is understood that step S30 is followed by:
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 equipment to be tested is interrupted, outputting alarm prompt information.
And step S40, storing the test result of the target test server in the database cluster.
When testing, all the test data in the test server, including the copy state, the process, the device model, etc. of the device to be tested, form a test log, store in the database cluster, and can be sent to the client terminal test log interface for display. When the copying process is interrupted, namely a fault occurs, the model of the testing equipment corresponding to the fault and the alarm prompt information of the testing function are output on a client interface, and the alarm prompt information can be set to be text and/or picture and/or sound information, for example, if the xx equipment xx tests to have the fault, the testing or checking equipment is required to be restarted. Therefore, the copying test process of the equipment to be tested can be monitored in real time, and 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 are arranged on the same server, a plurality of products are to be tested, and even the situation that different products are tested simultaneously is possible, the control device of the copying service cluster system distributes the copying test instruction sent by the client to the corresponding target test server 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 on the computer readable storage medium, and the control program of the copying service cluster system realizes the control method of the copying service cluster system when being executed by the processor.
As will be appreciated by one skilled in the art, 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 has been described with reference to flowchart illustrations and/or block diagrams of a control method of a copy service clustering system, a control apparatus (system) of a copy service clustering system, and a computer program product according to embodiments of the present invention. It will be understood that each flow and/or block of the flowcharts and/or block diagrams, and combinations of flows and/or blocks in the flowcharts and/or block diagrams, can be implemented by computer program control instructions. These computer program copy control instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing copy service clustering system control device to produce a machine, such that the copy control instructions, which are executed by the processor of the computer or other programmable data processing copy service clustering system control device, produce means for implementing the functions specified in the flow diagram 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 device 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 means for implementing the function 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 the control means of a computer or other programmable data processing copy service clustering system to cause a series of operational steps to be performed on the control means of the computer or other programmable copy service clustering system to produce a computer implemented process such that the copy control instructions that execute on the control means of the computer or other programmable copy service clustering system provide steps for implementing the functions specified in the flow diagram 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. do not denote 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. Therefore, it is intended that the appended claims be interpreted as including 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 changes and modifications may be made in the invention without departing from the invention
With clear spirit and scope. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A copying service clustering system, characterized in that the copying service clustering system comprises:
the webpage server is used for providing a webpage interface for a client so that the client can trigger a control instruction through the webpage interface;
the system comprises a test server cluster, a network system server cluster and a management server cluster, wherein the test server cluster comprises a plurality of test servers, different test servers have different 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;
and the database cluster is a MySQL relational database management system, is used for storing the data of the web server and the test server cluster, and is respectively and independently deployed in different servers to form a copy machine distributed system.
2. The copying service clustering system of claim 1, wherein the database cluster includes a master database node for processing a write operation and a plurality of slave database nodes for processing a read operation, the master database synchronously updating a processing result of the write operation to each of the slave database nodes.
3. The copying service clustering system of claim 1 further comprising a scheduling server, the scheduling server being connected to each of the test servers in the test server cluster, the scheduling server being configured to schedule the test server cluster in the test server cluster according to a remaining memory of each of the test servers.
4. The copy service clustering system of claim 1, wherein the copy service clustering system further comprises a DHCP dynamic host configuration protocol server, the DHCP server being configured to send a dynamic IP address to a device under test.
5. The copying service clustering system of claim 1, wherein the copying service clustering system further comprises a system image restore server for performing system restore on the test device.
6. A control method of a copying service clustering system, characterized in that the control method of the copying service clustering system is applied to the control method of the copying service clustering system according to any one of claims 1 to 5, and comprises the following steps:
when a copying test instruction sent by a client is received, acquiring a function corresponding to the copying test instruction;
acquiring 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 according to claim 6, wherein before the step of obtaining the function corresponding to the copy test instruction when receiving the copy test instruction sent by the client, the method further comprises:
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.
8. The method for controlling a copy service cluster system according to claim 7, wherein said step of calling said target test server to make said target test server test a device to be tested 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;
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 equipment to be tested is interrupted, outputting alarm prompt information.
9. A control device of a copying service clustering system, which is characterized by comprising a memory, a processor and a control program of the copying service clustering system, wherein the control program of the copying service clustering system is stored on the memory and can run on the processor, and the control method of the copying service clustering system is realized when the processor executes the control program of the copying service clustering system.
10. A computer-readable storage medium, having stored thereon a control program of a copying service clustering system, which when executed by a processor, implements the method of controlling the copying service clustering system according to any one of claims 6 to 8.
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 true CN112351098A (en) 2021-02-09
CN112351098B 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)

Cited By (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

Citations (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
CN109560996A (en) * 2019-01-14 2019-04-02 上海挚极信息科技有限公司 Internet-of-things terminal automatization test system and method
CN110297766A (en) * 2019-06-03 2019-10-01 合肥移瑞通信技术有限公司 Method for testing software and software testing system based on distributed test node cluster
CN111092784A (en) * 2019-10-15 2020-05-01 福建星网智慧科技股份有限公司 MCU cluster automatic testing method and system based on B/S architecture

Patent Citations (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
CN109560996A (en) * 2019-01-14 2019-04-02 上海挚极信息科技有限公司 Internet-of-things terminal automatization test system and method
CN110297766A (en) * 2019-06-03 2019-10-01 合肥移瑞通信技术有限公司 Method for testing software and software testing system based on distributed test node cluster
CN111092784A (en) * 2019-10-15 2020-05-01 福建星网智慧科技股份有限公司 MCU cluster automatic testing method and system based on B/S architecture

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
张锦祥等: "基于LVS集群服务器的设计与实现", 《浙江教育学院学报》 *
聂得欣: "基于高可用性、负载均衡和共享存储的三层WEB服务器集群设计", 《河南财政税务高等专科学校学报》 *

Cited By (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

Also Published As

Publication number Publication date
CN112351098B (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US20220261419A1 (en) Provisioning and managing replicated data instances
JP6416745B2 (en) Failover and recovery for replicated data instances
US6898727B1 (en) Method and apparatus for providing host resources for an electronic commerce site
US6587970B1 (en) Method and apparatus for performing site failover
EP2494439B1 (en) Monitoring of replicated data instances
WO2020253079A1 (en) Jmeter-based distributed performance test method and apparatus, device, and storage medium
US7281031B1 (en) Method and apparatus for providing additional resources for a host computer
JP2008517358A (en) Apparatus, system, and method for facilitating storage management
CN111324377B (en) Application gray level release method, system, device and storage medium
CN106452836B (en) main node setting method and device
CN112506702A (en) Data center disaster tolerance method, device, equipment and storage medium
CN108199901B (en) Hardware repair reporting method, system, device, hardware management server and storage medium
CN112351098B (en) Copying service cluster system, control method, device and medium
US11762741B2 (en) Storage system, storage node virtual machine restore method, and recording medium
Bekas et al. Cross-layer management of a containerized NoSQL data store

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