CN112486661A - Automatic control method and system for peak-shifting startup of computer cluster - Google Patents

Automatic control method and system for peak-shifting startup of computer cluster Download PDF

Info

Publication number
CN112486661A
CN112486661A CN201910862485.8A CN201910862485A CN112486661A CN 112486661 A CN112486661 A CN 112486661A CN 201910862485 A CN201910862485 A CN 201910862485A CN 112486661 A CN112486661 A CN 112486661A
Authority
CN
China
Prior art keywords
computer
command
startup
script
timing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910862485.8A
Other languages
Chinese (zh)
Inventor
赵伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CN201910862485.8A priority Critical patent/CN112486661A/en
Publication of CN112486661A publication Critical patent/CN112486661A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/505Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the load

Abstract

The invention discloses an automatic control method and system for peak-shifting startup of a computer cluster, wherein the method comprises the following steps: each computer in the computer cluster acquires a first command for generating a timing startup time parameter and a second command for writing the timing startup time parameter into a BIOS (basic input output System) from a network side server; each computer generates a timing startup time parameter according to the first command, so that the next timing startup time of all computers of the computer cluster is uniformly distributed in a preset time period; each computer writes the generated timing startup time parameter into a BIOS according to the second command; and after each computer is shut down, when the next time of the timed startup time is determined to be reached according to the timed startup time parameter written in the BIOS, automatically executing a startup process so as to start all the computers of the computer cluster by mistake. The invention ensures that the maintenance operation of the computer is completed quickly, effectively and orderly by starting all the computers in a peak-off manner.

Description

Automatic control method and system for peak-shifting startup of computer cluster
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to an automatic control method and system for peak-staggered startup of a computer cluster.
Background
The daily computer maintenance work of an enterprise Information Technology (IT) department is mainly operations such as operating system and application program deployment and related debugging, and a large amount of manpower and time are required to be invested in a traditional manual mode, so that an enterprise creates an automatic execution script (hereinafter referred to as an automatic script) by writing or purchasing professional software by an IT person, replaces manual execution of automatic operation, can greatly improve the working efficiency, and is bound to become the future development trend of enterprise IT.
The automatic script is usually set as a startup item, when the computer is started, the automatic script is started first, and resources and tools are called from the network side without the participation of IT personnel to automatically complete the set maintenance operation. However, in large and medium-sized enterprises, a computer cluster may reach a scale of thousands or more, and if the computer cluster is not controlled and is completely started by the staff itself (for example, the staff goes to work and arrives at post), the following problems may occur because the staff intensively starts to start the automation script in a short time:
1. thousands of automatic scripts access network side resources simultaneously, so that network overload is caused, the execution speed of script commands is greatly reduced, the execution time is too long, and even the scripts interrupt execution and other failure results.
2. In the process of simultaneously executing thousands of automatic scripts, if a large-range power failure or network disconnection accident occurs suddenly, the commands and operations in execution are suddenly interrupted, so that large-range computer faults are caused, the daily work of enterprises is seriously influenced, and meanwhile, great pressure is brought to IT (information technology) personnel to remove the faults in a short time.
Disclosure of Invention
The embodiment of the invention provides an automatic control method and system for peak-shifting startup of a computer cluster.
The automatic control method for the off-peak startup of the computer cluster provided by the embodiment of the invention comprises the following steps:
each computer in the computer cluster acquires a first command for generating a timing startup time parameter and a second command for writing the timing startup time parameter into a Basic Input Output System (BIOS) from a network side server;
each computer generates a timing startup time parameter according to the first command, so that the next timing startup time of all computers of the computer cluster is uniformly distributed in a preset time period;
each computer writes the generated timing startup time parameter into a BIOS according to the second command;
and after each computer is shut down, when the next time of the timed startup time is determined to be reached according to the timed startup time parameter written in the BIOS, automatically executing a startup process so as to start all the computers of the computer cluster by mistake.
Preferably, each computer generates a timed boot time parameter according to the first command, including:
and each computer in the computer cluster acquires at least one of the information with randomness and the information with uniqueness in the system of the computer according to the first command, and generates a timed starting-up time parameter according to at least one of the information with randomness and the information with uniqueness in the system of the computer.
Preferably, each computer in the computer cluster acquires the first command and the second command from the network side server and executes the first command and the second command during the execution of the shutdown script.
Preferably, the method further comprises:
each computer in the computer cluster acquires an automation script for maintaining the computer and a fourth command for writing the automation script into a startup item from a network side server;
and each computer writes the automatic script into the startup item according to the fourth command, so that the automatic script written into the startup item is executed in the automatic startup process, and the maintenance operation of the computer is realized.
Preferably, each computer in the computer cluster acquires the fourth command from the network-side server and executes the fourth command during the execution of the shutdown script.
Preferably, each computer in the computer cluster has a third command for turning off the timed on-function in the automation script obtained from the network-side server.
Preferably, the method further comprises:
each computer in the computer cluster acquires a third command for closing the timing starting function from the network side server;
each computer adds the third command obtained from the network-side server to the automation script.
Preferably, after the maintenance operation on the computer is implemented, the method further comprises:
closing the timing starting function by each computer in the computer cluster according to the third command in the automatic script so as to prevent each computer from automatically executing the starting process again according to the timing starting time parameter written in the BIOS;
and after the timing startup function of each computer is closed, deleting the automatic script and executing a shutdown process.
The embodiment of the invention provides an automatic control system for peak-off startup of a computer cluster, which comprises:
the command acquisition module is used for enabling each computer in the computer cluster to acquire a first command for generating a timing startup time parameter and a second command for writing the timing startup time parameter into the BIOS from a network side server;
the parameter generating module is used for generating a timing startup time parameter of each computer according to the first command acquired by each computer, so that the next timing startup time of all the computers of the computer cluster is uniformly distributed in a preset time period;
the writing module is used for writing the generated timed startup time parameter into the BIOS according to the second command acquired by each computer;
and the automatic starting module is used for automatically executing the starting process when the next time of the timed starting time is determined to be reached according to the timed starting time parameter written in the BIOS after each computer is shut down, so that all computers of the computer cluster are started in a peak error mode.
Preferably, the command obtaining module is further configured to enable each computer in the computer cluster to obtain, from a network-side server, an automation script used for performing maintenance operation on the computer and a fourth command used for writing the automation script into a boot entry;
preferably, the writing module is further configured to write the automation script into the boot start item according to the fourth command acquired by each computer, so that the automation script written with the boot start item is executed in the automatic boot process, and maintenance operation on the computers is achieved.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
1. the embodiment of the invention realizes automatic script peak staggering access to network side resources by enabling all computers of the computer cluster to start up in a peak staggering way, can ensure that network load is balanced and not overloaded, and ensures that the maintenance operation of the computers is completed quickly, effectively and orderly.
2. According to the embodiment of the invention, the automatic script peak-shifting execution is realized by starting up all the computers of the computer cluster in a peak-shifting manner, and in the execution process, if a large-range power failure or network disconnection accident happens suddenly, the large-range computer fault can be avoided, the influence on the daily work of an enterprise is reduced, and the pressure of eliminating the fault for IT (information technology) personnel in a short time is reduced.
Drawings
FIG. 1 is a flowchart illustrating an automatic control method for off-peak booting of a computer cluster according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a fourth command obtaining and executing according to an embodiment of the present invention;
FIG. 3 is a flow diagram of executing an automation script provided by an embodiment of the present invention;
FIG. 4 is a graph of the quantity distribution of 1432 sample capture system time "seconds" values (0-59) provided by an embodiment of the present invention;
FIG. 5 is a flow diagram of an automated script for setup and execution provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of an implementation flow of the combination of the off-peak startup automatic control of the computer cluster and the IT automatic maintenance flow of the enterprise according to the embodiment of the present invention;
FIGS. 7a and 7b are a conventional upgrade and an upgrade after an embodiment of the present invention is employed, respectively;
fig. 8 is a schematic structural block diagram of an automatic control system for off-peak startup of a computer cluster according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in detail below with reference to the accompanying drawings, and it should be understood that the preferred embodiments described below are only for the purpose of illustrating and explaining the present invention, and are not to be construed as limiting the present invention.
Fig. 1 is a schematic flowchart of an automatic control method for off-peak startup of a computer cluster according to an embodiment of the present invention, and as shown in fig. 1, the method may include:
step S101: each computer in the computer cluster acquires a first command for generating a timing startup time parameter and a second command for writing the timing startup time parameter into a BIOS (basic input output System) from a network side server;
step S102: each computer generates a timing startup time parameter according to the first command, so that the next timing startup time of all computers of the computer cluster is uniformly distributed in a preset time period;
step S103: each computer writes the generated timing startup time parameter into a BIOS according to the second command;
step S104: and after each computer is shut down, when the next time of the timed startup time is determined to be reached according to the timed startup time parameter written in the BIOS, automatically executing a startup process so as to start all the computers of the computer cluster by mistake.
In practical applications, the computers in the computer cluster may execute the above steps S101 to S103 after acquiring the notification message that needs to be maintained by the network side server. The computers in the computer cluster may also send requests to the network side server periodically or periodically to query whether the network side server sends out the computer cluster maintenance requirement, and if it is determined that the network side server sends out the computer cluster maintenance requirement, the above steps S101 to S103 are performed.
In order to implement peak-off startup of the computers, the embodiment generates the timing startup time parameter by using at least one of random information and unique information in the system of each computer, for example, integer seconds and decimal seconds in the system time, and the IP address and the MAC address of the computer. At this time, step S102 may specifically be: and each computer in the computer cluster acquires at least one of the system time and the identification address of the computer according to the first command, and generates a timing startup time parameter according to at least one of the system time and the identification address of the computer.
The embodiment is intended to finish off-peak startup in a time period when a user does not use the computer, and run the automatic script set in the startup item to automatically realize the maintenance operation of the computer. To achieve this, during the execution of the above steps S101 to S103, the method may further include the following steps as shown in fig. 2:
step S201: each computer in the computer cluster acquires an automation script for maintaining the computer and a fourth command for writing the automation script into a startup item from a network side server;
step S202: and each computer writes the automatic script into the startup item according to the fourth command, so that the automatic script written into the startup item is executed in the automatic startup process, and the maintenance operation of the computer is realized.
In practical applications, since the timed booting time parameter is written into the BIOS in step S103, the computer will automatically boot up whenever the timed booting time is reached. Since the computer cluster does not need to be automatically powered on after the maintenance operation of the computer is completed, the timed power-on function of the computer should be turned off after the maintenance operation of the computer is completed. To achieve this, the present embodiment adds a third command to the automation script to turn off the timed on function. In a specific implementation, each computer in the computer cluster may obtain the third command carried by the computer cluster through an automation script, that is, the automation script obtained from the network-side server has a third command for turning off the timed on-off function, or, during the execution of the above steps S101 to S103, each computer in the computer cluster obtains the third command for turning off the timed on-off function from the network-side server and adds the third command obtained from the network-side server to the automation script, so that the third command may be executed during the execution of the automation script. Specifically, the method may further include the following steps as shown in fig. 3:
step S105: in the automatic starting process of each computer in the computer cluster, executing the automatic script written with the starting item to realize the maintenance operation of the computer;
step S106: after the automatic script is used for realizing the maintenance operation of the computers, each computer in the computer cluster closes the timing starting function according to the third command in the automatic script, so that each computer is prevented from automatically executing the starting process again according to the timing starting time parameter written in the BIOS;
step S107: and after the timing startup function of each computer is closed, deleting the automatic script and executing a shutdown process.
And after all the computers of the computer cluster finish the operation, finishing the automatic maintenance process of the computer cluster.
It should be noted that the computers of the computer cluster may acquire and execute at least one of the first to fourth commands during the period of being used by the user, or may acquire and execute at least one of the first to fourth commands during the period of executing the shutdown script when the user clicks the shutdown.
The embodiment of the invention also provides a computer readable medium, on which an automatic control program for peak-off startup of a computer cluster is stored, and when the automatic control program for peak-off startup of the computer cluster is executed by a processor, the steps of the automatic control method for peak-off startup of the computer cluster are realized. That is, one of ordinary skill in the art will appreciate that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can accessed by a computer. In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art.
The following 2 schemes are mainly used as practical startup control techniques for enterprise computers, and for computers meeting certain technical requirements, the computers can be controlled to be automatically started up in a state of being shut down and keeping power on (the power on state is a necessary condition, and will not be described repeatedly below). (1) The wake-on-lan technique is to send a specific data packet (or magic packet) to a target computer through a network. The technology firstly requires corresponding parameter setting on a series of links such as a computer BIOS, a network card driving program, an operating system, each level of network switch and the like, so that the magic packet can be guaranteed to be sent to a target computer through a network, and the target computer responds after receiving the magic packet and is automatically started in a correct mode. Some models of computers must even refresh the BIOS to a specific version to effectively support wake-on-LAN. Secondly, the MAC address of the network card of each target computer needs to be accurately grasped as the target address for sending the magic packet. Finally, IT personnel must specially write a timing sending program, send magic packets to all target MAC addresses in the network in batches and at a fixed time, and then achieve the goal of controlling the target computer to start up at a wrong peak. Therefore, the network awakening technology is very complex and the realization difficulty is very high. (2) The timed startup technology is to start the timed startup function in the BIOS of the target computer and set the startup time. The technology is generally supported on a PC and is relatively simple to implement. Setting a starting time in the BIOS of the target computer, and automatically starting up the target computer when the set starting time is reached after the target computer is turned off. And (4) setting the disable in the BIOS to close the timed startup function. Since the IT department of an enterprise usually sets the BIOS manually, IT is obviously infeasible to rely on manual operation to perform timed boot control on thousands of computer clusters.
Therefore, the invention is based on the timing startup technology, and realizes the automatic control of the off-peak startup of the enterprise computer cluster very simply and conveniently by compiling the randomly generated startup time parameter and automatically setting the control command of the BIOS and matching with the automatic script for IT maintenance, thereby ensuring that the IT automatic maintenance is completed safely and efficiently. To achieve the above object, the embodiments of the present invention should include at least the following steps:
1. and selecting a peak-off starting time period.
The purpose of off-peak startup is to avoid the time period of centralized startup of the computer cluster and avoid executing the automation scripts at the same time.
(1) The optimal choice for the off-peak boot-up period is the night off-time period.
The automatic script is designed to delete itself and automatically shut down after the execution is finished in the off-peak startup time period, and no automatic script is started after the staff goes on duty and starts up. Namely, all automatic maintenance operations are completed within the selected night off-peak startup time period.
(2) The non-working time is fully utilized, the peak-staggering starting time period (such as 0: 00-5: 00) is properly prolonged, the starting time of all the computers is controlled to be uniformly distributed in the time period, the number of the computers which are started at any time is reduced, the network load is balanced and not overloaded, and the loss is minimum when an unexpected power failure or network disconnection accident occurs.
2. And generating a starting time parameter.
The BIOS boot time parameter is required to provide "hours" and "minutes" values. For example, the power-on time is set to be 2:30, and the computer is automatically powered on when the time reaches 2:30 after being powered off. The simplest method is to use some of the variables in the target computer system that are unique (e.g., IP address) or random (e.g., system time) to automatically generate the boot-time parameter. Taking the capture system time "seconds" value as an example, as shown in fig. 4, the system time "seconds" values of 1432 computers are substantially evenly distributed. That is, the system time of each computer is not completely synchronized at the "second" level, so that the system time is captured at any time on any computer, and the "second" value is taken as a random variable. Because the value ranges of the second and the minute are the same (0-59), the value of the second can be directly defined as the value of the minute in the starting time. By analogy, the randomly generated boot time on each target computer will be uniformly distributed within the whole off-peak boot time period.
In this embodiment, a group of program commands for generating the timed boot time parameter is referred to as command 1 (or first command). Command 1 generates evenly distributed boot time points, which are the basis for off-peak boot.
3. The BIOS utility is invoked.
The enterprise computer cluster generally takes a commercial brand computer as a main part and generally supports a timing starting technology. Computer vendors may provide proprietary BIOS utility software for free to read, set, or modify BIOS parameters. According to the command parameter format given by the software use description, the BIOS tool software is called, so that the time parameter of the timed startup can be written into the target computer BIOS (command 2, or called as a second command), and the BIOS can be set to close the timed startup function (command 3, or called as a third command). Thus, the problem of setting up the BIOS is solved in a manner that program commands are executed.
It should be noted that the command 2 is automatically written into the BIOS boot time parameter, which is an implementation means of off-peak boot automatic control, and the command 2 implies a start-up timing boot function, for example, a certain time point of each day for timing boot.
It should be noted that the command 3 is a command for setting the timed boot function in the BIOS, and the timed boot function selects a certain time point of the evenyday, and after the timed boot is successful (meaning auto-boot- > execute the automation script- > complete the maintenance task), the timed boot is not required every day any more. Therefore, the timed power-on function should be turned off in the automation script.
4. The automation script is configured.
The automation script contains all maintenance operation commands for the computer. And adding a command 3 in the automation script, and setting a BIOS to close the timed startup function after the automation maintenance is finished. At the end of the automation script, a shutdown command and a command for deleting the automation script should be set, so that the computer is automatically shut down after all maintenance operations are finished, and the automation script is not started again after the computer is restarted.
In this embodiment, a command for copying the automation script to the boot entry of the target computer is written, which is called command 4 (or called fourth command). The automation script is stored in a network side server and is accessed by all target computers.
In this embodiment, command 4 is written into the shutdown script, and the automation script is intended to be set to automatically start up every time the computer is shut down, and the next time the computer is started up.
It should be noted that the shutdown script, the shutdown script policy, and the command 4 related to this embodiment are used to explain the entire automation operation process.
As shown in fig. 5, after the target computer is powered on and self-started, the automation script is used to complete the automation maintenance, then the command 3 is executed, the BIOS is set to close the timing power-on function, and finally the command of the power-off command and the command of deleting the automation script are executed.
5. And (5) preparing the process.
The command 1, the command 2 and the command 4 need to be executed on the target computer, and preparation work for setting the regular startup time of the BIOS and starting the automatic script after startup is well done. These commands should likewise be automatically executed on the target computer by technical means.
For example, a shutdown script management policy that enables the target computer may be included, but is not limited to. Command 1, command 2, and command 4 are written in sequence in the shutdown script. When the employee clicks 'shutdown' to the target computer, the operating system first triggers a shutdown script at the background, and executes each command in sequence to automatically complete the preparation work. After the shutdown script is executed, the operating system sends a physical shutdown signal to the motherboard.
The automatic control of the computer cluster off-peak startup can be implemented by combining with the automatic maintenance process of the enterprise IT, as shown in fig. 6, the specific implementation process is as follows:
step S301: automation script add command 3.
The automation script contains all maintenance operation commands. And adding a command 3 in the automation script and setting a BIOS closing timing shutdown function. At the end of the automation script, a shutdown command and a command for deleting the script should be set, so that the computer is automatically shut down after all maintenance operations are finished, and the automation script is not started again.
Step S302: command 1, Command 2, and Command 4 are executed on the target computer.
And randomly generating a timing startup time parameter on the target computer and writing the timing startup time parameter into the BIOS to finish the preparation work of timing startup and starting the automatic script.
Step S303: and the staff is shut down after work.
Step S304: and when the starting time is reached, the machine is automatically started.
Step S305: and starting an automation script and automatically executing all maintenance operations.
Step S306: and automatically shutting down.
The set of boot-time parameters generated from executing command 1 on each target computer, as seen from the computer cluster as a whole, are uniformly distributed within the planned off-peak boot-time period due to randomness.
After the employee is shut down from work, all the target computers are automatically started in sequence at the starting time points set by the BIOS of the target computers along with the time entering the off-peak starting time period, the automatic script is started, and the automatic maintenance operation is executed. When the command 3 is executed, the timed starting function is automatically closed. When the last computer cluster is shut down, the whole off-peak startup automatic control and automatic maintenance operation process is completed.
It should be noted that, the shutdown script is stored in the target computer, for example, after a "shutdown script policy" of a Windows is started, when a user clicks "shutdown", the operating system first executes the local shutdown script, and then actually shuts down (i.e., physically shuts down).
Examples of the applications
Upgrading an application system of a Client/Server (C/S) architecture is a common scenario in enterprise IT maintenance. When the server side is upgraded from the old version to the new version, the client side of the old version cannot work due to incompatibility, and the server side can be recovered to be normal only after the client side is also upgraded to the new version. According to the traditional upgrading mode, no matter manual operation or script execution, thousands of computer clusters need a long time period to complete upgrading work, most computers cannot use the application system in nearly the whole period, and the daily work of an enterprise is undoubtedly influenced negatively, as shown in fig. 7 a. If the off-peak startup automatic control scheme provided by the invention is adopted and the automatic script is executed, all the clients and the server can be ensured to complete synchronous upgrade in the same day, and uninterrupted switching of service application is really realized, as shown in fig. 7 b.
Fig. 8 is a schematic structural block diagram of an automatic control system for off-peak startup of a computer cluster according to an embodiment of the present invention, and as shown in fig. 8, the system may be applied to each computer of the computer cluster, and the system may include:
a command obtaining module 10, configured to enable each computer in the computer cluster to obtain, from a network-side server, a first command for generating a timed startup time parameter and a second command for writing the timed startup time parameter into the BIOS;
the parameter generating module 20 is configured to generate a timing startup time parameter of each computer according to the first command acquired by each computer, so that the next timing startup time of all the computers of the computer cluster is uniformly distributed in a preset time period;
a write-in module 30, configured to write the generated timed boot time parameter into the BIOS according to the second command acquired by each computer;
and the automatic starting module 40 is used for automatically executing the starting process when the next time of the timed starting time is determined to be reached according to the timed starting time parameter written in the BIOS after each computer is shut down, so that all computers of the computer cluster are started in a peak-off manner.
In practical application, the computers in the computer cluster can perform command acquisition and execution after acquiring the notification message which is sent by the network side server and needs to perform computer maintenance. The computers in the computer cluster can also send requests to the network side server periodically or periodically to inquire whether the network side server sends out the computer cluster maintenance requirements or not, and if the network side server is determined to send out the computer cluster maintenance requirements, command acquisition and execution are carried out.
In order to implement peak-off startup of the computers, the embodiment generates the timing startup time parameter by using at least one of random information and unique information in the system of each computer, for example, integer seconds and decimal seconds in the system time, and the IP address and the MAC address of the computer. At this time, the parameter generating module 20 may be specifically configured to obtain at least one of the system time and the identification address of the self according to the first command, and generate the timed boot time parameter according to at least one of the system time and the identification address of the self.
The embodiment is intended to finish off-peak startup in a time period when a user does not use the computer, and run the automatic script set in the startup item to automatically realize the maintenance operation of the computer. To achieve the purpose, the command obtaining module 10 may be further configured to enable each computer in the computer cluster to obtain, from the network-side server, an automation script for performing maintenance operation on the computer and a fourth command for writing the automation script into a boot start item; the writing module 30 may also be configured to write the automation script into the boot entry according to the fourth command acquired by each computer, so that in the process of automatically executing boot, the automation script written into the boot entry is executed, and thus, the maintenance operation on the computer is implemented.
In practical applications, since the write module 30 has written the timed booting time parameter into the BIOS, the computer will automatically boot up whenever the timed booting time is reached. Since the computer cluster does not need to be automatically powered on after the maintenance operation of the computer is completed, the timed power-on function of the computer should be turned off after the maintenance operation of the computer is completed. To achieve this, the present embodiment adds a third command to the automation script to turn off the timed on function. In a specific implementation, the command obtaining module 10 may obtain the third command carried by the automation script through the automation script, that is, the automation script obtained by the command obtaining module 10 from the network-side server has a third command for turning off the timed on-off function, or during obtaining and executing the first and second commands, the command obtaining module 10 obtains the third command for turning off the timed on-off function from the network-side server and adds the third command obtained from the network-side server to the automation script, so that the third command may be executed during executing the automation script. Specifically, the auto-boot module 40 of the system may be further configured to execute an automation script written with a boot entry in an auto-boot process, to implement a maintenance operation on the computer, and after the maintenance operation on the computer is implemented by using the automation script, close the timed boot function according to the third command in the automation script, so as to prevent each computer from automatically executing the boot process again according to the timed boot time parameter written with the BIOS, and then delete the automation script and execute the shutdown process after closing the timed boot function.
On the basis of having possessed the automation script that can replace manual operation already, adopt the off-peak start-up scheme that this embodiment described, can make automation mechanized operations accomplish more safely high-efficiently.
In summary, the embodiments of the present invention have the following technical effects:
the idea of automatic control of off-peak startup provided by the embodiment of the invention can solve the problems of network overload and the like possibly caused by centralized startup and startup of an automatic script when a computer cluster executes automatic maintenance, can very simply and conveniently realize the aim of safely and efficiently finishing the automatic maintenance of thousands of computers in a non-working time period, finds a practical and feasible practical method for really realizing IT maintenance automation of large and medium-sized enterprises, can shorten the completion period of any maintenance task to the completion of the current day (night), brings qualitative leap for IT maintenance work of the enterprises, and has significance of milestones.
Although the present invention has been described in detail hereinabove, the present invention is not limited thereto, and various modifications can be made by those skilled in the art in light of the principle of the present invention. Thus, modifications made in accordance with the principles of the present invention should be understood to fall within the scope of the present invention.

Claims (10)

1. An automatic control method for off-peak startup of a computer cluster, the method comprising:
each computer in the computer cluster acquires a first command for generating a timing startup time parameter and a second command for writing the timing startup time parameter into a BIOS (basic input output System) from a network side server;
each computer generates a timing startup time parameter according to the first command, so that the next timing startup time of all computers of the computer cluster is uniformly distributed in a preset time period;
each computer writes the generated timing startup time parameter into a BIOS according to the second command;
and after each computer is shut down, when the next time of the timed startup time is determined to be reached according to the timed startup time parameter written in the BIOS, automatically executing a startup process so as to start all the computers of the computer cluster by mistake.
2. The method of claim 1, wherein generating a timed boot time parameter for each computer in accordance with the first command comprises:
and each computer in the computer cluster acquires at least one of the information with randomness and the information with uniqueness in the system of the computer according to the first command, and generates a timed starting-up time parameter according to at least one of the information with randomness and the information with uniqueness in the system of the computer.
3. The method of claim 1 or 2, wherein each computer in the computer cluster acquires the first command and the second command from a network-side server and executes the first command and the second command during execution of the shutdown script.
4. The method of claim 1, further comprising:
each computer in the computer cluster acquires an automation script for maintaining the computer and a fourth command for writing the automation script into a startup item from a network side server;
and each computer writes the automatic script into the startup item according to the fourth command, so that the automatic script written into the startup item is executed in the automatic startup process, and the maintenance operation of the computer is realized.
5. The method of claim 4, wherein each computer in the computer cluster obtains the fourth command from the network-side server and executes the fourth command during execution of the shutdown script.
6. The method of claim 4, wherein each computer in the computer cluster has a third command for turning off the timed on function in the automation script obtained from the network-side server.
7. The method of claim 4, further comprising:
each computer in the computer cluster acquires a third command for closing the timing starting function from the network side server;
each computer adds the third command obtained from the network-side server to the automation script.
8. The method of claim 6 or 7, wherein after performing the maintenance operation on the computer, the method further comprises:
closing the timing starting function by each computer in the computer cluster according to the third command in the automatic script so as to prevent each computer from automatically executing the starting process again according to the timing starting time parameter written in the BIOS;
and after the timing startup function of each computer is closed, deleting the automatic script and executing a shutdown process.
9. An automatic control system for off-peak startup of a computer cluster, the system comprising:
the command acquisition module is used for enabling each computer in the computer cluster to acquire a first command for generating a timing startup time parameter and a second command for writing the timing startup time parameter into the BIOS from a network side server;
the parameter generating module is used for generating a timing startup time parameter of each computer according to the first command acquired by each computer, so that the next timing startup time of all the computers of the computer cluster is uniformly distributed in a preset time period;
the writing module is used for writing the generated timed startup time parameter into the BIOS according to the second command acquired by each computer;
and the automatic starting module is used for automatically executing the starting process when the next time of the timed starting time is determined to be reached according to the timed starting time parameter written in the BIOS after each computer is shut down, so that all computers of the computer cluster are started in a peak error mode.
10. The system of claim 9,
the command acquisition module is further used for enabling each computer in the computer cluster to acquire an automation script for maintaining the computer and a fourth command for writing the automation script into a startup item from a network side server;
the writing module is further configured to write the automation script into the boot entry according to the fourth command acquired by each computer, so that the automation script written into the boot entry is executed in the automatic boot process, and maintenance operation on the computers is achieved.
CN201910862485.8A 2019-09-12 2019-09-12 Automatic control method and system for peak-shifting startup of computer cluster Pending CN112486661A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910862485.8A CN112486661A (en) 2019-09-12 2019-09-12 Automatic control method and system for peak-shifting startup of computer cluster

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910862485.8A CN112486661A (en) 2019-09-12 2019-09-12 Automatic control method and system for peak-shifting startup of computer cluster

Publications (1)

Publication Number Publication Date
CN112486661A true CN112486661A (en) 2021-03-12

Family

ID=74920613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910862485.8A Pending CN112486661A (en) 2019-09-12 2019-09-12 Automatic control method and system for peak-shifting startup of computer cluster

Country Status (1)

Country Link
CN (1) CN112486661A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662696A (en) * 2012-03-27 2012-09-12 中国人民解放军国防科学技术大学 Method and device for quickly starting massively parallel computer system
CN103049064A (en) * 2011-10-11 2013-04-17 联想(北京)有限公司 Method and system for starting computing terminal and computing terminal
CN103078950A (en) * 2013-01-18 2013-05-01 浪潮电子信息产业股份有限公司 Method for increasing starting speed of cluster physical computers under cloud environment
CN103178977A (en) * 2011-12-22 2013-06-26 英业达股份有限公司 Computer system and starting-up management method of same
CN105528054A (en) * 2015-12-25 2016-04-27 珠海国芯云科技有限公司 Cluster system comprehensive scheduling energy saving method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103049064A (en) * 2011-10-11 2013-04-17 联想(北京)有限公司 Method and system for starting computing terminal and computing terminal
CN103178977A (en) * 2011-12-22 2013-06-26 英业达股份有限公司 Computer system and starting-up management method of same
CN102662696A (en) * 2012-03-27 2012-09-12 中国人民解放军国防科学技术大学 Method and device for quickly starting massively parallel computer system
CN103078950A (en) * 2013-01-18 2013-05-01 浪潮电子信息产业股份有限公司 Method for increasing starting speed of cluster physical computers under cloud environment
CN105528054A (en) * 2015-12-25 2016-04-27 珠海国芯云科技有限公司 Cluster system comprehensive scheduling energy saving method and device

