[go: up one dir, main page]

CN110109772A - A kind of method for restarting of CPU, communication equipment and readable storage medium storing program for executing - Google Patents

A kind of method for restarting of CPU, communication equipment and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110109772A
CN110109772A CN201810103375.9A CN201810103375A CN110109772A CN 110109772 A CN110109772 A CN 110109772A CN 201810103375 A CN201810103375 A CN 201810103375A CN 110109772 A CN110109772 A CN 110109772A
Authority
CN
China
Prior art keywords
business
client
cpu
notification message
restarting
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
CN201810103375.9A
Other languages
Chinese (zh)
Other versions
CN110109772B (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.)
ZTE Corp
Original Assignee
ZTE 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 ZTE Corp filed Critical ZTE Corp
Priority to CN201810103375.9A priority Critical patent/CN110109772B/en
Publication of CN110109772A publication Critical patent/CN110109772A/en
Application granted granted Critical
Publication of CN110109772B publication Critical patent/CN110109772B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/1438Restarting or rejuvenating
    • 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/1446Point-in-time backing up or restoration of persistent data
    • G06F11/1448Management of the data involved in backup or backup restore

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Hardware Redundancy (AREA)

Abstract

The embodiment of the invention discloses the method for restarting of CPU a kind of, communication equipment and readable storage medium storing program for executing, wherein the described method includes: receiving the first notification message for restarting CPU;Based on first notification message, inquiry business registration table obtains client identification;According to the client identification, second notification message is sent to client, wherein the second notification message is for notifying the client to carry out data backup;If receiving the third notice message that the backup that the client is sent is completed within a preset time, control CPU is restarted.

Description

