CN111581014A - Method and device for automatically controlling host to restart and related equipment - Google Patents

Method and device for automatically controlling host to restart and related equipment Download PDF

Info

Publication number
CN111581014A
CN111581014A CN202010237715.4A CN202010237715A CN111581014A CN 111581014 A CN111581014 A CN 111581014A CN 202010237715 A CN202010237715 A CN 202010237715A CN 111581014 A CN111581014 A CN 111581014A
Authority
CN
China
Prior art keywords
restarting
target host
template
restart
host
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010237715.4A
Other languages
Chinese (zh)
Other versions
CN111581014B (en
Inventor
吴湘
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202010237715.4A priority Critical patent/CN111581014B/en
Publication of CN111581014A publication Critical patent/CN111581014A/en
Application granted granted Critical
Publication of CN111581014B publication Critical patent/CN111581014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1415Saving, restoring, recovering or retrying at system level
    • G06F11/1441Resetting or repowering

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Retry When Errors Occur (AREA)

Abstract

The present disclosure provides a method, an apparatus and a related device for automatically controlling a host to restart, which relate to the technical field of operation and maintenance, and the method includes: acquiring a restarting template, wherein an automatic restarting process is defined in the restarting template; collecting system related information of a target host; judging whether the target host is suitable for the restarting template or not according to system related information of the target host; and if the target host is suitable for the restarting template, automatically restarting the target host according to the automatic restarting flow of the target restarting template. The method provided by the invention can automatically control the host to restart, improve the restarting efficiency and reduce the restarting operation risk.

Description

Method and device for automatically controlling host to restart and related equipment
Technical Field
The present invention relates to the field of operation and maintenance technologies, and in particular, to a method and an apparatus for automatically restarting a host, and a related device.
Background
In operation and maintenance work, the host system is often required to be restarted.
At present, a method for restarting a host mainly logs in a host system and manually executes a restart command to perform related operations. However, a system with high reliability and stability requirements, such as a bank, is not simply restarted, and a cumbersome check is required before and after the restart to ensure the reliability of the restart. At present, the risk of manual misoperation and operation leakage during manual restarting is very high, and errors are very easy to occur. Moreover, for a scene with many operation and maintenance machines, manual restarting is time-consuming and labor-consuming in a large scale, restarting efficiency is low, time-consuming is long, and normal service provided by a host is influenced.
Therefore, how to restart the host quickly and reduce the risk of the restart operation is an urgent technical problem to be solved.
Disclosure of Invention
The invention provides a method, a device and related equipment for automatically controlling a host to restart, which aim to solve the problems of low host restarting efficiency and high restarting risk in a system with higher requirement on reliability and stability, such as a bank and the like, in the prior art.
In one aspect, an embodiment of the present invention provides a method for automatically controlling a host to reboot, where the method includes:
acquiring a restarting template, wherein an automatic restarting process is defined in the restarting template;
collecting system related information of a target host;
judging whether the target host is suitable for the restarting template or not according to system related information of the target host;
and if the target host is suitable for the restarting template, automatically restarting the target host according to the automatic restarting flow of the target restarting template.
In an implementation manner of this embodiment, the system-related information of the target host includes: IP address information of the host, operating system type, deployment type.
In an implementation manner of this embodiment, the automatic restart process of restarting the template includes:
stopping a user process on the target host;
checking whether the user processes on the target host are all stopped;
if the data transmission is stopped, acquiring and storing the state information of the target host;
after saving, restarting the target host;
after the restart, the NTP state of the target host is detected,
after the NTP state is recovered, checking and acquiring the current state information of the target host, and comparing the state information with the state information stored before restarting;
and after the comparison is consistent, the user process before restarting is started.
In an implementation manner of this embodiment, the automatic restart process further includes:
and after the NTP state is recovered, checking whether the target host is configured with CTM job scheduling, and if so, invoking the CTM job scheduling.
In an implementation manner of this embodiment, the automatic restart process further includes:
and after the user process before starting is adjusted, checking whether the monitoring process on the target host is started or not, and if not, starting the monitoring process.
In one implementation manner of this embodiment, the restart template includes a database restart template and a non-database restart template.
In an implementation manner of this embodiment, for restarting the template in the database, the stopping the user process on the target host includes:
detecting a health state of a database instance on a target host;
if so, stopping the database instance;
stopping CRS cluster resources after all of the database instances have stopped.
In an implementation manner of this embodiment, if there are multiple target hosts, whether the target hosts are in the same cluster or the same deployment unit is determined according to the related information of the target hosts, and automatic restart is performed in batches for the multiple target hosts in the same cluster or the same deployment unit.
In another aspect, an embodiment of the present invention provides an apparatus for automatically controlling a host to perform a reboot, including:
the template acquisition template is used for acquiring a restarting template, and an automatic restarting process is defined in the restarting template;
the information acquisition module is used for acquiring system related information of the target host;
the judging module is used for judging whether the target host is suitable for the restarting template or not according to the system related information of the target host;
and the restarting execution module is used for executing automatic restarting on the target host according to the automatic restarting flow of the restarting template when the target host is suitable for the restarting template.
In an implementation manner of this embodiment, the system-related information of the target host includes: IP address information of the host, operating system type, deployment type.
In an implementation manner of this embodiment, the automatic restart process of restarting the template includes:
stopping a user process on the target host;
checking whether the user processes on the target host are all stopped;
if the data transmission is stopped, acquiring and storing the state information of the target host;
after saving, restarting the target host;
after the restart, the NTP state of the target host is detected,
after the NTP state is recovered, checking and acquiring the current state information of the target host, and comparing the state information with the state information stored before restarting;
and after the comparison is consistent, the user process before restarting is started.
In an implementation manner of this embodiment, the automatic restart process further includes:
and after the NTP state is recovered, checking whether the target host is configured with CTM job scheduling, and if so, invoking the CTM job scheduling.
In an implementation manner of this embodiment, the automatic restart process further includes:
and after the user process before starting is adjusted, checking whether the monitoring process of the target host is started or not, and if not, starting the monitoring process.
In one implementation manner of this embodiment, the restart template includes a database restart template and a non-database restart template.
In an implementation manner of this embodiment, for restarting the template in the database, the stopping the user process on the target host includes:
detecting a health state of a database instance on a target host;
if so, stopping the database instance;
stopping CRS cluster resources after all of the database instances have stopped.
In an implementation manner of this embodiment, the apparatus further includes:
and the batch restarting module is used for judging whether the target host is in the same cluster or the same deployment unit according to the relevant information of the target host acquired by the information acquisition module when a plurality of target hosts exist, and controlling the target hosts to execute automatic restarting in batches for the plurality of target hosts in the same cluster or the same deployment unit.
In yet another aspect, an embodiment of the present invention provides a computer storage medium having computer instructions stored thereon, where the computer instructions are executable by a processor to implement the method for automatically controlling a host to reboot as described in any one of the foregoing implementation manners.
In yet another aspect, an embodiment of the present invention provides a computer apparatus, including
A memory having a computer program stored thereon,
a processor for executing the computer program to implement the method of any one of claims 1 to 8.
The method provided by the embodiment of the invention can automatically control the target host to restart according to the automatic restarting process of the restarting module applicable to the target host, thereby improving the restarting efficiency and reducing the restarting operation risk.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a method for rebooting an automatic control host according to embodiment 1 of the present invention;
FIG. 2 is a flowchart of a method for automatically controlling a non-database host to reboot in accordance with embodiment 2 of the present invention;
FIG. 3 is a flowchart of a method for automatically controlling a database host to reboot according to embodiment 3 of the present invention;
FIG. 4 is a flowchart of a method of automatically controlling multiple hosts to reboot according to embodiment 4 of the present invention;
fig. 5 is a schematic diagram of an apparatus for automatically controlling a host to perform a reboot according to embodiment 5 of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings. It is to be understood that the following examples are illustrative only and are not intended to limit the scope of the present invention.
In the invention, the method for automatically restarting the control host can be applied to a cloud control system, the device for automatically restarting the control host can be a device on the cloud control system, and the cloud control system is connected with a plurality of hosts through a network.
[ example 1 ]
The embodiment provides a method for automatically controlling a host to restart, which includes:
s101: and acquiring a restart template, wherein an automatic restart process is defined in the restart template.
The restart template of the embodiment is used for restarting a UNIX-like operating system, such as an AIX operating system, an HPUX operating system and a LINIX operating system. According to different host deployment modes, the restart template can be divided into a database operation template and a non-database operation template, which respectively define an automatic restart process of a database host and a restart process of non-database hosts such as a Web host, an AP host and the like.
Before restarting, the restart template can be stored in advance, and a restart template list is provided for a user to select. After the user selection, a user-selected restart template may be obtained.
S102: and collecting system related information of the target host.
Before acquisition, a list of hosts may be obtained and provided for the user to select a target host that needs to be restarted. The target host selected by the user may be one or more. After the target host is determined, the acquisition script under the restart template selected by the user can be issued to the target host to acquire system related information of the target host.
S103: and judging whether the target host is suitable for the restarting template or not according to the system related information of the host.
The method comprises the steps that for a non-database restarting template, collected system related information of a target host comprises an IP address, an operating system type, a deployment type and the like of the host, whether the target host is suitable for the current target restarting template can be judged according to the operating system type and the deployment type of the host, and if the target host is not suitable for the current target restarting template, a user can be reminded to reselect. And aiming at the condition that a plurality of target hosts are available, reminding a user of the target host which is not suitable for the current target restarting template so as to re-determine the selected restarting host.
For the database restart template, the collected system-related information of the target host may include, in addition to the IP address, the operating system type, the deployment type, and the like of the host, the system-related information of the database instance deployed on the target host, for example, the database activity instance name, the activity instance number, the current database name, the database version, the current instance name, whether or not RAC is related information, and in addition to judging whether the target host is suitable for the current restart template according to the IP address, the operating system type, and the deployment type, whether or not the target host is suitable for the current restart template may be further judged according to the related information of the database instance.
S104: and if the target host is suitable for the restarting template, automatically restarting the target host according to the automatic restarting flow of the restarting template. The automatic restart procedure will be described in detail below.
According to the embodiment, the target host can be automatically restarted according to the automatic restarting process of the restarting module applicable to the target host.
[ example 2 ]
The embodiment provides a method for automatically controlling a non-database host (such as an AP host and a WEB host) to restart. As shown in fig. 2, the method for automatically controlling the non-database host to restart includes:
s201: and acquiring a non-database restart template, wherein an automatic restart process of a non-database host is defined in the target restart template.
S202: collecting system related information of a target host;
s203: and judging whether the target host is suitable for the non-database restarting template or not according to the system related information.
S204: and if the target host is suitable for the non-database restarting template, automatically restarting the target host according to an automatic restarting flow of the non-database restarting template.
Specifically, in step S104, if the target host is suitable for the non-database restart template, the associated script under the non-database restart template may be issued to the target host, where the associated script includes, but is not limited to, a user process stop script, a status information acquisition script, a restart script, an NTP (Network Time Protocol) status check script, an information comparison script, a process start script, and the like.
After the issuing, the user process stop script may be started to stop the user process on the target host, and then it may be checked whether all the user processes on the target host have stopped, and if all the user processes have stopped, the state information obtaining script may be started to obtain the state information on the target host, where the state information may include some information of a system layer of the host, for example, state, information, and the like of hardware devices such as a system process, system parameters, a network card, and the like. After the state information of the target host is acquired, the acquired state information may be saved in a designated directory to be compared with the restarted state information. After saving the state information, a restart script may then be launched to restart the target host.
After the target host is restarted, the NTP status check script may be started to check the status of the NTP. The NTP state is a clock synchronization state of the current target host and the clock synchronization server, and when the NTP state is recovered, that is, after the clock of the current target host and the clock of the clock synchronization server are synchronized, the state information acquisition script may be restarted to acquire the state information of the restarted target host. The state information of the target host after the reboot can then be compared with the state information saved before the reboot. If the comparison is consistent, the process starting script can be started to start the user process before restarting. If the state information before and after restarting is inconsistent, an inconsistent item can be output, for example, the inconsistent item is listed on a display, and the subsequent user process starting operation is performed after the operation and maintenance personnel process the inconsistent item.
In this embodiment, each target host can be automatically restarted through one cloud device without logging in each host system to perform manual operation, so that the restarting efficiency is improved, and the restarting can be performed only by one operation and maintenance worker. Moreover, in the embodiment, each check is realized through the script during restarting, and compared with manual check, misoperation and omission can be avoided, and the reliability of restarting is improved.
In some implementations of this embodiment, after the NTP status is restored, it may be checked whether a CTM (CONTROL-M, a job scheduling platform) job schedule is configured on the target host, and if so, the CTM job schedule may be invoked.
Typically, a monitoring process (e.g., a control process) on the target host is automatically launched upon reboot, with some exceptions. In some implementation manners of this embodiment, after the user process before the start is adjusted, it may also be checked whether the monitoring process on the target host is already started, and when the monitoring process is not started, the monitoring process is started.
[ example 3 ]
The embodiment provides a method for automatically controlling a database host to restart. As shown in fig. 3, the method for automatically restarting the database host includes:
s301: and acquiring a database restart template, wherein an automatic restart process of the database host is defined in the target restart template.
S302: collecting system related information of a target host;
s303: and judging whether the target host is suitable for the database restarting template or not according to the system related information.
S304: and if the target host is suitable for the database restarting template, automatically restarting the target host according to an automatic restarting flow of the database restarting template.
Specifically, in step S304, if the target host is suitable for the database restart template, a related script under the database restart template may be issued to the target host, where the related script includes, but is not limited to, a user process stop script, a state information acquisition script, a restart script, an NTP state check script, an information comparison script, a process call script, and the like.
Further, the user process stop script may be initiated to stop the user process on the target host. For the database host, the user process on the database host is a process of the database, and at this time, stopping the user process on the target host specifically may include: the health state of the database instances on the target host is detected, for example, the active/standby health states of the database may be checked, and when the active/standby health states are normal, the database instances on the target host may be sequentially stopped. When all database instances are stopped, the health status of a CRS (Cluster Ready Service of Oracle) Cluster may be checked, and when the health status of the CRS Cluster is normal, the CRS Cluster resources may be stopped.
After stopping, it can be checked whether all user processes on the target host have stopped. If the user processes are all stopped, an instruction may be issued to start a state information acquisition script to acquire state information on the target host, where the state information may include some information of a system layer of the host, for example, state, information, and the like of hardware devices such as a system process, system parameters, a network card, and the like. After the state information of the target host is acquired, the acquired state information may be saved in a designated directory to be compared with the restarted state information. After saving the state information, an instruction may be issued to start a restart script to restart the target host.
After the target host is restarted, the NTP status check script may be started to check the status of the NTP. The NTP state is a clock synchronization state of the current target host and the clock synchronization server, and when the NTP state is recovered, that is, after the clock of the current target host and the clock of the clock synchronization server are synchronized, the state information acquisition script may be restarted to acquire the state information of the restarted target host. The state information of the target host after the reboot can then be compared with the state information saved before the reboot. If the comparison is consistent, the process starting script can be started to start the user process before restarting. For the database host, the adjusting of the user process before restarting may specifically include: invoking CRS cluster resources, invoking database instances, etc.
If the state information before and after restarting is inconsistent, inconsistent items can be output, for example, the inconsistent items are listed on a screen, and the subsequent process starting operation is performed after the operation and maintenance personnel process the inconsistent items.
In some implementations of this embodiment, after the NTP status is restored, it may be checked whether a CTM job schedule is configured on the target host, and if so, the CTM job schedule may be invoked.
Typically, the monitoring process on the target host is automatically started after a reboot, with some exceptions. In some implementation manners of this embodiment, after the user process before the start is adjusted, it may also be checked whether the monitoring process on the target host is already started, and when the monitoring process is not started, the monitoring process is started.
[ example 4 ]
The present embodiment provides a method for automatically controlling a plurality of target hosts to perform automatic reboot, as shown in fig. 4, the method includes:
s401: acquiring a restart template, wherein an automatic restart process is defined in the target restart template;
s402: collecting system related information of a plurality of target hosts;
s403: and judging whether each target host is suitable for a respective restarting template or not according to the system related information.
S404: if the target hosts are suitable for respective restarting templates, judging whether the target hosts are in the same cluster or the same deployment unit according to the system related information, and executing automatic restarting on the target hosts in the same cluster or the same deployment unit in batches according to the restarting processes of the respective restarting templates.
Specifically, the hosts of the same cluster or the same deployment unit have the same function, and in order to ensure that normal services are not stopped, the present embodiment performs batch restart on the hosts of the same cluster or the same deployment unit, that is, for the hosts in the same cluster, a batch of hosts in the cluster are restarted first, and after the restart of the batch of hosts is completed, other batches of hosts in the cluster are restarted, so as to ensure the reliability of the restart.
[ example 5 ]
In the present embodiment, as shown in fig. 5, an apparatus 10 for automatically controlling a host to perform a reboot includes: the template acquisition module 11, the information acquisition module 12, the judgment module 13 and the restart execution module 14.
The template obtaining template 11 is used for obtaining a restarting template, and an automatic restarting process is defined in the restarting template;
the information acquisition module 12 is used for acquiring system related information of the target host;
a judging module 13, configured to judge whether the target host is suitable for the restart template according to system-related information of the target host;
and the restart execution module 14 is configured to, if the target host applies the restart template, execute automatic restart on the target host according to an automatic restart flow of the restart template.
Wherein the system-related information of the target host comprises: IP address information of the host, operating system type, deployment type.
In an implementation manner of this embodiment, the automatic restart process of restarting the template includes:
stopping a user process on the target host;
checking whether the user processes on the target host are all stopped;
if the data transmission is stopped, acquiring and storing the state information of the target host;
after saving, restarting the target host;
after the restart, the NTP state of the target host is detected,
after the NTP state is recovered, checking and acquiring the current state information of the target host, and comparing the state information with the state information stored before restarting;
and after the comparison is consistent, the user process before restarting is started.
In an implementation manner of this embodiment, the automatic restart process further includes:
and after the NTP state is recovered, checking whether the target host is configured with CTM job scheduling, and if so, invoking the CTM job scheduling.
In an implementation manner of this embodiment, the automatic restart process further includes:
and after the user process before starting is adjusted, checking whether the monitoring process of the target host is started or not, and if not, starting the monitoring process.
In one implementation manner of this embodiment, the restart template includes a database restart template and a non-database restart template.
In an implementation manner of this embodiment, for restarting the template in the database, the stopping the user process on the target host includes:
detecting a health state of a database instance on a target host;
if so, stopping the database instance;
stopping CRS cluster resources after all of the database instances have stopped.
In an implementation manner of this embodiment, the apparatus further includes:
and the batch restarting module is used for judging whether the target host is in the same cluster or the same deployment unit according to the relevant information of the target host acquired by the information acquisition module when a plurality of target hosts exist, and controlling the target hosts to execute automatic restarting in batches for the plurality of target hosts in the same cluster or the same deployment unit.
For the workflow of the apparatus for automatically controlling the host to restart, please refer to the corresponding process of the method for automatically controlling the host to restart in the foregoing embodiment, which is not described herein again.
Although some embodiments have been described herein by way of example, various modifications may be made to these embodiments without departing from the spirit of the invention, and all such modifications are intended to be included within the scope of the invention as defined in the following claims. For example, in the embodiments of the present invention, functions of some of the modules may be combined or integrated to be implemented by one module, or functions of a certain module may be divided to be implemented by a plurality of modules.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention can be implemented by combining software and a hardware platform. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments.
[ example 6 ]
The present embodiment provides a computer storage medium, such as a hard disk, an optical disk, a flash memory, a floppy disk, a magnetic tape, etc., on which computer readable instructions are stored, the computer readable instructions being executable by a processor to implement the method for automatically controlling a host to reboot according to any of the above embodiments.
[ example 7 ]
The present embodiment provides a computer device, including:
a memory having a computer program stored thereon,
a processor capable of executing the computer program to implement the method for rebooting an automatic control host according to any one of the above examples.
The terms and expressions used in the present specification are used as terms of illustration only and are not meant to be limiting. It will be appreciated by those skilled in the art that changes could be made to the details of the above-described embodiments without departing from the underlying principles thereof. The scope of the invention is, therefore, indicated by the appended claims, in which all terms are intended to be interpreted in their broadest reasonable sense unless otherwise indicated.

Claims (18)

1. A method for automatically controlling a host to reboot, the method comprising:
acquiring a restarting template, wherein an automatic restarting process is defined in the restarting template;
collecting system related information of a target host;
judging whether the target host is suitable for the restarting template or not according to system related information of the target host;
and if the target host is suitable for the restarting template, automatically restarting the target host according to the automatic restarting flow of the target restarting template.
2. The method of claim 1, wherein the system-related information of the target host comprises: IP address information of the host, operating system type, deployment type.
3. The method of claim 1, wherein the automatic restart flow of the restart template comprises:
stopping a user process on the target host;
checking whether the user processes on the target host are all stopped;
if the data transmission is stopped, acquiring and storing the state information of the target host;
after saving, restarting the target host;
after the restart, the NTP state of the target host is detected,
after the NTP state is recovered, checking and acquiring the current state information of the target host, and comparing the state information with the state information stored before restarting;
and after the comparison is consistent, the user process before restarting is started.
4. The method of claim 3, wherein the automatic restart flow further comprises:
and after the NTP state is recovered, checking whether the target host is configured with CTM job scheduling, and if so, invoking the CTM job scheduling.
5. The method of claim 3, wherein the automatic restart flow further comprises:
and after the user process before starting is adjusted, checking whether the monitoring process on the target host is started or not, and if not, starting the monitoring process.
6. The method of claim 3, wherein the restart templates include a database restart template and a non-database restart template.
7. The method of claim 6, wherein for a database restart template, the stopping a user process on a target host comprises:
detecting a health state of a database instance on a target host;
if so, stopping the database instance;
stopping CRS cluster resources after all of the database instances have stopped.
8. The method according to any one of claims 1 to 7, wherein if there are a plurality of target hosts, determining whether the target hosts are in the same cluster or the same deployment unit according to the related information of the target hosts, and performing automatic restart on the plurality of target hosts in the same cluster or the same deployment unit in batches.
9. An apparatus for automatically controlling a host computer to perform a reboot, the apparatus comprising:
the template acquisition template is used for acquiring a restarting template, and an automatic restarting process is defined in the restarting template;
the information acquisition module is used for acquiring system related information of the target host;
the judging module is used for judging whether the target host is suitable for the restarting template or not according to the system related information of the target host;
and the restarting execution module is used for executing automatic restarting on the target host according to the automatic restarting flow of the restarting template when the target host is suitable for the restarting template.
10. The apparatus of claim 9, wherein the system-related information of the target host comprises: IP address information of the host, operating system type, deployment type.
11. The apparatus of claim 9, wherein the automatic restart flow of the restart template comprises:
stopping a user process on the target host;
checking whether the user processes on the target host are all stopped;
if the data transmission is stopped, acquiring and storing the state information of the target host;
after saving, restarting the target host;
after the restart, the NTP state of the target host is detected,
after the NTP state is recovered, checking and acquiring the current state information of the target host, and comparing the state information with the state information stored before restarting;
and after the comparison is consistent, the user process before restarting is started.
12. The apparatus of claim 11, wherein the automatic restart process further comprises:
and after the NTP state is recovered, checking whether the target host is configured with CTM job scheduling, and if so, invoking the CTM job scheduling.
13. The apparatus of claim 11, wherein the automatic restart process further comprises:
and after the user process before starting is adjusted, checking whether the monitoring process of the target host is started or not, and if not, starting the monitoring process.
14. The apparatus of claim 11, wherein the restart templates comprise a database restart template and a non-database restart template.
15. The apparatus of claim 14, wherein for a database restart template, the stopping of the user process on the target host comprises:
detecting a health state of a database instance on a target host;
if so, stopping the database instance;
stopping CRS cluster resources after all of the database instances have stopped.
16. The apparatus according to any one of claims 9-15, further comprising:
and the batch restarting module is used for judging whether the target host is in the same cluster or the same deployment unit according to the relevant information of the target host acquired by the information acquisition module when a plurality of target hosts exist, and controlling the target hosts to execute automatic restarting in batches for the plurality of target hosts in the same cluster or the same deployment unit.
17. A computer storage medium having computer instructions stored thereon, the computer instructions being executable by a processor to perform the method of any one of claims 1 to 8.
18. A computer device, comprising
A memory having a computer program stored thereon,
a processor for executing the computer program to implement the method of any one of claims 1 to 8.
CN202010237715.4A 2020-03-30 2020-03-30 Method and device for restarting automatic control host and related equipment Active CN111581014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010237715.4A CN111581014B (en) 2020-03-30 2020-03-30 Method and device for restarting automatic control host and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010237715.4A CN111581014B (en) 2020-03-30 2020-03-30 Method and device for restarting automatic control host and related equipment

Publications (2)

Publication Number Publication Date
CN111581014A true CN111581014A (en) 2020-08-25
CN111581014B CN111581014B (en) 2024-03-22

Family

ID=72113560

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010237715.4A Active CN111581014B (en) 2020-03-30 2020-03-30 Method and device for restarting automatic control host and related equipment

Country Status (1)

Country Link
CN (1) CN111581014B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103080902A (en) * 2010-08-18 2013-05-01 株式会社理光 Information processing apparatus and update process support system
CN105786670A (en) * 2014-12-22 2016-07-20 联想(北京)有限公司 Operation system restarting method and apparatus
CN106713073A (en) * 2016-12-27 2017-05-24 上海斐讯数据通信技术有限公司 Server monitoring device and monitoring method
CN107329773A (en) * 2017-05-22 2017-11-07 捷开通讯(深圳)有限公司 A kind of electronic equipment restart after processing method, electronic equipment and storage device
CN108984366A (en) * 2018-06-29 2018-12-11 百度在线网络技术(北京)有限公司 Monitor processing method, device and the equipment of terminal
CN109194738A (en) * 2018-08-31 2019-01-11 北京云迹科技有限公司 Remote reboot method, routing development board and hardware bottom plate
CN109582319A (en) * 2018-12-04 2019-04-05 北京奇艺世纪科技有限公司 A kind of service code dispositions method and device
CN110007934A (en) * 2019-03-27 2019-07-12 北京东方国信科技股份有限公司 Distributed data base dispositions method and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103080902A (en) * 2010-08-18 2013-05-01 株式会社理光 Information processing apparatus and update process support system
CN105786670A (en) * 2014-12-22 2016-07-20 联想(北京)有限公司 Operation system restarting method and apparatus
CN106713073A (en) * 2016-12-27 2017-05-24 上海斐讯数据通信技术有限公司 Server monitoring device and monitoring method
CN107329773A (en) * 2017-05-22 2017-11-07 捷开通讯(深圳)有限公司 A kind of electronic equipment restart after processing method, electronic equipment and storage device
CN108984366A (en) * 2018-06-29 2018-12-11 百度在线网络技术(北京)有限公司 Monitor processing method, device and the equipment of terminal
CN109194738A (en) * 2018-08-31 2019-01-11 北京云迹科技有限公司 Remote reboot method, routing development board and hardware bottom plate
CN109582319A (en) * 2018-12-04 2019-04-05 北京奇艺世纪科技有限公司 A kind of service code dispositions method and device
CN110007934A (en) * 2019-03-27 2019-07-12 北京东方国信科技股份有限公司 Distributed data base dispositions method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
余宣杰: "《银行大数据应用》", 北京:机械工业出版社, pages: 191 *

Also Published As

Publication number Publication date
CN111581014B (en) 2024-03-22

Similar Documents

Publication Publication Date Title
US10453010B2 (en) Computer device, method, and apparatus for scheduling business flow
US11544137B2 (en) Data processing platform monitoring
US10635473B2 (en) Setting support program, setting support method, and setting support device
CN108804215B (en) Task processing method and device and electronic equipment
CN105302722B (en) CTS automatic testing method and device
CN111338656B (en) Method and device for installing software package to target host and computer equipment
WO2009089746A1 (en) Method, device and system for realizing task in cluster environment
CN108108119B (en) Configuration method and device for extensible storage cluster things
CN108804257B (en) Terminal state detection method and device, terminal and storage medium
CN104111862A (en) Method and system for obtaining IP (Internet Protocol) address of virtual machine in cloud computing platform
CN110555009B (en) Processing method and device for Network File System (NFS) service
CN111581014B (en) Method and device for restarting automatic control host and related equipment
EP3639138B1 (en) Action undo service based on cloud platform
CN111666141A (en) Task scheduling method, device and equipment and computer storage medium
CN112445549A (en) Operation and maintenance method, operation and maintenance device, electronic equipment and medium
CN116090780A (en) Control method, device, equipment and medium of weather forecast flow
CN110188008B (en) Job scheduling master-slave switching method and device, computer equipment and storage medium
CN114860322A (en) Substrate management controller, control method and electronic equipment
CN114489999A (en) Method and device for processing pipeline task, processor and electronic equipment
CN114327673A (en) Task starting method and device, electronic equipment and storage medium
CN114020530A (en) Automatic factory backup method and system for operating system
CN113515291A (en) Equipment online upgrading method and device
CN115344327B (en) Application module switching method and device, electronic equipment and readable storage medium
CN114416196B (en) Multi-service cascade starting method and device and computer readable storage medium
CN117112037A (en) Cloud platform starting method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant