CN109361525A - Restart method, apparatus, controlling terminal and medium that distributed deployment services more - Google Patents
Restart method, apparatus, controlling terminal and medium that distributed deployment services more Download PDFInfo
- Publication number
- CN109361525A CN109361525A CN201811248684.1A CN201811248684A CN109361525A CN 109361525 A CN109361525 A CN 109361525A CN 201811248684 A CN201811248684 A CN 201811248684A CN 109361525 A CN109361525 A CN 109361525A
- Authority
- CN
- China
- Prior art keywords
- destination service
- reset command
- heartbeat message
- target
- service
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/02—Details
- H04L12/12—Arrangements for remote connection or disconnection of substations or of equipment thereof
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
- H04L67/025—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/54—Presence management, e.g. monitoring or registration for receipt of user log-on information, or the connection status of the users
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Cardiology (AREA)
- General Health & Medical Sciences (AREA)
- Stored Programmes (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a kind of methods restarting distributed deployment and servicing more, the service arrangement is in server, the following steps are included: the heartbeat message sent by forwarding authorities destination service, judges whether the destination service is in operating status according to the heartbeat message;When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and executees the reset command.The invention also discloses device, controlling terminal and the computer readable storage mediums of restarting distributed deployment mostly service.The heartbeat message that the present invention passes through forwarding authorities destination service, to determine whether destination service is in operating status, in operating status, by forwarding, mechanism sends reset command, so that the reboot operation to service can be realized in the logon rights of controlling terminal need not have server.
Description
Technical field
The present invention relates to server resets technical field more particularly to it is a kind of restart distributed deployment more service method, dress
It sets, controlling terminal and medium.
Background technique
More service distributed deployments, i.e., same server may have multiple same services, and only service name is different, or
Multiple services are distributed in different servers, and the title of service is simultaneously not fixed, and existing controlling terminal user carries out service
The method restarted mostly is the logon rights for needing to obtain corresponding whole server, then by server to destination service (i.e.
The service to be restarted) restarted, maintenance work amoun is increased, O&M cost obviously increases, and leakage or mistake restart one or two of service
Event is easy to happen, and reduces user experience, and safety is poor.And since controlling terminal user is possible to without wherein
The logon rights of one or more even whole server, along between service and controlling terminal possibly can not direct communication,
In this case, controlling terminal user can not just realize destination service and restart.
Summary of the invention
For overcome the deficiencies in the prior art, restart distributed deployment one of the objects of the present invention is to provide one kind to take more
The method of business, by the heartbeat message of forwarding authorities destination service, to determine whether destination service is in operating status,
In operating status, by forwarding, mechanism sends reset command, so that the login of controlling terminal need not have server is weighed
The reboot operation to service can be realized in limit.
The second object of the present invention is to provide a kind of device restarting distributed deployment and servicing more, by forwarding mechanism
The heartbeat message for receiving destination service, in operating status, passes through repeater-transmitter to determine whether destination service is in operating status
Structure sends reset command, so that the logon rights of controlling terminal need not have server, which can be realized, restarts behaviour to service
Make.
The third object of the present invention, which is to provide, a kind of realizes the above-mentioned control for restarting the method that distributed deployment services more
Terminal.
The fourth object of the present invention, which is to provide, a kind of stores the above-mentioned calculating for restarting the method that distributed deployment services more
Machine readable storage medium storing program for executing.
An object of the present invention adopts the following technical scheme that realization:
A method of restarting distributed deployment and service more, the service arrangement is in server, comprising the following steps:
The heartbeat message sent by forwarding authorities destination service judges that the target takes according to the heartbeat message
It whether in operating status is engaged in;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and holds
The row reset command.
Further, the forwarding mechanism is target database, and the target database is server where destination service
The database of direction;
The heartbeat message sent by forwarding authorities destination service judges that the target takes according to the heartbeat message
It whether in operating status is engaged in, comprising:
Destination service interval predetermined period sends heartbeat message to target database, and target database stores the heartbeat letter
Breath, controlling terminal obtains the heartbeat message by the target database, and judges whether the heartbeat message has update, such as
Fruit has update, then the destination service is in operating status;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and holds
The row reset command, comprising:
Controlling terminal sends reset command to target database, and the target database stores the reset command, described
Destination service timing reads the reset command to target database, executes reboot operation according to the reset command, and delete
The reset command in target database.
Further, the forwarding mechanism is target shared file, and the target shared file is clothes where destination service
The corresponding shared file of business device;
The heartbeat message sent by forwarding authorities destination service judges that the target takes according to the heartbeat message
It whether in operating status is engaged in, comprising:
Destination service interval predetermined period sends heartbeat message to target shared file, and target shared file stores the heart
Hop-information, controlling terminal obtains the heartbeat message by the target shared file, and judges whether the heartbeat message has
It updates, if there is updating, then the destination service is in operating status;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and holds
The row reset command, comprising:
Controlling terminal sends reset command to target shared file, and the target shared file stores the reset command,
The destination service timing reads the reset command to target shared file, executes reboot operation according to the reset command,
And the reset command in delete target shared file.
Further, the forwarding mechanism is target third party interface, and the target third party interface is destination service institute
In third party's interface of server connection;
The heartbeat message sent by forwarding authorities destination service judges that the target takes according to the heartbeat message
It whether in operating status is engaged in, comprising:
Destination service interval predetermined period sends heartbeat message to target third party's interface, and target third party's interface stores institute
Heartbeat message is stated, controlling terminal obtains the heartbeat message by the target third party interface, and judges the heartbeat message
Whether update is had, if there is updating, then the destination service is in operating status;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and holds
The row reset command, comprising:
Controlling terminal sends reset command and arrives target third party's interface, the target third party interface store described in restart life
It enables, the destination service timing reads the reset command to target third party's interface, is restarted according to reset command execution
Operation, and the reset command in delete target shared file.
The second object of the present invention adopts the following technical scheme that realization:
A kind of device restarting distributed deployment and servicing more, comprising:
Detection module, the heartbeat message for being sent by forwarding authorities destination service, according to the heartbeat message
Judge whether the destination service is in operating status;
Module is restarted, for when destination service is in operating status, sending reset command to forwarding mechanism, so that target
Service reads and executees the reset command.
The third object of the present invention adopts the following technical scheme that realization:
A kind of controlling terminal, comprising: one or more processors;Storage device, for storing one or more programs, when
One or more of programs are executed by one or more of processors, so that one or more of processors realize this hair
The method of the bright first purpose restarting distributed deployment and servicing more.
The fourth object of the present invention adopts the following technical scheme that realization:
A kind of computer readable storage medium, is stored thereon with computer program, realization when which is executed by processor
The method restarting distributed deployment and servicing more of one of the object of the invention.
Compared with prior art, the beneficial effects of the present invention are:
The present invention passes through the heartbeat message of forwarding authorities destination service, to determine whether destination service is in operation shape
State, in operating status, by forwarding, mechanism sends reset command, so that the login of controlling terminal need not have server
The reboot operation to service can be realized in permission, greatly reduces O&M engineer's workload, reduces O&M cost, reduce
The problem of O&M leakage operation is restarted, improves the user experience of product.
Detailed description of the invention
Fig. 1 is the flow chart for restarting the method that distributed deployment services more of the embodiment of the present invention one;
Fig. 2 is the structural block diagram for restarting the method that distributed deployment services more of the embodiment of the present invention two;
Fig. 3 is the structural block diagram for restarting the method that distributed deployment services more of the embodiment of the present invention three;
Fig. 4 is the structural block diagram for restarting the method that distributed deployment services more of the embodiment of the present invention four;
Fig. 5 is the structural schematic diagram for restarting the device that distributed deployment services more of the embodiment of the present invention five;
Fig. 6 is the structural schematic diagram of the controlling terminal of the embodiment of the present invention six.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention, it should be noted that not
Under the premise of conflicting, new implementation can be formed between various embodiments described below or between each technical characteristic in any combination
Example.
Embodiment one
The embodiment of the present invention one discloses a kind of method restarting distributed deployment and servicing more, and service arrangement is in server
In, a server can dispose multiple services, and multiple services can be respectively deployed in different servers, and this method can be with
It is executed, is please referred to shown in Fig. 1 comprising following steps by hardware or/and software:
110, the heartbeat message sent by forwarding authorities destination service, judges the mesh according to the heartbeat message
Whether mark service is in operating status.
Destination service, that is, controlling terminal will realize the service restarted, destination service at interval of predetermined period (such as 30s,
1min, 5min etc.) to a forwarding mechanism heartbeat message of transmission, destination service can be attached to service only when sending heartbeat message
One identification number (GUID), the forwarding mechanism can store the heartbeat message, and controlling terminal timing is waited to read heartbeat from forwarding mechanism
Information, controlling terminal is the heartbeat message of destination service according to service unique identifying number confirmation, and then is judged according to heartbeat message
The operating status of destination service, so that controlling terminal can obtain the operating status of service without login service device, specifically
, when controlling terminal from forwarding mechanism read adjacent heartbeat message twice it is not identical, then illustrate that heartbeat message has update, target
Service survival, i.e., it is in operating status, 120 steps can be executed.Conversely, then illustrate that destination service may not update, Ke Yitong
It crosses after multiple heartbeat message is compared, if heartbeat message still has not been changed, confirms that destination service is in halted state, no
Reboot operation is carried out to the destination service.
120, when destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service is read
With the execution reset command.
Controlling terminal sends reset command to mechanism is forwarded, and the service unique identifying number of destination service is attached in reset command
(GUID), forwarding mechanism can store reset command, and destination service timing is communicated with forwarding mechanism, according to its service
Unique identifying number reads corresponding reset command, it may be assumed that if reading its corresponding reset command, executes reboot operation, together
When, corresponding reset command in forwarding mechanism is deleted, while in the corresponding database of destination service or text file
Record restarts log, i.e., if the server where destination service has the database of direction, records and restart in the database
Log, it is corresponding in the server where destination service if the database that the server where destination service is not directed toward
Text file in record restart log, text file is in the file where destination service;, whereas if unread arrive it
Corresponding reset command then continues timing and reads to forwarding mechanism.
By forwarding the heartbeat message of authorities destination service, to determine whether destination service is in operating status,
When operating status, by forwarding, mechanism sends reset command, so that the logon rights of controlling terminal need not have server
The reboot operation to service can be realized, greatly reduce O&M engineer's workload, reduce O&M cost, reduce O&M
The problem of leakage operation is restarted, improves the user experience of product.
Embodiment two
The embodiment of the present invention two discloses a kind of method restarting distributed deployment and servicing more, and service arrangement is in server
In, a server can dispose multiple services, and multiple services can be respectively deployed in different servers, and this method can be with
It is executed by hardware or/and software, shown referring to figure 2. comprising following steps:
The heartbeat message that destination service is sent is received by target database, the target is judged according to the heartbeat message
It whether in operating status services.
Destination service, that is, controlling terminal 201 will realize the service 401 restarted, destination service at interval of predetermined period (such as
30s, 1min, 5min etc.) to a target database heartbeat message of transmission, destination service can be attached to when sending heartbeat message
It services unique identifying number (GUID), target database is the database 301 that server where destination service is directed toward, the target data
Library can store the heartbeat message, wait controlling terminal timing to read heartbeat message from target database, controlling terminal is according to service
Unique identifying number confirmation is the heartbeat message of destination service, and then the operating status of destination service is judged according to heartbeat message, from
And make controlling terminal that can obtain the operating status of service without login service device, specifically, working as controlling terminal from number of targets
The adjacent heartbeat message twice read according to library is not identical, then illustrates that heartbeat message has update, destination service survival, i.e., in operation
State can execute reboot operation.Conversely, then illustrate destination service may do not update, can by multiple heartbeat message into
After row compares, if heartbeat message still has not been changed, confirm that destination service is in halted state, weight is not carried out to the destination service
Open operation.
When destination service is in operating status, send reset command arrive target database so that destination service read with
Execute the reset command.
Controlling terminal sends reset command and arrives target database, the subsidiary service unique identification of destination service in reset command
Number (GUID), target database can store reset command and (is stored in target database allocation list), and destination service is fixed
When communicated with target database, unique identifying number is serviced according to it and reads corresponding reset command, it may be assumed that if reading it
Corresponding reset command then executes reboot operation, meanwhile, corresponding reset command in delete target database, simultaneously
Record restarts log in the corresponding database of destination service or text file, i.e., if the server where destination service has finger
To database, then in the database record restart log;, whereas if it is unread arrive its corresponding reset command, then after
Continuous timing is read to target database.
The heartbeat message of destination service is received by target database, to determine whether destination service is in operating status,
In operating status, reset command is sent by target database, so that the login of controlling terminal need not have server
The reboot operation to service can be realized in permission, greatly reduces O&M engineer's workload, reduces O&M cost, reduce
The problem of O&M leakage operation is restarted, improves the user experience of product.
Embodiment three
The embodiment of the present invention three discloses a kind of method restarting distributed deployment and servicing more, and service arrangement is in server
In, a server can dispose multiple services, and multiple services can be respectively deployed in different servers, and this method can be with
It is executed by hardware or/and software, shown referring to figure 3. comprising following steps:
The heartbeat message that destination service is sent is received by target shared file, the mesh is judged according to the heartbeat message
Whether mark service is in operating status.
Destination service, that is, controlling terminal 202 will realize the service 402 restarted, destination service at interval of predetermined period (such as
30s, 1min, 5min etc.) to a target shared file heartbeat message of transmission, destination service, can be attached when sending heartbeat message
Band service unique identifying number (GUID), target shared file are the corresponding shared file 302 of server where destination service, generally
The corresponding shared file of one server, the target shared file can store the heartbeat message, wait controlling terminal timing from
Target shared file read heartbeat message, controlling terminal according to service unique identifying number confirmation be destination service heartbeat message,
And then the operating status of destination service is judged according to heartbeat message, so that controlling terminal can be obtained without login service device
The operating status of service, specifically, when the adjacent heartbeat message twice that controlling terminal is read from target shared file is not identical, then
Illustrate that heartbeat message has update, destination service survival is that is, in operating status, can execute reboot operation.Conversely, then illustrating mesh
The service of marking may not update, and after being compared by multiple heartbeat message, if heartbeat message still has not been changed, confirm
Destination service is in halted state, does not carry out reboot operation to the destination service.
When destination service is in operating status, reset command is sent to target shared file, so that destination service is read
With the execution reset command.
Controlling terminal sends reset command and arrives target shared file, and incidentally the service of destination service is uniquely marked in reset command
Know number (GUID), target shared file can store reset command and (be stored in target shared file allocation list), target
Service timing is communicated with target shared file, is serviced unique identifying number according to it and is read corresponding reset command, it may be assumed that if
Its corresponding reset command is read, then executes reboot operation, meanwhile, it is corresponding in delete target shared file to restart
Order, while record restarts log in corresponding text file in the server where destination service, text file is in target
In file where servicing;, whereas if unread arrive its corresponding reset command, then continue timing to target shared file
It reads.
The heartbeat message of destination service is received, by target shared file to determine whether destination service is in operation shape
State sends reset command by target shared file in operating status, so that controlling terminal need not have server
The reboot operation to service can be realized in logon rights, greatly reduces O&M engineer's workload, reduces O&M cost, drop
The problem of low O&M leakage operation is restarted, improves the user experience of product.
Example IV
The embodiment of the present invention four discloses a kind of method restarting distributed deployment and servicing more, and service arrangement is in server
In, a server can dispose multiple services, and multiple services can be respectively deployed in different servers, and this method can be with
It is executed by hardware or/and software, shown referring to figure 4. comprising following steps:
The heartbeat message sent by target third party's interface destination service, according to heartbeat message judgement
Whether destination service is in operating status.
Destination service, that is, controlling terminal 203 will realize the service 403 restarted, destination service at interval of predetermined period (such as
30s, 1min, 5min etc.) to target third party's interface heartbeat message of transmission, destination service is when sending heartbeat message, meeting
Unique identifying number (GUID) incidentally is serviced, target third party's interface is the corresponding third party's interface of server where destination service
303, target third party interface can store the heartbeat message (being stored in the corresponding storage medium of third party's interface), wait to be controlled
Terminal timing processed reads heartbeat message from target third party's interface, and controlling terminal is that target takes according to service unique identifying number confirmation
The heartbeat message of business, and then judge according to heartbeat message the operating status of destination service, so that controlling terminal is without logging in
Server can obtain the operating status of service, specifically, when controlling terminal read from target third party's interface it is adjacent twice
Heartbeat message is not identical, then illustrates that heartbeat message has update, destination service survival is that is, in operating status, can execute and restart
Operation.Conversely, then illustrating that destination service may not update, after being compared by multiple heartbeat message, if heartbeat
Information still has not been changed, then confirms that destination service is in halted state, does not carry out reboot operation to the destination service.
When destination service is in operating status, reset command is sent to target third party's interface, so that destination service is read
Take and execute the reset command.
Controlling terminal sends reset command and arrives target third party's interface, and incidentally the service of destination service is unique in reset command
Identification number (GUID), target third party interface, which can store reset command, (is stored in target third party's interface allocation list
In), destination service timing is communicated with target third party's interface, is serviced unique identifying number according to it and is read and corresponding restarts life
It enables, it may be assumed that if reading its corresponding reset command, reboot operation is executed, meanwhile, in delete target third party's interface therewith
Corresponding reset command, while record restarts log in the corresponding database of destination service or text file, i.e., if mesh
Server where mark service has the database of direction, then record restarts log in the database, if where destination service
The database that is not directed toward of server, then record restarts day in corresponding text file in the server where destination service
Will, text file is in the file where destination service;, whereas if unread arrive its corresponding reset command, then continue
Timing is read to target third party's interface.
By the heartbeat message of target third party's interface destination service, to determine whether destination service is in operation shape
State sends reset command by target third party's interface, so that controlling terminal need not have server in operating status
Logon rights the reboot operation to service can be realized, greatly reduce O&M engineer's workload, reduce O&M cost,
The problem of O&M leakage operation is restarted is reduced, the user experience of product is improved.
Embodiment five
Embodiment five discloses a kind of device restarting distributed deployment and servicing more of corresponding above-described embodiment, please refers to figure
Shown in 5 comprising:
Detection module 510, the heartbeat message for being sent by forwarding authorities destination service, believes according to the heartbeat
Breath judges whether the destination service is in operating status;
Restart module 520, for when destination service is in operating status, sending reset command to forwarding mechanism, so that
Destination service reads and executees the reset command.
Embodiment six
Fig. 6 is a kind of structural schematic diagram for controlling terminal that the embodiment of the present invention three provides, as shown in fig. 6, the control is whole
End includes processor 610, memory 620, input unit 630 and output device 640;The number of processor 610 in computer equipment
It measures and can be one or more, in Fig. 6 by taking a processor 610 as an example;Processor 610, memory 620 in controlling terminal,
Input unit 630 can be connected with output device 640 by bus or other modes, in Fig. 6 for being connected by bus.
Memory 620 is used as a kind of computer readable storage medium, can be used for storing software program, journey can be performed in computer
Sequence and module, such as the corresponding program instruction of the method/module (example restarting distributed deployment and servicing more in the embodiment of the present invention
Such as, restart the detection module 510 in the device that distributed deployment services more and restart module 520).Processor 610 passes through operation
Software program, instruction and the module being stored in memory 620, thereby executing the various function application and number of controlling terminal
According to processing, that is, realize the above-mentioned method restarting distributed deployment and servicing more.
Memory 620 can mainly include storing program area and storage data area, wherein storing program area can store operation system
Application program needed for system, at least one function;Storage data area, which can be stored, uses created data etc. according to terminal.This
Outside, memory 620 may include high-speed random access memory, can also include nonvolatile memory, for example, at least one
Disk memory, flush memory device or other non-volatile solid state memory parts.In some instances, memory 620 can be into one
Step includes the memory remotely located relative to processor 610, these remote memories can be whole to controlling by network connection
End.The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Input unit 630 can be used for user information.Output device 640 may include that display screen etc. shows equipment.
Embodiment seven
The embodiment of the present invention seven also provides a kind of storage medium comprising computer executable instructions, and the computer can be held
Row instruction a kind of restarts the method serviced distributed deployment, this method packet for executing when being executed by computer processor more
It includes:
The heartbeat message sent by forwarding authorities destination service judges that the target takes according to the heartbeat message
It whether in operating status is engaged in;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and holds
The row reset command.
Certainly, a kind of storage medium comprising computer executable instructions, computer provided by the embodiment of the present invention
The operation of method that executable instruction is not limited to the described above can also be performed and provided by any embodiment of the invention restart distribution
Relevant operation in the formula deployment methods serviced more.
By the description above with respect to embodiment, it is apparent to those skilled in the art that, the present invention
It can be realized by software and required common hardware, naturally it is also possible to which by hardware realization, but in many cases, the former is more
Good embodiment.Based on this understanding, technical solution of the present invention substantially in other words contributes to the prior art
Part can be embodied in the form of software products, which can store in computer readable storage medium
In, floppy disk, read-only memory (Read-Only Memory, ROM), random access memory (Random such as computer
Access Memory, RAM), flash memory (FLASH), hard disk or CD etc., including some instructions use so that a controlling terminal
(can be mobile phone, personal computer, server or the network equipment etc.) executes method described in each embodiment of the present invention.
It is worth noting that, in the above-mentioned embodiment for restarting the device that distributed deployment services more, included each list
Member and module are only divided according to the functional logic, but are not limited to the above division, as long as can be realized corresponding
Function;In addition, the specific name of each functional unit is also only for convenience of distinguishing each other, it is not intended to restrict the invention
Protection scope.
The above embodiment is only the preferred embodiment of the present invention, and the scope of protection of the present invention is not limited thereto,
The variation and replacement for any unsubstantiality that those skilled in the art is done on the basis of the present invention belong to institute of the present invention
Claimed range.
Claims (7)
1. it is a kind of restart distributed deployment more service method, the service arrangement is in server, it is characterised in that including with
Lower step:
The heartbeat message sent by forwarding authorities destination service, judges that the destination service is according to the heartbeat message
It is no in operating status;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and executees institute
State reset command.
2. restarting the method that distributed deployment services more as described in claim 1, which is characterized in that the forwarding mechanism is mesh
Database is marked, the target database is the database that server where destination service is directed toward;
The heartbeat message sent by forwarding authorities destination service, judges that the destination service is according to the heartbeat message
It is no in operating status, comprising:
Destination service interval predetermined period sends heartbeat message to target database, and target database stores the heartbeat message,
Controlling terminal obtains the heartbeat message by the target database, and judges whether the heartbeat message has update, if
There is update, then the destination service is in operating status;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and executees institute
State reset command, comprising:
Controlling terminal sends reset command to target database, and the target database stores the reset command, the target
Service timing reads the reset command to target database, executes reboot operation, and delete target according to the reset command
The reset command in database.
3. restarting the method that distributed deployment services more as described in claim 1, which is characterized in that the forwarding mechanism is mesh
Shared file is marked, the target shared file is the corresponding shared file of server where destination service;
The heartbeat message sent by forwarding authorities destination service, judges that the destination service is according to the heartbeat message
It is no in operating status, comprising:
Destination service interval predetermined period sends heartbeat message to target shared file, and target shared file stores the heartbeat letter
Breath, controlling terminal obtains the heartbeat message by the target shared file, and judges whether the heartbeat message has update,
If there is updating, then the destination service is in operating status;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and executees institute
State reset command, comprising:
Controlling terminal sends reset command to target shared file, and the target shared file stores the reset command, described
Destination service timing reads the reset command to target shared file, executes reboot operation according to the reset command, and delete
Except the reset command in target shared file.
4. restarting the method that distributed deployment services more as described in claim 1, which is characterized in that the forwarding mechanism is mesh
Third party's interface is marked, the target third party interface is third party's interface of server connection where destination service;
The heartbeat message sent by forwarding authorities destination service, judges that the destination service is according to the heartbeat message
It is no in operating status, comprising:
Destination service interval predetermined period sends heartbeat message to target third party's interface, and target third party's interface stores the heart
Hop-information, controlling terminal obtains the heartbeat message by the target third party interface, and whether judges the heartbeat message
There is update, if there is updating, then the destination service is in operating status;
When destination service is in operating status, reset command is sent to forwarding mechanism, so that destination service reads and executees institute
State reset command, comprising:
Controlling terminal sends reset command to target third party's interface, and the target third party interface stores the reset command,
The destination service timing reads the reset command to target third party's interface, restarts behaviour according to reset command execution
Make, and the reset command in delete target shared file.
5. it is a kind of restart distributed deployment more service device, the service arrangement in server it is characterised by comprising:
Detection module, the heartbeat message for being sent by forwarding authorities destination service, judges according to the heartbeat message
Whether the destination service is in operating status;
Module is restarted, for when destination service is in operating status, sending reset command to forwarding mechanism, so that destination service
Read and execute the reset command.
6. a kind of controlling terminal characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real
The now method restarting distributed deployment and servicing more as described in any in claim 1-4.
7. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor
The method restarting distributed deployment and servicing more as described in any in claim 1-4 is realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811248684.1A CN109361525B (en) | 2018-10-25 | 2018-10-25 | Method, device, control terminal and medium for restarting distributed deployment of multiple services |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811248684.1A CN109361525B (en) | 2018-10-25 | 2018-10-25 | Method, device, control terminal and medium for restarting distributed deployment of multiple services |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109361525A true CN109361525A (en) | 2019-02-19 |
CN109361525B CN109361525B (en) | 2021-08-13 |
Family
ID=65346462
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811248684.1A Active CN109361525B (en) | 2018-10-25 | 2018-10-25 | Method, device, control terminal and medium for restarting distributed deployment of multiple services |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109361525B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417586A (en) * | 2019-07-18 | 2019-11-05 | 新华三大数据技术有限公司 | Service monitoring method, service node, server and computer readable storage medium |
CN112492555A (en) * | 2020-11-30 | 2021-03-12 | 珠海格力电器股份有限公司 | Control instruction processing method and device |
CN112542002A (en) * | 2019-09-23 | 2021-03-23 | 北京轻享科技有限公司 | Car renting system control method and device |
CN113438122A (en) * | 2021-05-14 | 2021-09-24 | 济南浪潮数据技术有限公司 | Heartbeat management method and device for server, computer equipment and medium |
CN113760409A (en) * | 2021-09-09 | 2021-12-07 | 广州市百果园网络科技有限公司 | Service instance management method, device, equipment and storage medium |
CN115695405A (en) * | 2021-07-28 | 2023-02-03 | 中移物联网有限公司 | Equipment control method, device, control terminal, execution terminal and service terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090328027A1 (en) * | 2007-03-30 | 2009-12-31 | Fujitsu Limited | Cluster system, process for updating software, service provision node, and computer-readable medium storing service provision program |
CN102404386A (en) * | 2012-01-09 | 2012-04-04 | 无锡城市云计算中心有限公司 | Method for ensuring high-reliability service of metadata server group of distributed file system |
US20140032978A1 (en) * | 2012-07-30 | 2014-01-30 | Hon Hai Precision Industry Co., Ltd. | Server and method of monitoring baseboard management controller |
CN103763155A (en) * | 2014-01-24 | 2014-04-30 | 国家电网公司 | Multi-service heartbeat monitoring method for distributed type cloud storage system |
CN105978721A (en) * | 2016-05-11 | 2016-09-28 | 中国农业银行股份有限公司 | Method, device and system for monitoring operation state of services in clustering system |
CN106302618A (en) * | 2015-06-11 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Long-range control method, remote server, management equipment and terminal |
CN106354602A (en) * | 2016-08-25 | 2017-01-25 | 乐视控股(北京)有限公司 | Service monitoring method and equipment |
CN106789191A (en) * | 2016-12-06 | 2017-05-31 | 微梦创科网络科技(中国)有限公司 | A kind of automatic method for restarting of distributed deployment service processes and device |
-
2018
- 2018-10-25 CN CN201811248684.1A patent/CN109361525B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090328027A1 (en) * | 2007-03-30 | 2009-12-31 | Fujitsu Limited | Cluster system, process for updating software, service provision node, and computer-readable medium storing service provision program |
CN102404386A (en) * | 2012-01-09 | 2012-04-04 | 无锡城市云计算中心有限公司 | Method for ensuring high-reliability service of metadata server group of distributed file system |
US20140032978A1 (en) * | 2012-07-30 | 2014-01-30 | Hon Hai Precision Industry Co., Ltd. | Server and method of monitoring baseboard management controller |
CN103763155A (en) * | 2014-01-24 | 2014-04-30 | 国家电网公司 | Multi-service heartbeat monitoring method for distributed type cloud storage system |
CN106302618A (en) * | 2015-06-11 | 2017-01-04 | 阿里巴巴集团控股有限公司 | Long-range control method, remote server, management equipment and terminal |
CN105978721A (en) * | 2016-05-11 | 2016-09-28 | 中国农业银行股份有限公司 | Method, device and system for monitoring operation state of services in clustering system |
CN106354602A (en) * | 2016-08-25 | 2017-01-25 | 乐视控股(北京)有限公司 | Service monitoring method and equipment |
CN106789191A (en) * | 2016-12-06 | 2017-05-31 | 微梦创科网络科技(中国)有限公司 | A kind of automatic method for restarting of distributed deployment service processes and device |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417586A (en) * | 2019-07-18 | 2019-11-05 | 新华三大数据技术有限公司 | Service monitoring method, service node, server and computer readable storage medium |
CN110417586B (en) * | 2019-07-18 | 2022-04-08 | 新华三大数据技术有限公司 | Service monitoring method, service node, server and computer readable storage medium |
CN112542002A (en) * | 2019-09-23 | 2021-03-23 | 北京轻享科技有限公司 | Car renting system control method and device |
CN112492555A (en) * | 2020-11-30 | 2021-03-12 | 珠海格力电器股份有限公司 | Control instruction processing method and device |
CN113438122A (en) * | 2021-05-14 | 2021-09-24 | 济南浪潮数据技术有限公司 | Heartbeat management method and device for server, computer equipment and medium |
CN113438122B (en) * | 2021-05-14 | 2022-05-17 | 济南浪潮数据技术有限公司 | Heartbeat management method and device for server, computer equipment and medium |
CN115695405A (en) * | 2021-07-28 | 2023-02-03 | 中移物联网有限公司 | Equipment control method, device, control terminal, execution terminal and service terminal |
CN113760409A (en) * | 2021-09-09 | 2021-12-07 | 广州市百果园网络科技有限公司 | Service instance management method, device, equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109361525B (en) | 2021-08-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109361525A (en) | Restart method, apparatus, controlling terminal and medium that distributed deployment services more | |
WO2021017301A1 (en) | Management method and apparatus based on kubernetes cluster, and computer-readable storage medium | |
EP3201805B1 (en) | Methods and systems for regulating communications at a mobile communications device | |
US20090259734A1 (en) | Distribution management method, a distribution management system and a distribution management server | |
CN103001809B (en) | Service node method for monitoring state for cloud storage system | |
CN103152390B (en) | The node configuration method of distributed memory system, device, node and system | |
CN103530193A (en) | Method and device used for adjusting application process | |
CN103067230A (en) | Method for achieving hyper text transport protocol (http) service monitoring through embedding monitoring code | |
CN110740145A (en) | Message consumption method, device, storage medium and electronic equipment | |
CN109379425A (en) | Distributed cluster deployment management method and device | |
CN109003350A (en) | Generation dimension logging instrument and working method | |
CN113422692A (en) | Method, device and storage medium for detecting and processing node faults in K8s cluster | |
US20180293098A1 (en) | Digital Processing System for Event and/or Time Based Triggering Management, and Control of Tasks | |
CN105554142A (en) | Method, apparatus and system for pushing messages | |
CN104793998B (en) | Terminal system resource management method and device | |
JP5268589B2 (en) | Information processing apparatus and information processing apparatus operating method | |
CN113709247A (en) | Resource acquisition method, device, system, electronic equipment and storage medium | |
CN104219280A (en) | Intelligent application data transmission channel | |
CN102916987A (en) | Data acquisition and management system based on cloud computing framework | |
CN105631715A (en) | Advertisement updating supervision method and device | |
CN111324459A (en) | Calendar-based resource scheduling method and device, electronic equipment and storage medium | |
CN101924815A (en) | 3G MOA phone middleware embedded system | |
CN109343944A (en) | Data processing method, device, terminal and the storage medium of eSIM card | |
US11128540B1 (en) | Augmented reality electronic equipment maintenance user interface | |
CN109445922A (en) | Task processing 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 |