A kind of method for restarting of CPU, communication equipment and readable storage medium storing program for executing
Technical field
The present invention relates to technical field of communication equipment more particularly to a kind of method for restarting of CPU, communication equipment and readable deposit Storage media.
Background technique
Mobile communication device generallys use control plane and forwarding surface point to improve system reliability, promote forwarding performance From framework.Control plane is by being responsible for the general central processor (Central of the functions such as system control, protocol processes Processing Unit, CPU) (alternatively referred to as control CPU) composition, the network processing unit that forwarding surface is then forwarded by being responsible for message Equal forwarding chips composition, the two is mutually indepedent, common to complete route learning and message forwarding capability.Mobile communication device is in system Upgrading or software be operating abnormally when need to control CPU restart, usually restart control CPU can cause entire veneer restart into And lead to service disconnection, it is unsatisfactory for the requirement of mobile communication device high availability.
The prior art generallys use control CPU and restarts and side that forwarding chip is not restarted to shorten business interruption time Case, but if control CPU is restarted, the business software that operation operates forwarding chip thereon can also restart, related control information or number It will also result in a degree of business according to loss to be damaged or interrupt, can not accomplish that real business is not interrupted.For this feelings Condition, industry generally use the mode of hardware redundancy to guarantee not interrupting for business.This scheme is needed to wait restart control CPU institute A standby board is specified in veneer, related data is synchronized to standby board before control CPU is restarted, by institute after synchronously completing There is service switching to standby board, then restarts control CPU, service switching is returned again after the movement such as finishing service upgrading.This Although kind of a mode can accomplish that business is not interrupted, needs to increase standby board, also increase production cost, while in upgrading Frequent straddle interaction is needed in the process, also increases the complexity of system.
Summary of the invention
To solve existing technical problem, the embodiment of the present invention provide the method for restarting of CPU a kind of, communication equipment and Readable storage medium storing program for executing, solving the problems, such as to need to increase in the prior art when restarting CPU veneer, to be just able to achieve business unbroken, It can not only rely on and be locally stored to back up, restore business datum to reach control CPU and restart business not by other veneers The purpose of interruption, and then can reduce equipment cost and reduce straddle interaction, further decrease the complexity of system.
The technical solution of the embodiment of the present invention is achieved in that
In a first aspect, the embodiment of the present invention provides the method for restarting of CPU a kind of, which comprises
Receive the first notification message for restarting CPU;
Based on first notification message, inquiry business registration table obtains client identification;
According to the client identification, second notification message is sent to client, wherein the second notification message is used for The client is notified to carry out data backup;
If receiving the third notice message that the backup that the client is sent is completed within a preset time, CPU is controlled Restarted.
Second aspect, the embodiment of the present invention provide the method for restarting of CPU a kind of, which comprises
Receive the second notification message that server-side is sent;
Based on the second notification message, the readjustment dump parameter of the second business corresponding with itself is obtained;
According to the readjustment dump parameter, the business datum of second business is obtained;
The business datum is stored to first memory headroom;
If the business datum storage is completed, Xiang Suoshu server-side sends third notice message.
The third aspect, the embodiment of the present invention provide a kind of communication equipment, and the communication equipment includes at least processor and matches It is set to the storage medium of storage executable instruction, in which:
Processor is configured to execute the executable instruction of storage, and the executable instruction includes:
Receive the first notification message for restarting CPU;
Based on first notification message, inquiry business registration table obtains client identification;
According to the client identification, second notification message is sent to client, wherein the second notification message is used for The client is notified to carry out data backup;
If receiving the third notice message that the backup that the client is sent is completed within a preset time, CPU is controlled Restarted.
Fourth aspect, the embodiment of the present invention provide a kind of communication equipment, and the communication equipment includes at least processor and matches It is set to the storage medium of storage executable instruction, in which:
Processor is configured to execute the executable instruction of storage, and the executable instruction includes:
Receive the second notification message that server-side is sent;
Based on the second notification message, the readjustment dump parameter of the second business corresponding with itself is obtained;
According to the readjustment dump parameter, the business datum of second business is obtained;
The business datum is stored to first memory headroom;
If the business datum storage is completed, Xiang Suoshu server-side sends third notice message.
5th aspect, the embodiment of the present invention provide a kind of computer readable storage medium, in the computer storage medium Computer executable instructions are stored with, which is configured to execute the weight of CPU provided in an embodiment of the present invention Open method.
The method for restarting, communication equipment and readable storage medium storing program for executing of a kind of CPU are provided in the embodiment of the present invention, wherein first Receive the first notification message for restarting CPU;It is then based on first notification message, inquiry business registration table obtains visitor Family end mark;Further according to the client identification, second notification message is sent to client, wherein the second notification message For notifying the client to carry out data backup;If finally receiving the backup that the client is sent within a preset time The third notice message of completion, control CPU are restarted.So, it is possible not by other veneers, only rely on be locally stored it is standby Part restores business datum to reach control CPU and restart the unbroken purpose of business, and then can reduce equipment cost and reduce Straddle interaction, further decreases the complexity of system.
Detailed description of the invention
In attached drawing (it is not necessarily drawn to scale), similar appended drawing reference can describe phase in different views As component.Similar reference numerals with different letter suffix can indicate the different examples of similar component.Attached drawing with example and Unrestricted mode generally shows each embodiment discussed herein.
Fig. 1 is the implementation process schematic diagram of the method for restarting of CPU of the embodiment of the present invention;
Fig. 2 is the implementation process schematic diagram of the method for restarting of CPU of the embodiment of the present invention;
Fig. 3 is warm reset of embodiment of the present invention system construction drawing;
Fig. 4 is the implementation process schematic diagram of the normal warm reset of the embodiment of the present invention;
Fig. 5 is the implementation process schematic diagram of exception of embodiment of the present invention warm reset;
Fig. 6 is the composed structure schematic diagram of communication equipment of the embodiment of the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, the specific technical solution of invention is described in further detail.The following examples are intended to illustrate the invention, but does not have to To limit the scope of the invention.
Embodiment one
The embodiment of the present invention provides the method for restarting of CPU a kind of, and Fig. 1 is the reality of the method for restarting of CPU of the embodiment of the present invention Existing flow diagram, as shown in Figure 1, the described method comprises the following steps:
Step S101 receives the first notification message for restarting CPU.
Here, the step S101 can be by server-side realization.It should be noted that the embodiment of the present invention and other Server-side in embodiment is resident in cpu reset control process, it can be understood as is one in cpu reset control process A thread.Server-side is the master control point for carrying out CPU and restarting.
First notification message can be user and have issued the operational order for restarting CPU and trigger generation, for example, it may be User clicks the control button for restarting CPU on network management, can also be that user has input the order for restarting CPU.In addition, first Notification message, which can also be, triggers generation due to some processes or component appearance exception in equipment, for example, in equipment Hard disk breaks down, and CPU enters endless loop or process is suspended etc..
Step S102 is based on first notification message, obtains client identification.
Here, the step S102 can be by server-side realization.In the present embodiment and other embodiments, client It resides in each business process, for assisting service backup to restore data.The corresponding client of one business process, i.e. industry Business process and client are one-to-one relationships.As soon as but in business process may include one or more business, It is to say client and business may be one-to-one relationship is also likely to be one-to-many relationship.
After server-side receives the first notification message, the identification information of the client of server-side control is obtained according to the visitor Family end mark sends second notification message to client.
Here, the step S103 can be by server-side realization.The second notification message is for notifying the visitor Family end carries out data backup.
Step S104 disappears if receiving the third notice that the backup that the client is sent is completed within a preset time Breath, control CPU are restarted.
Here, the step S104 can be by server-side realization.The preset time is according to each client pair Each business in the business process answered carries out the time of data backup to determine, the preset time is greater than or equal to all The maximum duration in the time of data backup needs is carried out in business.For example, there are two business process, business process 1 and industry Business process 2, and include business 1 and business 2 in business process 1;It include business 3, business 4 and business 5 in business process 2.Its In, the time that business 1 carries out data backup is 2 minutes, and the time that business 2 carries out data backup is 2 minutes, and business 3 is counted Time according to backup is 5 minutes, and the time that business 4 carries out data backup is 1 minute, and the time that business 5 carries out data backup is 3 Minute, then the preset time is at least 5 minutes.
Before the step S104, the method also includes: whether judgement receives the client within a preset time The third notice message that the backup that end is sent is completed.Wherein, if receive that the client sends within a preset time the Three notification messages enter step S104;If being not received by the third notice message of client transmission within a preset time, hold Row following steps:
Step 141, the first business attribute information of the first business without completing data backup is obtained;
Step 142, according to first business attribute information, judge first business whether be the first kind industry Business;
Step 143, if first business is the business of the first kind, CPU is controlled without restarting, and export and restart The prompt information of failure.
Step 144, if first business is not the business of the first kind, control CPU is restarted.
In step 141 into the embodiment where step 144, the first business attribute information may include: business title, The type of business, the business need the information such as the space occupied storage size.Wherein, the type of business can reflect the pass of business Stroke degree, in practical implementations can be with criticality coefficient come the criticality for the business of reacting.The business of the first kind refers to Criticality coefficient meets the business of preset condition, wherein if criticality coefficient is smaller, shows that the criticality of business is got over Height, then preset condition is that criticality coefficient is less than preset value;If criticality system is bigger, show the crucial journey of business Degree is higher, then preset condition is that criticality system is greater than preset value.When the type of business is the first kind, show the industry The criticality of business is high, if the high business of criticality does not complete data backup, controls CPU without restarting;When When the type of business is Second Type, show that the criticality of the business is low, if the low business of criticality does not complete number According to backup, ignore the business, control CPU is restarted.
In the method for restarting that the embodiment of the present invention provides a kind of CPU, the first notice for restarting CPU is received first and is disappeared Breath;It is then based on first notification message, inquiry business registration table obtains client identification;Further according to the client mark Know, send second notification message to client, wherein the second notification message is for notifying that it is standby that the client carries out data Part;If finally receiving the third notice message that the backup that the client is sent is completed within a preset time, control CPU into Row is restarted.It so, it is possible to only rely on and be locally stored to back up, restore business datum to reach control not by other veneers CPU restarts the unbroken purpose of business, and then can reduce equipment cost and reduce straddle interaction, further decreases answering for system Polygamy.
Embodiment two
Based on embodiment above-mentioned, the embodiment of the present invention provides the method for restarting of CPU a kind of again, apply by server-side and In the C/S framework that client is constituted, Fig. 2 is the implementation process schematic diagram of the method for restarting of CPU of the embodiment of the present invention, such as Fig. 2 institute Show, the described method comprises the following steps:
Step S201, server-side read configuration file.
Here, initial address and memory headroom size are included at least in the configuration file.Server-side resides in communication and sets In standby cpu reset control process.It should be noted that the configuration file is in the release development process of communication equipment, it can Initial address and memory headroom size are configured or be adjusted according to the demand of actual product by the developer of version, but It is after version is loaded into communication equipment, the configuration file is only readable not writeable.
Step S202, the server-side determine the first memory headroom based on the initial address and the space size.
Here, it is known that initial address and memory headroom size, then one section of memory headroom is assured that out, in this reality It applies in example and this section of memory headroom is referred to as the first memory headroom.The first memory headroom namely other implementations in the present embodiment Retaining space in example.
Step S203, the server-side initialize first memory headroom.
Here, the first memory headroom of initialization can be understood as removing stored data in first memory headroom, And the memory headroom when CPU is restarted without data scrubbing is set by first memory headroom, and by the first memory headroom It is mounted to memory file system.
Step S204, client receive the business attribute information that the second business is sent.
Here, turn in the business attribute information including at least the mark of the second business, the type of the second business and readjustment Store up parameter.Wherein, the type of the second business is used to reflect the criticality of the second business.Dump parameter is adjusted back for characterizing second The storage location for the business datum that business generates can be determined during carrying out data backup by readjustment dump parameter The storage location of the business datum of one business, and then carry out data backup.
It should be noted that in the present embodiment, not limiting the quantity of client and the second business, there can be one or more A client can also equally have one or more second business.When there is multiple second business, client receives the second business The business attribute information of transmission refers to that client receives the business attribute information of each second business transmission.
Step S205, the client save the business attribute information of second business.
The business attribute information of second business is sent to server-side by step S206, the client.
Here, server-side receives the business attribute information that client is sent.
Step S207, the server-side save the business attribute information, and the Status of Backups of business are added to described Business attribute information.
Here, it is included at least in the business attribute information that server-side saves the second business: mark, the second industry of the second business The type of business and the Status of Backups of readjustment dump parameter and the second business.The Status of Backups of business is used to characterize a business No completion data backup, and when the Status of Backups of business is added to the business attribute information by server-side, initial value is not Backup.
In the actual implementation process, server-side saves business attribute information in the form of services registry, and management is got up.
Step S208, the server-side receive the first notification message for restarting CPU.
Step S209, the server-side are based on first notification message, obtain client identification.
Here, the server-side can be obtained related after receiving the first notification message by inquiry business registration table Client identification.
Step S210, the server-side send second notification message according to the client identification, to client.
Here, the second notification message is for notifying the client to carry out data backup.
Step S211, the client are based on the second notification message, obtain returning for the second business corresponding with itself Turn storage parameter.
Here, the client receives the second notification message that server-side is sent, and the second business stored according to itself Business attribute information obtain the second business readjustment dump parameter.
Step S212, the client obtain the business datum of second business according to the readjustment dump parameter.
Step S213, the client store the business datum to first memory headroom.
Here, in other embodiments, the client stores the business datum to the first memory headroom, can also Execute following steps:
Step 241, the client obtains the storage information of the business datum;
Step 242, the client establishes the corresponding relationship of the storage information and second business, and described in preservation Corresponding relationship.
In the embodiment where step 241 to step 242, the storage information of business datum includes that business datum is stored in The initial address and business datum the space occupied size of first memory headroom.It establishes and saves the storage information and institute The corresponding relationship for stating the second business is to obtain the Backup Data of the second business by the corresponding relationship after CPU is restarted Storage information, and then according to storage acquisition of information Backup Data.
Step S214, if business datum storage is completed, the client sends third notice to the server-side and disappears Breath.
Here, if business datum storage is completed to refer to all business in the corresponding business process of the client Business datum all store completion.Before the step S214, the method also includes: the client judges whether own The business datum of business all stores completion, if the business datum of all business all stores completion, enters step S214;If no It is that the business datums of all business is all completed to store, then not sending third notice message.
Step S215 disappears if receiving the third notice that the backup that the client is sent is completed within a preset time Breath, the server-side control CPU are restarted.
Here, after the step S215, the method also includes: if be not received by within a preset time described The third notice message that client is sent obtains the first business attribute information of the first business without completing data backup;Root According to first business attribute information, judge first business whether be the first kind business;If first business For the business of the first kind, CPU is controlled without restarting, and the prompt information of output data backup failure;If described first Business is not the business of the first kind, and control CPU is restarted.
In other embodiments, after CPU is restarted, the method also includes:
Step 261, the client receives the data recovery request that the second business is sent, wherein the data recovery is asked The mark of the second business is at least carried in asking;
Step 262, the client obtains the corresponding storage letter of second business according to the mark of second business Breath;
Step 263, the data for carrying the storage information are restored to respond by the client is sent to the second business.
Step 264, it is extensive to carry out business datum according to the business datum of the storage acquisition of information itself for second business It is multiple, and after the completion of business datum is restored, restore the control to corresponding service chip.
In the method for restarting of CPU provided in an embodiment of the present invention, before CPU is restarted, server-side reads configuration first File, the initial address and space size being then based in configuration file determine the first memory headroom;Described in server-side initialization First memory headroom;Client receives the business attribute information that the second business sends and saves, then by second business Business attribute information is sent to server-side;Server-side saves the business attribute information, and the Status of Backups of business is added to The business attribute information;Disappeared after server-side receives the first notification message for restarting CPU based on first notice Breath obtains client identification, further according to the client identification, sends second notification message to client;Client's end group In the second notification message, the readjustment dump parameter of the second business corresponding with itself is obtained.The client is according to Dump parameter is adjusted back, the business datum of second business is obtained and is stored the business datum empty to first memory Between;If the business datum storage is completed, the client sends third notice message to the server-side;If when default The interior third notice message for receiving the backup that the client is sent and completing, the server-side control CPU are restarted.Such as This, due to a part that the first memory headroom is communication equipment self EMS memory, and the first memory headroom restarts Shi Bujin in CPU Row data scrubbing stores the business datum of each business to the first memory headroom, then restarting in CPU before CPU is restarted Each business can get the Backup Data before restarting from the first memory headroom later, thus guarantee that business is not interrupted, and And do not need to increase new communication equipment, so as to reduce cost, and reduce system complexity.
Embodiment three
For the unbroken high-availability requirement of mobile communication device software upgrading business, the embodiment of the present invention provides one kind Not by other veneers, only relies on and be locally stored to back up, restore the CPU method for restarting of business datum, in the embodiment of the present invention Middle that the CPU method for restarting is referred to as warm reset, control CPU can be reached by implementing warm reset method provided in an embodiment of the present invention Business unbroken purpose when restarting.
In warm reset method provided in an embodiment of the present invention, first before control CPU is restarted, one is marked off in memory Section memory headroom is used as business datum and backs up, this section of memory headroom does not do data scrubbing when CPU is restarted, in the present embodiment This section of memory headroom is known as reserved memory.
Warm reset control module is responsible for using and managing for reserved memory, and the access of reserved memory is described by configuration file The information such as address, size.
Warm reset module uses client/server (Client/Server, C/S) framework, and it is multiple that server-side resides in CPU In the control process of position, as master control point;Client resides in each business process, and service backup is assisted to restore data.
Business process registers the relevant informations such as Business Name, characteristic and dump readjustment to server-side by client-side interface, Server-side gets up these information with the format management of services registry.Before server-side initiation CPU is restarted, inquiry business registration table And successively notice relative clients end calls business to adjust back Backup Data, restarts CPU after all clients complete data backup, Business process recalls client-side interface and restores data after restarting.
CPU method for restarting provided in an embodiment of the present invention the following steps are included:
Step 31, warm reset server-side reads configuration file, obtains the information such as reserved memory size, address space, initially Change reserved memory and carry memory file system;
Step 32, business process calls client-side interface to phases such as server-side registration Business Name, characteristic and dump readjustments Close information;
Step 33, server-side gets up client registers information with the format management of services registry;
Step 34, server-side inquiry business registration table and successively notice relative clients end calling business readjustment acquisition backup number According to;
Step 35, memory file system (reserved memory) is written in the service backup data that client will acquire, and leads to after the completion Know server-side;
Step 36, server-side inquires registration table, judges that all registration business are completed initiation CPU after backing up and restarted;
Step 37, client-side interface is called to restore data after business process is restarted.
In step 31 to step 37, each business is initiated to register by warm reset client to server-side in business process, Registration information includes Business Name, characteristic and dump callback interface etc..Fig. 3 is warm reset of embodiment of the present invention system construction drawing, As shown in figure 3, the warm reset system includes at least: warm reset server-side 301, soft service client 302, in which:
It is standby to be responsible for management reserved memory, maintenance service registration information, each business of monitor client for warm reset server-side 301 Part state resets CPU;
Warm reset client 302 is responsible for assisting Business Entity Backup and Restore data, read-write reserved memory.
The warm reset carried out in the course of work of mobile communication device includes normal warm reset and abnormal warm reset, In, normal warm reset (upgrading, reset command) is to notify warm reset to take by reaching the initiation of corresponding terminal process under user instruction Business end;Abnormal warm reset is triggered by abnormal process, and system monitoring process perceives abnormal initiation and notifies warm reset server-side. Either normal warm reset or abnormal warm reset, in general, warm reset server-side is the master control point of warm reset.
Fig. 4 be the normal warm reset of the embodiment of the present invention implementation process schematic diagram, as shown in figure 4, the process include with Lower step:
Step S401, business process initiate business module registration to warm reset client.
Step S402, warm reset client initiate service log-on to warm reset server-side.
In the step S401 and step S402, business process initiates to register by warm reset client to server-side, Registration information includes the information such as Business Name, characteristic and dump callback interface.
Step S403, warm reset server-side maintenance service registration table.
Here, warm reset server-side receives the letter such as Business Name, characteristic and dump callback interface of each business process After breath, these information are stored in the form of services registry, and maintenance service registration table.
Step S404, terminal processes receive the order or network management movement of user.
Here, the order of user or network management movement are used to indicate and carry out CPU warm reset.
Step S405, terminal processes initiate warm reset to warm reset server-side.
Step S406, warm reset server-side notify warm reset client to carry out business datum backup.
Here, in warm reset system as shown in Figure 1, including warm reset server and two warm reset clients: it is soft Reset customer end A and warm reset customer end B.Warm reset server-side notifies that all warm reset clients are (warm reset customer end A, soft Reset customer end B) initiate business datum backup.
Step S407, warm reset client dump business datum.
Here, warm reset customer end A is responsible for the data backup of Business Entity 1,2,3, and warm reset customer end B is responsible for business reality The data backup of body 4,5.Each warm reset client is by calling the callback interface provided when Business Entity registration to get business Data are dumped to the corresponding business datum region of reserved memory respectively.
Step S408, warm reset client send the notification message that service backup is completed to warm reset server-side.
Here, warm reset client detects that Business Entity data backup is completed in this business process, to warm reset service End sends the notification message that service backup is completed, and notice warm reset server-side data backup is completed.
Step S409, warm reset server-side restart CPU.
Here, the Status of Backups of corresponding service entity in services registry is revised as backup completion by warm reset server-side. Warm reset server-side checks that Business Entity (1,2,3,4,5) data backup status of all registrations is initiated CPU after the completion and restarted.
Step S410, business process are restarted.
Step S411, business process send data recovery request to warm reset client.
Here, whether after business process is restarted, judging that last CPU is restarted is restarting for warm reset mode, if upper one Secondary CPU restarts restarting for warm reset mode, sends data recovery request to warm reset client.
In the actual implementation process, before CPU is restarted, CPU can will include that some of reset mode restart parameter transmitting It to system, and saves, last time CPU weight can be determined by the last parameter of restarting of inquiry after business process is restarted Whether open is restarting for warm reset mode.
Step S412, warm reset client carry out sending data recovery response to business process.
Here, it is corresponding to obtain each business process from reserved memory for warm reset client call data restoration interface Restore data, and recovery data are carried on data and restore to be sent to business process in response, business process is in Business Entity number After the completion of recovery, restore the control to corresponding service chip.
Fig. 5 be the warm reset of exception of the embodiment of the present invention implementation process schematic diagram, as shown in figure 5, the process include with Lower step:
Step S501, application process generate abnormal.
Here, application process, which is abnormal, can be that hard disk in veneer breaks down, CPU runs dead or process and the feelings such as hangs up Condition.
Step S502, system monitoring monitoring the process are determined as abnormal process to the application process, and by the application process.
Step S503, system monitoring process judge whether the abnormal process is critical processes.
Here, judge the abnormal process whether be critical processes during realization the available abnormal process into Journey attribute information can determine that the abnormal process is critical processes or non-critical processes by Process Attributes information.If The abnormal process is critical processes, illustrates to need to restart CPU to enter step S504 at this time to restart the abnormal process;Such as The fruit abnormal process is that non-critical processes do not need to restart CPU, at this time then it is only necessary to substances to open the abnormal process Singly starting the abnormal process terminates process.
Step S504, system monitoring process notify warm reset server-side to carry out warm reset.
Here, system monitoring process calls readjustment hook notice warm reset server-side to carry out warm reset, at this time system monitoring It carries out entering the state that obstruction waits.
Step S505, warm reset server-side send service backup notification message to warm reset client.
Step S506, warm reset client send the notice that backup is completed to warm reset server-side and disappear after the completion of backup Breath.
Step S507, warm reset server-side release semaphore.
Here, warm reset server-side release semaphore is in order to wake up system monitoring process, to carry out subsequent processing.
Step S508, electricity under notice application process after the completion of system monitoring process etc. is to be backed up.
Here, notify that electricity can be understood as needing to terminate the application process under application process, notice application process is tied Necessary data save before beam and other are handled.
Step S509, application process notify that electricity is completed under system monitoring process.
Step S510, system monitoring process notify warm reset server-side to carry out cpu reset.
Step S511, warm reset server-side restart CPU.
CPU method for restarting provided in an embodiment of the present invention compared with prior art, is realizing that really restarting CPU does not interrupt In the case where business, hardware redundancy can not be depended on, to reduce equipment cost, reduces interaction between plate, further decreases The complexity of system.
Example IV
The present embodiment provides a kind of communication equipment, Fig. 6 is the composed structure schematic diagram of communication equipment of the embodiment of the present invention, such as Shown in Fig. 6, the communication equipment 600 includes processor 601 and the storage medium 602 for being configured to storage executable instruction, in which:
Processor 601 is configured to execute the executable instruction of storage, and the executable instruction includes:
Receive the first notification message for restarting CPU;
Based on first notification message, inquiry business registration table obtains client identification;
According to the client identification, second notification message is sent to client, wherein the second notification message is used for The client is notified to carry out data backup;
If receiving the third notice message that the backup that the client is sent is completed within a preset time, CPU is controlled Restarted.
It should be noted that the description of the above communications device embodiments, be with the description of above method embodiment it is similar, With the similar beneficial effect of same embodiment of the method, therefore do not repeat them here.For not disclosed in communications device embodiments of the present invention Technical detail, please refer to the description of embodiment of the present invention method and understand.
Accordingly, the embodiment of the present invention provides a kind of computer storage medium, is stored in the computer storage medium Computer executable instructions, the computer executable instructions are configured to execute restarting for the CPU of other embodiments of the invention offer Method.
Embodiment five
The embodiment of the present invention provides a kind of communication equipment, the communication equipment 600 include processor and be configured to storage can The storage medium executed instruction, in which:
Processor is configured to execute the executable instruction of storage, and the executable instruction includes:
Receive the second notification message that server-side is sent;
Based on the second notification message, the readjustment dump parameter of the second business corresponding with itself is obtained;
According to the readjustment dump parameter, the business datum of second business is obtained;
The business datum is stored to first memory headroom;
If the business datum storage is completed, Xiang Suoshu server-side sends third notice message.
It should be noted that the description of the above communications device embodiments, be with the description of above method embodiment it is similar, With the similar beneficial effect of same embodiment of the method, therefore do not repeat them here.For not disclosed in communications device embodiments of the present invention Technical detail, please refer to the description of embodiment of the present invention method and understand.
Accordingly, the embodiment of the present invention provides a kind of computer storage medium, is stored in the computer storage medium Computer executable instructions, the computer executable instructions are configured to execute restarting for the CPU of other embodiments of the invention offer Method.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.

Claims (11)

1. a kind of method for restarting of central processor CPU, which is characterized in that the described method includes:
Receive the first notification message for restarting CPU;
Based on first notification message, inquiry business registration table obtains client identification;
According to the client identification, second notification message is sent to client, wherein the second notification message is for notifying The client carries out data backup;
If receiving the third notice message that the backup that the client is sent is completed within a preset time, control CPU is carried out Restart.
2. method according to claim 1, which is characterized in that the method also includes:
If being not received by the third notice message that the client is sent, the first business without completing data backup is obtained The first business attribute information, wherein type of service is included at least in first business attribute information, the type of service is used In the criticality of reflection business;
According to first business attribute information, judge first business whether be the first kind business, wherein described The business of one type is the business that criticality coefficient meets preset condition;
If first business is the business of the first kind, CPU is not controlled and is restarted, and export the prompt letter for restarting failure Breath.
3. according to claim 1 or method described in 2, which is characterized in that in first notice received for restarting CPU Before the step of message, the method also includes:
Configuration file is read, includes at least initial address and memory headroom size in the configuration file;
The first memory headroom is determined based on the initial address and the space size;
Initialize first memory headroom.
4. according to claim 1 or method described in 2, which is characterized in that the method also includes:
Receive the business attribute information that client is sent;
And the Status of Backups of business is added to the business attribute information, save the business attribute information.
5. a kind of method for restarting of CPU, which is characterized in that the described method includes:
Receive the second notification message that server-side is sent;
Based on the second notification message, the readjustment dump parameter of the second business corresponding with itself is obtained;
According to the readjustment dump parameter, the business datum of second business is obtained;
The business datum is stored to first memory headroom;
If the business datum storage is completed, Xiang Suoshu server-side sends third notice message.
6. method according to claim 5, which is characterized in that store the business datum to described first described After the step of memory headroom, the method also includes:
Obtain the storage information of the business datum;
The corresponding relationship of the storage information and second business is established, and saves the corresponding relationship.
7. method according to claim 5, which is characterized in that the method also includes:
Receive the data recovery request of the second business transmission, wherein the second business is at least carried in the data recovery request Mark;
According to the mark of second business, the corresponding storage information of second business is obtained;
The data for carrying the storage information are restored into response and are sent to the second business.
8. the method according to any one of claim 5-7, which is characterized in that the method also includes:
Receive the business attribute information of the second business transmission, wherein including at least the second business in the business attribute information Mark, type and readjustment dump parameter;
Save the business attribute information of second business;
The business attribute information of second business is sent to server-side.
9. a kind of communication equipment, which is characterized in that the communication equipment includes at least processor and is configured to store executable finger The storage medium of order, in which:
Processor is configured to execute the executable instruction of storage, and the executable instruction includes:
Receive the first notification message for restarting CPU;
Based on first notification message, inquiry business registration table obtains client identification;
According to the client identification, second notification message is sent to client, wherein the second notification message is for notifying The client carries out data backup;
If receiving the third notice message that the backup that the client is sent is completed within a preset time, control CPU is carried out Restart.
10. a kind of communication equipment, which is characterized in that the communication equipment includes at least processor and is configured to store executable finger The storage medium of order, in which:
Processor is configured to execute the executable instruction of storage, and the executable instruction includes:
Receive the second notification message that server-side is sent;
Based on the second notification message, the readjustment dump parameter of the second business corresponding with itself is obtained;
According to the readjustment dump parameter, the business datum of second business is obtained;
The business datum is stored to first memory headroom;
If the business datum storage is completed, Xiang Suoshu server-side sends third notice message.
11. a kind of computer readable storage medium, which is characterized in that being stored with computer in the computer storage medium can hold Row instruction, the computer executable instructions are configured to execute the weight for the CPU that any one of the claims 1 to 4 or 5-8 provide Open method.
CN201810103375.9A 2018-02-01 2018-02-01 CPU restarting method, communication equipment and readable storage medium Active CN110109772B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810103375.9A CN110109772B (en) 2018-02-01 2018-02-01 CPU restarting method, communication equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810103375.9A CN110109772B (en) 2018-02-01 2018-02-01 CPU restarting method, communication equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110109772A true CN110109772A (en) 2019-08-09
CN110109772B CN110109772B (en) 2024-06-11