Similar Documents

Publication Publication Date Title
US8601466B2 (en) Software deployment method and system, software deployment server and user server
DE102015115533B4 (en) Apparatus, computer-readable storage media and method for a drive assembly control strategy
US20080089338A1 (en) Methods for remotely creating and managing virtual machines
CN110879712B (en) Cloud data center physical host installation method and related device
CN109587331B (en) Method and system for automatically repairing cloud mobile phone fault
US20090327782A1 (en) Device power management using network connections
CN113434202B (en) Device starting method and device, electronic device and computer storage medium
WO2017124799A1 (en) Firmware management method and device
CN105183520A (en) Automatic remote installing and debugging method and system for computer software
CN112040476A (en) Upgrading method and device for Internet of things terminal
CN111104147A (en) BMC upgrading method, device, terminal and storage medium
CN108989123A (en) A kind of server configuration method and device
US11625235B2 (en) Program installation in a virtual environment
CN111953809B (en) Method, device, equipment and system for managing resource address
CN111352662B (en) Server starting sequence control method, system, terminal and storage medium
CN117289963A (en) Method and equipment for online updating target area of server platform service firmware
CN112099902A (en) Network adapter configuration method and device of virtual machine, electronic device and storage medium
CN112486661A (en) Automatic control method and system for peak-shifting startup of computer cluster
WO2023098052A1 (en) Server operation and maintenance method and apparatus, and device and storage medium
CN115794182A (en) Firmware out-of-band upgrading method and device, electronic equipment and storage medium
CN114840263A (en) Network card management method, device, equipment and storage medium
CN109634685B (en) Starting and stopping method and related device for PXE function of PCH gigabit Ethernet
JP3719962B2 (en) Centralized management system, centralized management method and program for centralized management
CN113918179A (en) Method and system for automatically installing OS (operating system) by cooperation of host and intelligent network card under Linux
CN102810067A (en) Virtual machine template updating system and method

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