Method, apparatus, computing device, and storage medium for calculating device aging
By building a cluster server system on computing devices and using a laptop computer to perform aging tests, the problems of low efficiency and high cost of aging tests are solved, and an efficient, energy-saving and environmentally friendly aging process is achieved.
Patent Information
- Application Number
- CN202210079718.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-24
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2042-01-24
AI Technical Summary
In the prior art, computer aging testing is inefficient and costly, especially when small and medium-sized enterprises build their own server cluster systems, it is necessary to invest a lot of money, and the aging process consumes a lot of power, making it difficult to improve efficiency and reduce costs.
By running preset cluster service software on multiple computing devices to build a cluster server system, perform calculation tasks to complete aging tests, use portable computers to build a cluster server, avoid special purchase of hosts and power supplies, and make rational use of computer resources.
It improves the aging testing efficiency, reduces costs, and realizes energy conservation and environmental protection, solving the problems of low efficiency and high cost in traditional methods.
Smart Images

Figure CN114490227B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of device aging testing technology, and in particular, to a method, a device, a computing device, and a storage medium for aging a computing device. Background Art
[0002] In the field of portable computer testing, in order to ensure the service life of the computer, the computer is subjected to an aging test before leaving the factory. Aging is a relatively long process. Even if the aging speed is accelerated in the aging chamber, the required time is still relatively long. This makes the time difference between transporting the computer and aging large, resulting in low test efficiency. Secondly, due to the large individual differences in the aging degree, the aging test time of each computer may vary, making it difficult to control. Therefore, problems such as low aging efficiency and high costs are caused.
[0003] In the prior art, a set of cluster management devices is reset, and the aging test is managed through test scripts and aging scripts. However, when it comes to server cluster services, the first thing that comes to mind is the three major Internet giants, BAT (Baidu, Alibaba, Tencent). However, their expensive rental service fees deter small and medium-sized enterprises, which makes many small and medium-sized enterprises have to choose to build their own server cluster systems. The application construction of traditional cluster server systems requires a high cost to purchase server hosts, and operating systems and service software need to be installed on each host. The installation of the system and service software is very complex and inconvenient. When the cluster server hosts work together, the power consumption is very large, and a dedicated power supply system and computer room are required, and a large amount of electric energy will be consumed.
[0004] Therefore, there is an urgent need for an aging test method that can improve aging efficiency and reduce costs. Summary of the Invention
[0005] The present invention provides a method, a device, a computing device, and a storage medium for aging a computing device, so as to achieve the purpose of aging a portable computer host, improve the aging test efficiency, reduce the use cost, and achieve energy conservation and environmental protection.
[0006] In a first aspect, an embodiment of the present invention provides a method for aging a computing device, including:
[0007] Determine multiple computing devices that need to be subjected to an aging test;
[0008] Run a preset cluster service software on the multiple computing devices to construct a cluster server system;
[0009] Control the cluster server system to execute a preset computing task to complete the aging test of the computing device.
[0010] Optionally, before controlling the cluster server system to execute a preset computing task, it includes: obtaining the computing task of the principal and adding the computing task to the task list of the aging test; matching a preset computing task for the computing device according to the tasks in the task list.
[0011] Optionally, the matching a preset computing task for the computing device according to the tasks in the task list includes:
[0012] Obtaining the task request information of each computing device, where the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device; and matching a preset computing task in the task list according to the task request information.
[0013] Optionally, after controlling the cluster server system to execute a preset computing task, it includes: generating a corresponding task settlement bill according to the completion situation of the computing task and sending the task settlement bill to the principal.
[0014] Optionally, the computing task includes at least one of big data computing, image processing, and network voting.
[0015] Optionally, before controlling the cluster server system to execute a preset computing task, it further includes: controlling the cluster server system to execute a computing task acquisition program and a computing task scheduling program.
[0016] Optionally, after controlling the cluster server system to execute a preset computing task, it further includes: controlling the cluster server system to execute a computing result processing program.
[0017] In a second aspect, an embodiment of the present invention further provides a device for aging a computing device, and the device includes:
[0018] A computing device determination module, configured to determine multiple computing devices that need to perform an aging test;
[0019] A cluster service construction module, configured to run a preset cluster service software on the multiple computing devices to construct a cluster server system;
[0020] An aging test execution module, configured to control the cluster server system to execute a preset computing task to complete the aging test of the computing device.
[0021] In a third aspect, an embodiment of the present invention further provides a computing device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, and characterized in that when the processor executes the program, it implements the computing device aging method provided in any embodiment of the present application.
[0022] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, characterized in that when the program is executed by a processor, it implements the computing device aging method provided in any embodiment of the present application.
[0023] An embodiment of the present invention provides a method, apparatus, computing device, and storage medium for aging a computing device. By determining multiple computing devices that need to undergo aging tests; running a preset cluster service software on the multiple computing devices to build a cluster server system; controlling the cluster server system to execute a preset computing task to complete the aging test of the computing device. Using a portable computer in the aging scenario to build a cluster server application and completing the aging test through cluster control improves the aging efficiency. And there is no need to specifically purchase a cluster server host, nor to equip a dedicated server power supply. Directly use the portable computer and power system in the aging process as the cluster server host and power supply, and make full and reasonable use of the resources of each computer host to process server cluster tasks, reducing the usage cost, achieving energy conservation and environmental protection, and solving the problem in the prior art that it is impossible to balance improving the aging test efficiency and reducing costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flowchart of a method for aging a computing device provided in Embodiment 1 of the present invention;
[0025] Figure 2 It is a flowchart of a method for aging a computing device provided in Embodiment 2 of the present invention
[0026] Figure 3 It is a flowchart of a method for aging a computing device provided in Embodiment 3 of the present invention
[0027] Figure 4 It is a structural block diagram of an apparatus for aging a computing device provided in Embodiment 3 of the present invention;
[0028] Figure 5 It is a schematic structural diagram of a computing device provided in Embodiment 3 of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0029] The present invention will be further described in detail below with reference to the drawings and embodiments. It can be understood that the specific embodiments described herein are only for explaining the present invention and not for limiting the present invention. Additionally, it should be noted that for the sake of description, only parts related to the present invention are shown in the drawings rather than all the structures.
[0030] Embodiment 1
[0031] Figure 1The flowchart of a method for calculating device aging provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation where the aging efficiency is low and the cost is high when aging testing a device. This method can be executed by the device for calculating device aging provided in the embodiment of the present invention, and this device can be implemented in a software and / or hardware manner. This device can be configured in the calculating device provided in the embodiment of the present invention. The method specifically includes:
[0032] S110. Determine multiple calculating devices that need to be subjected to aging testing;
[0033] Among them, the calculating devices determined by the computer device that need to be subjected to aging testing can be all the calculating devices on the aging production line, or multiple calculating devices that need to conduct aging test experiments. There is no specific limitation in this embodiment. Among them, the calculating device can be a terminal device running cluster service software, including but not limited to one or more of a portable computer, a desktop computer, and a server.
[0034] S120. Run a preset cluster service software on the multiple calculating devices to construct a cluster server system;
[0035] After determining multiple calculating devices that need to be subjected to aging testing, it is necessary to run a preset cluster service software on these multiple calculating devices. Among them, for the installation of the preset cluster service software, after the portable computer is assembled in the factory, the corresponding cluster service software and aging software can be burned in batches and set to automatically start and run. In this way, the portable computer can construct a cluster service system while realizing aging testing.
[0036] It is also possible to automate the installation of the cluster software by installing an operating system and running an automated installation script. Specifically, by setting up a PXE server, the installation of the operating system (OS) of each node is completed, the automated installation script is downloaded to the local node, and each node automatically runs the installation script to complete the automated installation of the cluster software and configure the corresponding cluster running network environment. This process is mainly based on the expect tool in linux. Expect is a free programming tool language used to communicate with automated and interactive tasks without human intervention. Using it, scripts can be created to provide input to commands or programs that are expected to receive input from the terminal. Generally, these inputs need to be entered manually. Expect can simulate the standard input according to the prompts of the program and provide the input required by the program to achieve the execution of the interactive program.
[0037] An Expect script consists of a series of expect-send pairs: expect waits for a specific character to appear in the output, usually a prompt, and then sends a specific response. By this method, corresponding settings and readings can be performed in the program to complete the manual interaction process required for software installation. Taking the installation of the linpack software package as an example, the program will automatically judge and read the output information and give the specified input; when the software installation is completed, the program will make a judgment and proceed to the installation of the next software. After that, it is also necessary to complete the configuration of the environment required for the operation of the cluster software on each node. By configuring the network file, the program will automatically determine the node location and configure the network card information for the network required by the cluster software to ensure the normal establishment and operation of the cluster.
[0038] This embodiment does not limit the specific installation method of the preset cluster service software. Here, it is mainly to realize running the cluster service software on multiple computing devices that need to perform aging tests to build a cluster service system.
[0039] S130. Control the cluster server system to execute a preset computing task to complete the aging test of the computing device.
[0040] Among them, the computing tasks include the computing tasks stored in the local task management list, such as the tasks of aging tests, and also include the computing tasks customized by the client obtained through network data, such as at least one of big data computing, image processing, and network voting. After obtaining the computing tasks, the task management server in the cluster server will collect and obtain the tasks and add them to the local task management list. The cluster server will then distribute the computing tasks to each computing device, and each computing device will complete the aging test of the computing device by executing the computing tasks.
[0041] The technical solution of this embodiment determines multiple computing devices that need to perform aging tests; runs a preset cluster service software on the multiple computing devices to build a cluster server system; controls the cluster server system to execute a preset computing task to complete the aging test of the computing device. It uses portable computers in the aging scenario to build a cluster server application and completes the aging test through cluster control, improving the aging efficiency. And there is no need to specifically purchase a cluster server host, nor is it necessary to equip a dedicated server power supply. It directly uses the portable computers and power systems in the aging process as the cluster server host and power supply, makes full and reasonable use of the resources of each computer host to process server cluster tasks, reduces the usage cost, realizes energy conservation and environmental protection, and solves the problem in the prior art that it is impossible to balance improving the aging test efficiency and reducing costs.
[0042] Embodiment Two
[0043] Figure 2The flowchart of the computing device aging method provided in the second embodiment of the present invention. On the basis of the above embodiments, this embodiment further specifically describes the above computing device aging method. Correspondingly, as Figure 2 shown, the method of this embodiment includes:
[0044] S210. Determine multiple computing devices that need to undergo aging tests.
[0045] Among them, the computing devices determined by the computer device that need to undergo aging tests can be all computing devices on the aging production line, or multiple computing devices that need to undergo aging test experiments. This embodiment does not specifically limit this. Among them, the computing device can be a terminal device running cluster service software, including but not limited to one or more of a portable computer, a desktop computer, and a server.
[0046] S220. Run a preset cluster service software on the multiple computing devices to construct a cluster server system.
[0047] After determining the multiple computing devices that need to undergo aging tests, it is necessary to run a preset cluster service software on these multiple computing devices. Among them, for the installation of the preset cluster service software, after the portable computer is assembled in the factory, the corresponding cluster service software and aging software can be burned in batches, and the automatic startup and operation can be set. In this way, the portable computer can build a cluster service system while realizing the aging test.
[0048] It is also possible to install the operating system and run the automated installation script to perform the automated installation of the cluster software. Specifically, by setting up a PXE server, the installation of the operating system (OS) of each node is completed, the automated installation script is downloaded to the local node, and each node automatically runs the installation script to complete the automated installation of the cluster software and configure the corresponding cluster running network environment. This process is mainly based on the expect tool in linux. Expect is a free programming tool language used to communicate with automated and interactive tasks without human intervention. Using it, scripts can be created to provide input to commands or programs that are expected to receive input from the terminal. Generally, these inputs need to be entered manually. Expect can simulate the standard input according to the prompts of the program and provide the input required by the program to implement the execution of the interactive program.
[0049] An Expect script consists of a series of expect-send pairs: expect waits for a specific character in the output, usually a prompt, and then sends a specific response. By this method, corresponding settings and readings can be performed in the program to complete the manual interaction process required in software installation. Taking the installation of the linpack software package as an example, the program will automatically judge and read the output information and give the specified input; when the software installation is completed, the program will make a judgment and proceed to the installation of the next software. After that, it is also necessary to complete the configuration of the environment required for the operation of the cluster software on each node. By configuring the network file, the program will automatically judge the node location and configure the network card information for the network required by the cluster software to ensure the normal establishment and operation of the cluster.
[0050] This embodiment does not limit the specific installation method of the preset cluster service software. Here, it is mainly to realize running the cluster service software on multiple computing devices that need to perform aging tests to build a cluster service system.
[0051] S230. Obtain the computing tasks of the principal and add the computing tasks to the task list of the aging test;
[0052] Among them, the method of obtaining computing tasks can be divided into online acquisition and offline acquisition. For example, if the principal directly entrusts the computing tasks to the company, the computing tasks can be added to the task list of the aging test by manual addition; or automatic acquisition can be performed through the cluster server system. Specifically, the cluster server system includes a task management server, a task scheduling server, a result processing server, and each computing device. The principal publishes computing tasks through a network terminal. The task management server in the cluster server system automatically obtains the computing tasks in the network data by executing a task collection program and adds the obtained computing tasks to the task list of the aging test.
[0053] S240. Match the preset computing tasks for the computing devices according to the tasks in the task list.
[0054] Specifically, the task management server will obtain the task requests feedback by each computing device in real time. After receiving the requests, the task management server sends the task requests to the task scheduling server. The task scheduling server then executes the task scheduling service program, matches the corresponding tasks from the task management list, and then allocates them to one or more computing devices of the cluster server for task processing.
[0055] S250. Control the cluster server system to execute the preset computing tasks to complete the aging test of the computing devices.
[0056] In one embodiment, the computing tasks can include both the computing tasks stored in the local task management list, such as the tasks of aging tests, and the computing tasks customized by the principal obtained through network data, such as at least one of big data computing, image processing, and online voting. After obtaining the computing tasks, the task management server in the cluster server will collect and obtain the tasks and add them to the local task management list. The cluster server will then allocate the computing tasks to each computing device, and each computing device will complete the aging test of the computing device by executing the computing tasks.
[0057] S260. Generate a corresponding task settlement bill according to the completion status of the computing task, and send the task settlement bill to the principal.
[0058] Specifically, different computing tasks have different difficulty coefficients, and thus for computing tasks with different difficulty coefficients, different price levels are matched. In addition, for computing tasks with different deadlines, those with a more urgent deadline can be set at a higher price level than those with a normal deadline. The computing tasks allocated to the same principal are counted, and the total bill for the principal is calculated according to the deadline and difficulty system. Moreover, preferential measures can be implemented according to the task volume situation released by the principal. For example, for a principal that releases a relatively large number of computing tasks and can release tasks relatively stably, a discount strategy can be implemented. Finally, the actual bill is sent to the principal for settlement.
[0059] The technical solution of this embodiment, on the basis of aging tests on computing devices, also adds obtaining the computing tasks of the principal and obtaining corresponding benefits by completing the specified cluster tasks, thereby bringing additional income to enterprises and companies.
[0060] Embodiment Three
[0061] Figure 3 This is a flowchart of the computing device aging method provided in Embodiment Three of the present invention. On the basis of the above embodiments, this embodiment further refines "matching a preset computing task for the computing device according to the task in the task list" into "obtaining the task request information of each computing device, where the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device; and matching a preset computing task in the task list according to the task request information". Correspondingly, as Figure 3 shown, the method of this embodiment includes;
[0062] S310. Determine multiple computing devices that need to be subjected to aging tests.
[0063] Among them, the computing devices determined by the computer device that need to undergo aging tests can be all the computing devices on the aging production line, or multiple computing devices that need to undergo aging test experiments. There is no specific limitation in this embodiment. Among them, the computing device can be a terminal device running cluster service software, including but not limited to one or more of a portable computer, a desktop computer, and a server.
[0064] S320. Run a preset cluster service software on the multiple computing devices to construct a cluster server system.
[0065] After determining the multiple computing devices that need to undergo aging tests, it is necessary to run a preset cluster service software on these multiple computing devices. Among them, for the installation of the preset cluster service software, after the portable computer is assembled in the factory, the corresponding cluster service software and aging software can be burned in batches, and the automatic startup and operation can be set. In this way, while the portable computer realizes the aging test, it can construct a cluster service system.
[0066] It is also possible to perform the automatic installation of the cluster software by installing an operating system and running an automatic installation script. Specifically, by setting up a PXE server, the installation of the operating system (OS) of each node is completed, the automatic installation script is downloaded to the local node, and each node automatically runs the installation script to complete the automatic installation of the cluster software and configure the corresponding cluster running network environment. This process is mainly based on the expect tool in linux. Expect is a free programming tool language used to communicate with automatic and interactive tasks without human intervention. Using it, scripts can be created to provide input to commands or programs that are expected to receive input from the terminal, and generally these inputs need to be entered manually. Expect can simulate the standard input according to the prompts of the program and provide the input required by the program to implement the execution of the interactive program.
[0067] The Expect script consists of a series of expect-send pairs: expect waits for a specific character to be output in the output, usually a prompt, and then sends a specific response. Through this method, corresponding settings and readings can be performed in the program to complete the process of manual interaction required during software installation. Taking the installation of the linpack software package as an example, the program will automatically judge and read the output information and give the specified input; when the software installation is completed, the program will make a judgment and enter the installation of the next software. After that, it is also necessary to complete the configuration of the environment required for the operation of the cluster software on each node. By configuring the network file, the program will automatically judge the node location and configure the network card information for the network required by the cluster software to ensure the normal establishment and operation of the cluster.
[0068] This embodiment does not limit the specific installation method of the preset cluster service software. Here, it is mainly to realize running the cluster service software on multiple computing devices that need to perform aging tests to build a cluster service system.
[0069] S330. Obtain the computing tasks of the client and add the computing tasks to the task list of the aging test.
[0070] Among them, the method of obtaining computing tasks can be divided into online acquisition and offline acquisition. For example, if the client directly entrusts the computing tasks to the company, the computing tasks can be added to the task list of the aging test by manual addition; or automatic acquisition can be performed through the cluster server system. Specifically, the cluster server system includes a task management server, a task scheduling server, a result processing server, and each computing device. The client publishes computing tasks through a network terminal. The task management server in the cluster server system automatically obtains the computing tasks from the network data by executing a task collection program, and adds the obtained computing tasks to the task list of the aging test.
[0071] S340. Obtain the task request information of each computing device, where the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device; and match the preset computing tasks in the task list according to the task request information.
[0072] Specifically, the cluster server system includes a task management server, a task scheduling server, a result processing server, and each computing device. The task management server will obtain the task request information fed back by each computing device in real time, and the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device. After receiving the task request information, the task management server sends the information to the task scheduling server, and the task scheduling server then matches the corresponding tasks from the task management list according to the task request information and assigns them to the corresponding computing devices.
[0073] In one embodiment, matching the preset computing tasks for the computing devices according to the tasks in the task list may include: matching the preset computing tasks in the task list according to the current resource status of each computing device; and / or matching the preset computing tasks in the task list according to the remaining aging duration of each computing device; and / or matching the computing tasks with the preset computing power in the task list according to the computing power of each computing device.
[0074] Among them, the current resource status can be the computing tasks currently to be processed by each computing device. If there are many computing tasks currently to be processed by this computing device, then fewer computing tasks are allocated, or no computing tasks are allocated temporarily; if there are fewer computing tasks currently to be processed by this computing device, then appropriate computing tasks are allocated. By matching the preset computing tasks in the task list according to the current resource status of each computing device, task accumulation can be avoided and the aging test efficiency can be improved. Since there are large individual differences in the aging degree, the aging test time of each computer may vary. Therefore, by matching the computing tasks according to the remaining aging duration of each computing device, it is prevented that the remaining aging duration is insufficient to complete the allocated computing tasks. The computing power can be expressed as the speed at which each computing device processes computing tasks. If this computing device processes computing tasks quickly, then more tasks are appropriately allocated; if this computing device processes computing tasks slowly, then fewer tasks are appropriately allocated. By reasonably allocating tasks, the resource utilization rate of each computing device is maximized and the efficiency of the aging test is improved.
[0075] S350. Control the cluster server system to execute preset computing tasks to complete the aging test of the computing device.
[0076] In one embodiment, the computing tasks include not only the computing tasks stored in the local task management list, such as the tasks of the aging test, but also the computing tasks customized by the principal obtained through network data, such as at least one of big data computing, image processing, and network voting. After obtaining the computing tasks, the task management server in the cluster server adds the collected tasks to the local task management list, and the cluster server distributes the computing tasks to each computing device. Each computing device completes the aging test of the computing device by executing the computing tasks. It should be noted that in this example, after the computing device task processing is completed, the result of the task processing will be returned to the task management server. After receiving the result returned by the computing device, the task management server calls the result processing server to execute the result processing program to process the returned result data. After the result processing is completed, the task scheduling server will allocate new tasks to the computing device again, and alternately perform operations and distribute tasks in turn.
[0077] S360. Generate a corresponding task settlement bill according to the completion situation of the computing tasks, and send the task settlement bill to the principal.
[0078] In one embodiment, when obtaining the computing tasks customized by the client, it is necessary to quote according to the complexity of the computing tasks or the amount of computing power, and send the corresponding adjusted quote to the client for confirmation according to the actual time taken to complete the computing. After the computing tasks are completed, a task settlement bill is generated according to the computing results. For example, if the computing tasks are completed on time, the task settlement bill is sent to the client at the normal quote; if the computing tasks are completed overtime, the task settlement bill is sent to the client after a discount on the quote according to the overtime; if the computing tasks fail to be completed, the task settlement bill is sent to the client according to the settlement plan for the failed tasks, such as paying 10% of the quote.
[0079] The technical solution of this embodiment, by obtaining the task request information of each computing device, where the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device; and according to the task request information, matching the preset computing tasks in the task list, can reasonably allocate tasks, maximize the resource utilization rate of each computing device, avoid the backlog of tasks, and improve the efficiency of aging testing. In this embodiment, since the computing power consumed during the aging process simultaneously completes the computing tasks of the client and generates economic benefits, it reduces the waste of computing resources of the computing device during the aging process and greatly improves productivity.
[0080] Embodiment 4
[0081] Figure 4 The following is a schematic structural diagram of a computing device aging device provided by Embodiment 3 of the present invention, and the specific structure of the device is as follows:
[0082] The computing device determination module 410 is used to determine multiple computing devices that need to perform aging tests;
[0083] The cluster service construction module 420 is used to run a preset cluster service software on the multiple computing devices to construct a cluster server system;
[0084] The aging test execution module 430 is used to control the cluster server system to execute preset computing tasks to complete the aging test of the computing devices.
[0085] Optionally, the cluster server system constructed by the cluster service construction module includes a task management unit and a task scheduling unit.
[0086] Among them, the task management unit is used to obtain the computing tasks of the client and add the computing tasks to the task list of the aging test.
[0087] The task scheduling unit is used to match the preset computing tasks for the computing devices according to the tasks in the task list.
[0088] Optionally, the task management unit is further configured to obtain in real time the task request information fed back by each computing device, and send the task request information to the task scheduling unit; the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device.
[0089] Optionally, the task scheduling unit is further configured to match a preset computing task in the task list according to the current resource status of each computing device; and / or match a preset computing task in the task list according to the remaining aging duration of each computing device; and / or match a computing task with a preset computing power in the task list according to the computing power of each computing device.
[0090] Optionally, the cluster server system further includes a result processing unit, configured to return the result of task processing to the task management unit after the task processing of the computing device is completed.
[0091] Optionally, the device further includes a settlement bill sending module, configured to generate a corresponding task settlement bill according to the completion status of the computing task, and send the task settlement bill to the principal.
[0092] The technical solution of this embodiment determines multiple computing devices that need to be subjected to aging tests; runs a preset cluster service software on the multiple computing devices to build a cluster server system; controls the cluster server system to execute a preset computing task to complete the aging test of the computing devices. By using a portable computer in the aging scenario to build a cluster server application and completing the aging test through cluster control, the aging efficiency is improved, and there is no need to specifically purchase a cluster server host or equip a dedicated server power supply. Instead, directly use the portable computer and power system in the aging process as the cluster server host and power supply, making full and reasonable use of the resources of each computer host to perform server cluster task processing, reducing the usage cost, achieving energy conservation and environmental protection, and solving the problem in the prior art that it is impossible to balance improving the aging test efficiency and reducing costs.
[0093] Embodiment 5
[0094] Figure 5 It is a schematic structural diagram of a computing device provided in Embodiment 4 of the present invention. Figure 5 A block diagram of an exemplary computing device 12 suitable for use in implementing the embodiments of the present invention is shown. Figure 5 The shown computing device 12 is merely an example and should not impose any limitation on the functions and usage scope of the embodiments of the present invention. The device 12 is typically a computing device that executes computing tasks to complete aging tests.
[0095] Such as Figure 5As shown, computing device 12 is presented in the form of a general-purpose computing device. The components of computing device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples different system components (including system memory 28 and processing unit 16).
[0096] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. By way of example, these architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
[0097] Computing device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computing device 12, including volatile and nonvolatile media, removable and non-removable media.
[0098] System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Computing device 12 may further include other removable / non-removable, volatile / nonvolatile computer system storage media. By way of example only, storage system 34 can be used for reading from and writing to a non-removable, nonvolatile magnetic medium ( Figure 3 not shown, typically referred to as a "hard disk drive"). Although Figure 3Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (such as a "floppy disk") and an optical disk drive for reading and writing a removable non-volatile optical disk (such as a Compact Disc-Read Only Memory (CD-ROM), a Digital Video Disc-Read Only Memory (DVD-ROM), or other optical media) can be provided. In these cases, each drive can be connected to the bus 18 through one or more data medium interfaces. The storage device 28 can include at least one program product having a set of program modules 42 configured to perform the functions of the embodiments of the present invention.
[0099] The program / utility 40 having a set of program modules 42 can be stored, for example, in the storage device 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include the implementation of a network environment. The program modules 42 generally perform the functions and / or methods in the embodiments described in the present invention.
[0100] The computing device 12 can also communicate with one or more external devices 14 (such as a keyboard, a pointing device, a camera, a display 24, etc.), and can also communicate with one or more devices that enable a user to interact with the computing device 12, and / or communicate with any device that enables the computing device 12 to communicate with one or more other computing devices (such as a network card, a modem, etc.). Such communication can be carried out through the input / output (I / O) interface 22. Moreover, the computing device 12 can also communicate with one or more networks (such as a Local Area Network (LAN), a Wide Area Network (WAN), and / or a public network, such as the Internet) through the network adapter 20. As shown in the figure, the network adapter 20 communicates with other modules of the computing device 12 through the bus 18. It should be understood that although not shown in the figure, other hardware and / or software modules can be used in combination with the computing device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, Redundant Arrays of Independent Disks (RAID) systems, tape drives, and data backup storage systems, etc.
[0101] The processor 16 executes various functional applications and data processing by running the programs stored in the storage device 28, for example, implementing the method for aging a computing device provided in the above embodiments of the present invention. The method includes:
[0102] Determine multiple computing devices that need to undergo aging tests; run a preset cluster service software on the multiple computing devices to build a cluster server system; control the cluster server system to execute a preset computing task to complete the aging test of the computing devices.
[0103] Of course, those skilled in the art can understand that the processor can also implement the technical solutions of the computing device aging method provided in any embodiment of the present invention.
[0104] Embodiment 6
[0105] Embodiment 6 of the present invention also provides a storage medium containing computer-executable instructions, and the computer-executable instructions are used to execute a method for aging a computing device when executed by a computer processor. The method includes:
[0106] Determine multiple computing devices that need to undergo aging tests; run a preset cluster service software on the multiple computing devices to build a cluster server system; control the cluster server system to execute a preset computing task to complete the aging test of the computing devices.
[0107] Of course, for a storage medium containing computer-executable instructions provided in the embodiments of the present invention, the computer-executable instructions are not limited to the method operations described above, and can also execute relevant operations in the computing device aging method provided in any embodiment of the present invention.
[0108] Through the above description of the embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software and necessary general-purpose hardware. Of course, it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as a floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk, or optical disc of a computer, etc., including several instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0109] It should be noted that in the embodiments of the above search device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.
[0110] Note that the above is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments only. Without departing from the concept of the present invention, more other equivalent embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for calculating the aging of a computing device, characterized in that, Including: Determine multiple computing devices that need to undergo aging tests; Run a preset cluster service software on the multiple computing devices to build a cluster server system; Control the cluster server system to execute preset computing tasks to complete the aging tests of the computing devices; The computing tasks include tasks for aging tests and computing tasks customized by the client obtained through network data; Before controlling the cluster server system to execute preset computing tasks, it includes: Obtain the computing tasks of the client and add the computing tasks to the task list of the aging test; Match preset computing tasks for the computing devices according to the tasks in the task list; Obtain the task request information of each computing device, where the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device; and match preset computing tasks in the task list according to the task request information; The computing tasks include at least one of big data computing, image processing, and network voting.
2. The method according to claim 1, characterized in that, After controlling the cluster server system to execute preset computing tasks, it includes: Generate a corresponding task settlement bill according to the completion status of the computing tasks and send the task settlement bill to the client.
3. The method according to claim 1, wherein Before controlling the cluster server system to execute preset computing tasks, it also includes: Control the cluster server system to execute a computing task collection program and a computing task scheduling program.
4. The method according to claim 1, characterized in that, After controlling the cluster server system to execute preset computing tasks, it also includes: Control the cluster server system to execute a computing result processing program.
5. A device for calculating the aging of a computing device, characterized in that, Including: A computing device determination module for determining multiple computing devices that need to undergo aging tests; A cluster service construction module for running a preset cluster service software on the multiple computing devices to build a cluster server system; An aging test execution module for controlling the cluster server system to execute preset computing tasks to complete the aging tests of the computing devices; The computing tasks include tasks for aging tests and computing tasks customized by the client obtained through network data; The cluster server system includes a task management unit and a task scheduling unit; The task management unit is used to obtain the computing tasks of the client and add the computing tasks to the task list of the aging test; The task scheduling unit is used to match preset computing tasks for the computing devices according to the tasks in the task list; The task management unit is also used to obtain in real time the task request information fed back by each computing device and send the task request information to the task scheduling unit; the task request information includes at least one of the current resource status, remaining aging duration, and computing power of each computing device; The computing tasks include at least one of big data computing, image processing, and network voting.
6. A computing device, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the computing device aging method as described in any one of claims 1 - 4.
7. A storage medium containing computer-executable instructions, where the computer-executable instructions are used to execute the computing device aging method as described in any one of claims 1 - 4 when executed by a computer processor.
Citation Information
Patent Citations
Server automatic cluster testing method based on expect
CN103970655A
Job task allocation method, job task allocation device, server, job task allocation system and storage medium
CN111367680A
Server automatic aging test method and storage medium
CN112269733A
Cluster resource scheduling method and device, electronic equipment and storage medium
CN113377540A