Family

ID=67483653

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810103375.9A Active CN110109772B (en) 2018-02-01 2018-02-01 CPU restarting method, communication equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110109772B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090546A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Operating system restarting method, apparatus, device and readable storage medium
CN111817956A (en) * 2020-05-27 2020-10-23 福建天泉教育科技有限公司 Method for restarting access application and storage medium
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN114828076A (en) * 2022-04-19 2022-07-29 成都极米科技股份有限公司 Wireless sensing measurement process management method, device, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005294A1 (en) * 2006-06-30 2008-01-03 Morris Robert P Method and system for exchanging messages using a presence service
CN102238093A (en) * 2011-08-16 2011-11-09 杭州华三通信技术有限公司 Service interruption prevention method and device
CN105589764A (en) * 2015-12-10 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) abnormality processing method and apparatus
CN106095439A (en) * 2016-06-12 2016-11-09 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107634929A (en) * 2016-07-18 2018-01-26 中兴通讯股份有限公司 Method for processing business and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080005294A1 (en) * 2006-06-30 2008-01-03 Morris Robert P Method and system for exchanging messages using a presence service
CN102238093A (en) * 2011-08-16 2011-11-09 杭州华三通信技术有限公司 Service interruption prevention method and device
CN105589764A (en) * 2015-12-10 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) abnormality processing method and apparatus
CN106095439A (en) * 2016-06-12 2016-11-09 联想(北京)有限公司 A kind of information processing method and electronic equipment
CN107634929A (en) * 2016-07-18 2018-01-26 中兴通讯股份有限公司 Method for processing business and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111090546A (en) * 2019-12-13 2020-05-01 苏州浪潮智能科技有限公司 Operating system restarting method, apparatus, device and readable storage medium
CN111090546B (en) * 2019-12-13 2023-01-10 苏州浪潮智能科技有限公司 Method, device and equipment for restarting operating system and readable storage medium
CN111817956A (en) * 2020-05-27 2020-10-23 福建天泉教育科技有限公司 Method for restarting access application and storage medium
CN112463343A (en) * 2020-12-16 2021-03-09 广州博冠信息科技有限公司 Business process restarting method and device, storage medium and electronic equipment
CN112463343B (en) * 2020-12-16 2023-09-26 广州博冠信息科技有限公司 Restarting method and device of business process, storage medium and electronic equipment
CN114828076A (en) * 2022-04-19 2022-07-29 成都极米科技股份有限公司 Wireless sensing measurement process management method, device, equipment and storage medium
CN114828076B (en) * 2022-04-19 2023-05-02 极米科技股份有限公司 Wireless perception measurement process management method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110109772B (en) 2024-06-11

Similar Documents

Publication Publication Date Title
US6438707B1 (en) Fault tolerant computer system
US7076691B1 (en) Robust indication processing failure mode handling
TW201944236A (en) Task processing method, apparatus, and system
CN110109772A (en) A kind of method for restarting of CPU, communication equipment and readable storage medium storing program for executing
US20080077657A1 (en) Transaction takeover system
WO2016202051A1 (en) Method and device for managing active and backup nodes in communication system and high-availability cluster
CN107391276A (en) Distributed monitor method, interception control device and system
CN115001956B (en) Method, device, equipment and storage medium for running server cluster
CN111314098A (en) Method and device for realizing VIP address drift in HA system
CN102143288A (en) Disaster recovery method and disaster recovery device in call center
CN113434337B (en) Retry strategy control method and device and electronic equipment
CN110196749B (en) Virtual machine recovery method and device, storage medium and electronic device
TWI429232B (en) Backup server, system and method for recovering client devices register at primary server
CN109474694A (en) A management and control method and device for a NAS cluster based on a SAN storage array
CN115964153A (en) Asynchronous task processing method, device, equipment and storage medium
CN115550424B (en) Data caching method, device, equipment and storage medium
JP6577901B2 (en) Computer system and system state reproduction method
JP2015114952A (en) Network system, monitoring control unit, and software verification method
JP6856574B2 (en) Service continuation system and service continuation method
CN117201507A (en) Cloud platform switching method and device, electronic equipment and storage medium
CN112153215A (en) Call processing method and device, related equipment and storage medium
JP2003298624A (en) Communication path securing method in service control application execution program
JP2002132531A (en) Data maintenance system and method of dual system
CN112714035A (en) Monitoring method and system
JP2002149439A (en) Method for switching server and server device in distributed processing system

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