CN109857540A - Management method, device, terminal and the computer readable storage medium of server - Google Patents

Management method, device, terminal and the computer readable storage medium of server Download PDF

Info

Publication number
CN109857540A
CN109857540A CN201811220852.6A CN201811220852A CN109857540A CN 109857540 A CN109857540 A CN 109857540A CN 201811220852 A CN201811220852 A CN 201811220852A CN 109857540 A CN109857540 A CN 109857540A
Authority
CN
China
Prior art keywords
server
shut down
address information
service
online
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811220852.6A
Other languages
Chinese (zh)
Inventor
梁征
梁亚保
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Ping'an Fortune Treasure Investment Consulting Co Ltd
Original Assignee
Shenzhen Ping'an Fortune Treasure Investment Consulting Co Ltd
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 Shenzhen Ping'an Fortune Treasure Investment Consulting Co Ltd filed Critical Shenzhen Ping'an Fortune Treasure Investment Consulting Co Ltd
Priority to CN201811220852.6A priority Critical patent/CN109857540A/en
Publication of CN109857540A publication Critical patent/CN109857540A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of management methods of server, comprising: obtains the address information of all online servers, and according to address information determination and the one-to-one server of address information;Online server is detected, determines the server for needing to shut down;The corresponding address information of server for needing to shut down is offline, and control the server shutdown for needing to shut down;The subscription request that client is sent is received, the signature identification that request includes the service that client request is subscribed to is subscribed to;The online server for the service that is capable of providing is searched according to signature identification;Called server is selected from the online server for the service that is capable of providing according to load-balancing algorithm.The present invention also provides a kind of managing device of server, terminal and computer readable storage mediums, the present invention is based on micro services frameworks to be managed to server, can on weekdays just to server carry out timely shutdown update, thus reduce staff's weekend work overtime caused by human cost.

Description

Management method, device, terminal and the computer readable storage medium of server
Technical field
The present invention relates to business data processing technical field more particularly to a kind of management methods of server, device, terminal And computer readable storage medium.
Background technique
Currently, in order to be preferably minimized to the influence of business, will usually be risen when needing to carry out edition upgrading to server The arrangement of time of grade version sends out version verifying, if weekend just finds the problem, remote diagnosis and reparation in weekend evenings, by all night Efficiency it is relatively low.In addition, even if having repaired problem on weekdays, in order to avoid influencing business, it is also difficult to tight at the first time It is suddenly updated, can only be updated and be tested with exploitation on one's own time.
Therefore, existing server has the defect updated not in time in upgrading or reparation.
Summary of the invention
The main purpose of the present invention is to provide a kind of management method of server, device, terminal and computer-readable deposit Storage media, it is intended to solve existing server in upgrading or reparation, there is the technical issues of updating not in time.
To achieve the above object, the present invention provides a kind of management method of server, the management method packet of the server It includes:
The address information of all online servers is obtained, and according to address information determination and the address information One-to-one server;
Online server is detected, determines the server for needing to shut down;
The corresponding address information of server for needing to shut down is offline, and control the server shutdown for needing to shut down;
The subscription request that client is sent is received, it is described to subscribe to the spy that request includes the service that the client request is subscribed to Sign mark;
The online server for being capable of providing the service is searched according to the signature identification;
Called service is selected from the online server for being capable of providing the service according to load-balancing algorithm Device.
Further, described that online server is detected, determine that the step of needing the server to shut down includes:
A heartbeat signal is sent to online server every preset time;
Judge in preset time threshold with the presence or absence of the server without replying heartbeat signal;
If it exists without the server of reply heartbeat signal, it is determined that the server for not replying heartbeat signal needs to close Machine.
Further, the corresponding address information of server that will need to shut down is offline, and controls the clothes for needing to shut down Business device shutdown the step of include:
The corresponding address information of server for needing to shut down is offline;
Detect corresponding address information it is offline after the operation of server that needs to shut down hold time;
If the operation holds time and reaches default runing time, the server transmission shutdown command that shuts down to needs with Server is set to shut down.
Further, the corresponding address information of server that will need to shut down is offline, and controls the clothes for needing to shut down Business device shutdown the step of include:
The corresponding address information of server for needing to shut down is offline;
Judge whether the needing the server to shut down operation of the task is completed;
If desired the task for the server operation shut down has been completed, then the server to shut down to needs sends shutdown command So that server shuts down.
Further, the load-balancing algorithm includes polling method, weighted polling method and Smallest connection number method.
Further, after the step of subscription request for receiving client transmission, further includes:
Judge whether the client has the permission for calling the service;
If the client has the permission for calling the service, then follow the steps: can according to signature identification lookup The online server of the service is provided.
Further, described to be selected from the online server for being capable of providing the service according to load-balancing algorithm After the step of called server, further includes:
The called corresponding address information of server is sent to the client, so that the client is according to correspondence The called server of address information access, and receive the service of server offer.
In addition, the present invention also provides a kind of managing devices of server, comprising:
Module is obtained, the acquisition module is used to obtain the address information of all line servers, and according to describedly The determination of location information and the one-to-one server of the address information;
Detection module, the detection module determine the server for needing to shut down for detecting to online server;
Processing module, the corresponding address information of server that the processing module is used to need to shut down is offline, and controls Server shutdown;
Receiving module, the receiving module are used to receive the subscription request of client transmission, and the subscription request includes institute State the signature identification of the service of client request subscription;
Searching module, the searching module, which is used to be searched according to the signature identification, is capable of providing the online of the service Server;
Choose module, the selections module for according to load-balancing algorithm from the online clothes for being capable of providing the service Called server is selected in business device.
The present invention also provides a kind of terminal, the terminal includes processor, memory and is stored on the memory And the management program for the server that can be executed by the processor, wherein the management program of the server is by the processor When execution, the step of realizing the management method of server as described above.
The present invention also provides a kind of computer readable storage mediums, which is characterized in that the computer readable storage medium On be stored with the management program of server, wherein when the management program of the server is executed by processor, realize such as institute above The step of management method for the server stated.
In technical solution of the present invention, the address information of all line servers is obtained, and true according to the address information The fixed and one-to-one server of the address information;Online server is detected, determines the server for needing to shut down; The corresponding address information of server for needing to shut down is offline, and control server is shut down;The subscription that client is sent is received to ask It asks, it is described to subscribe to the signature identification that request includes the service that the client request is subscribed to;Energy is searched according to the signature identification The online server of the service is enough provided;According to load-balancing algorithm from the online server for being capable of providing the service In select called server.Terminal of the invention can be when server needs to shut down, to the ground of the server Location information carries out offline processing and chooses caller in remaining online server when client needs invoking server, To not interfere with the server for needing to shut down shutdown, the processing of existing business will not be influenced, therefore, the present invention is based on Micro services framework is managed server, just can carry out timely shutdown to server on weekdays and update, so as to Human cost caused by reduction staff's weekend works overtime.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of terminal involved in the embodiment of the present invention;
Fig. 2 is the flow diagram of the management method first embodiment of server of the present invention;
Fig. 3 is the step of detecting in the embodiment of the present invention to online server, determine the server for needing to shut down Process refinement schematic diagram;
Fig. 4 is in an embodiment of the present invention that the corresponding address information of server for needing to shut down is offline, and controlling need to The process refinement schematic diagram of the step of server to be shut down shutdown;
Fig. 5 is in another embodiment of the present invention that the corresponding address information of server for needing to shut down is offline, and is controlled The process refinement schematic diagram of the step of server shutdown for needing to shut down;
Fig. 6 is the flow diagram of the management method second embodiment of server of the present invention;
Fig. 7 is the flow diagram of the management method 3rd embodiment of server of the present invention;
Fig. 8 is the module diagram of the managing device of server of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to the management method of server be mainly used in terminal, which can be PC, portable The equipment that computer, mobile terminal etc. have display and processing function.
Referring to Fig.1, Fig. 1 is terminal structure schematic diagram involved in the embodiment of the present invention.In the embodiment of the present invention, eventually End may include processor 1001 (such as CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components;User interface 1003 may include display Shield (Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface);Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage, memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.
It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of computer readable storage medium may include operation system The management program of system, network communication module and server.
In Fig. 1, network communication module is mainly used for connecting server, carries out data communication with server;And processor 1001 can call the management program of the server stored in memory 1005, and the step of management method of execute server.
Based on the hardware configuration of above-mentioned terminal, each embodiment of the management method of server of the present invention is proposed.
The present invention provides a kind of management method of server.
Referring to Fig. 2, in the first embodiment of the invention, the management method of server the following steps are included:
Step S100 obtains the address information of all online servers, and according to the address information determination and institute State the one-to-one server of address information;
When server can provide service for client, server can send registration information, registration information to terminal In include server IP address information and the service that is capable of providing of server.Terminal receives the registration of server transmission After information, the IP address of server is registered, increases the IP address of server in the terminal, therefore, the server is at end It is online in end.
Terminal obtains the address information of itself all line server, can be determined according to address information and address information One-to-one reader.
Step S200 detects online server, determines the server for needing to shut down;
When server, which needs to carry out edition upgrading or server, to be needed to diagnose and repair there are failure, need to service Device shutdown, then carries out subsequent operation, restart again after having operated server host with to after edition upgrading server and reparation after Server be updated, therefore, it is necessary to check online server, determine to need the server that shuts down.
Specifically, referring to figure 3., Fig. 3 is to detect in the embodiment of the present invention to online server, and determination needs to close The process refinement schematic diagram of the step of server of machine, is based on first embodiment, and step S200 includes:
Step S210 sends a heartbeat signal to online server every preset time;
The each preset time of terminal sends a heartbeat signal to all online servers, and preset time can be according to reality Border is set, such as preset time is set as 1 minute, 3 minutes.
Step S220 judges in preset time threshold with the presence or absence of the server without replying heartbeat signal;
After terminal to server has sent heartbeat signal, judging, which whether there is in preset time threshold, is not replied The server of heartbeat signal, wherein time threshold can also be set according to actual needs, can be set to 5 minutes, 8 minutes Deng.
Step S230, if it exists without the server of reply heartbeat signal, it is determined that do not reply the service of heartbeat signal Device needs to shut down.
If there is the server within a preset time without replying heartbeat signal, then illustrate terminal in preset time threshold The response message that a certain online server is replied is not received by value, it is determined that the server for not replying heartbeat signal needs It shuts down.Wherein, when server needs to upgrade or server needs to diagnose and repair there are failure, the people that works can be passed through Member, which carries out corresponding operation to server, makes server not send response message.If there is no not replying within a preset time The server of heartbeat signal illustrates that all online servers can operate normally, and handles without shutdown.
Step S300, the corresponding address information of server for needing to shut down is offline, and control the server for needing to shut down Shutdown;
It is the corresponding address information of server for needing to shut down is offline, that is, the server pair that will have registered in the terminal The IP address information answered is deleted from terminal, makes client when needing server providing services, and terminal, which will not be called, to be needed to close The server of machine is serviced.After the corresponding address information of server for needing to shut down is offline, control needs the service shut down Device shutdown.
Specifically, referring to figure 4., Fig. 4 is the corresponding address of server that needs shut down in an embodiment of the present invention Information is offline, and the process refinement schematic diagram for the step of controlling the server shutdown for needing to shut down, and is based on first embodiment, step S300 includes:
Step S310, the corresponding address information of server for needing to shut down is offline;
Step S320, detect corresponding address information it is offline after the operation of server that needs to shut down hold time;
Step S330, if the operation, which is held time, reaches default runing time, the server to shut down to needs is sent Shutdown command is so that server shuts down.
In one embodiment, it when server, which needs to shut down, carries out upgrade or repair, is likely present just on server Criticizing for task is being run, in order to not influence the upgrade or repair of server, when the operation for the server for needing to shut down to needs maintains Between detected, since needing to start timing after the corresponding address information of server shut down is offline, when the operation maintenance of server After time reaches default runing time, the server to shut down to needs sends shutdown command so that server shuts down.Wherein, it presets Runing time is the maximum duration that can run after the address information of server is offline, when running between reach default runing time Afterwards, the shutdown command that server sends street terminal shuts down.Wherein, it presets runing time to be set by staff, example Such as, default runing time is set to 5 minutes, in the offline shutdown of server after five minutes of the corresponding address information of server.
In addition, referring to figure 5., Fig. 5 is the corresponding address of server that needs shut down in another embodiment of the present invention Information is offline, and the process refinement schematic diagram for the step of controlling the server shutdown for needing to shut down, and is based on first embodiment, step S300 further include:
Step S340, the corresponding address information of server for needing to shut down is offline;
Step S350, judges whether the needing the server to shut down operation of the task is completed;
The task of step S360, the server operation if desired shut down have been completed, then the server hair to shut down to needs Shutdown command is sent so that server shuts down.
In another embodiment, when server, which needs to shut down, carries out upgrade or repair, there may be just on server Criticizing for task is being run, is needing that server shuts down again after waiting running and criticizing on servers for task to be fully completed.It can be by checking day Will determines whether there is also tasks to execute in server, when running in the server that needs shut down for task has executed completion When, the server to shut down to needs sends shutdown command so that server shuts down.
In addition, in another embodiment, can i.e. the detection corresponding address information of server that needs to shut down it is offline after The operation of server is held time, and whether running in detection service device for task is completed.If right after address information is offline The operation for the server answered is held time before reaching default runing time, and executing in server for task has been completed, then is existed Shutdown command is sent so that server shuts down to server when executing in server for task is completed;If offline in address information The operation of corresponding server is held time afterwards when reaching default runing time, and executing in server for task has not been completed, That sends shutdown command to server when the operation of server holds time and reaches default runing time so that server shuts down.
Step S400 receives the subscription request that client is sent, and the subscription request includes that the client request is subscribed to Service signature identification;
When client needs server providing services, it can be sent to terminal and subscribe to request, include in subscription request The signature identification for the service that client request is subscribed to.
Step S500 searches the online server for being capable of providing the service according to the signature identification;
Terminal receive client transmission subscription request after, in existing online server search be capable of providing with The server of the corresponding service of signature identification.Specifically, can be previously stored in the terminal signature identification corresponding with service Relationship after terminal receives the signature identification of client transmission, searches to obtain the service of client needs according to signature identification, All online servers for being capable of providing service corresponding with signature identification are obtained further according to the registration information of server.
Step S600 is selected from the online server for being capable of providing the service according to load-balancing algorithm and is adjusted Server.
Be capable of providing client needs service online server may have it is multiple, in order to select called clothes It is engaged in device, load-balancing algorithm processing can be carried out to the online server for being capable of providing the service, obtain and finally call Server.
In technical solution of the present invention, the address information of all line servers is obtained, and true according to the address information The fixed and one-to-one server of the address information;Online server is detected, determines the server for needing to shut down; The corresponding address information of server for needing to shut down is offline, and control server is shut down;The subscription that client is sent is received to ask It asks, it is described to subscribe to the signature identification that request includes the service that the client request is subscribed to;Energy is searched according to the signature identification The online server of the service is enough provided;According to load-balancing algorithm from the online server for being capable of providing the service In select called server.Terminal of the invention can be when server needs to shut down, to the ground of the server Location information carries out offline processing and chooses caller in remaining online server when client needs invoking server, To not interfere with the server for needing to shut down shutdown, the processing of existing business will not be influenced, therefore, the present invention is based on Micro services framework is managed server, just can carry out timely shutdown to server on weekdays and update, so as to Human cost caused by reduction staff's weekend works overtime.
Wherein, load-balancing algorithm includes but is not limited to polling method, weighted polling method and Smallest connection number method.Specifically, Polling method is that the subscription request of client is assigned in turn can be provided on the server of service in order, it is balancedly treated Each server of rear end, without concern for the actual connection number of server and current system load;Weighted polling method be by The server of service can be provided by being assigned to the subscription request of client according to the weight for subscribing to request, due to different servers The configuration of possible machine and the load of current system be not identical, their anti-pressure ability is not also identical, therefore high, negative to configuration It carries low server and configures higher weight, allow its processing is more to subscribe to request, and with setting low, loading high server, it gives It distributes lower weight, reduces its system load;Smallest connection number method relatively flexibly and intelligence, due to server configuration not Identical to the greatest extent, for the processing faster or slower of request, Smallest connection number method is the connection current according to server, is dynamically selected It takes and overstocks the least server of connection number currently wherein to handle current subscription request, as much as possible raising back-end services Load is reasonably diverted to each server by device inequality in utilizing efficiency.
Further, Fig. 6 is please referred to, Fig. 6 is the flow diagram of the management method second embodiment of server of the present invention, Based on first embodiment, after step S400, further includes:
Step S700, judges whether the client has the permission of invoking server;
If the client has the permission of invoking server, S500 is thened follow the steps.
Specifically, the corresponding relationship of service with the client that can call the service can be stored in advance in the terminal, when After the subscription request for receiving client transmission, the clothes of calling required for learning client according to the signature identification subscribed in request It is engaged in, service is stored in advance in the service and terminal of the calling according to required for client and the client of the service can be called Corresponding relationship, determines whether the client has the permission for calling the service, if the client has the permission for calling the service, Step S500 is executed, the online server for being capable of providing the service is searched according to the signature identification.If the client The permission of the service is not called, then terminal is not responding to the subscription request of client, that is, client is unable to invoking server to mention The service needed for it.Whether there is the permission for the service for calling its request to judge client, can be improved calling service The safety of device avoids server from maliciously being called.
Further, Fig. 7 is please referred to, Fig. 7 is the flow diagram of the management method 3rd embodiment of server of the present invention, Based on first embodiment, after step S600, further includes:
The called corresponding address information of server is sent to the client, so that the client by step S800 The end server called according to the access of corresponding address information, and the service on invoking server.
After selecting called server by load-balancing algorithm, by the called corresponding address information of server It is sent to client, after client receives address information, according to the server that address message reference is called, invoking server On service.
In addition, please referring to Fig. 8, the present invention also provides a kind of managing device 10 of server, the managing devices 10 of server Include:
Module 20 is obtained, the acquisition module is used to obtain the address information of all online servers, and according to institute State address information determination and the one-to-one server of the address information;
Detection module 30, the detection module determine the service for needing to shut down for detecting to online server Device;
Processing module 40, the corresponding address information of server that the processing module is used to need to shut down is offline, and controls The server shutdown that system needs to shut down;
Receiving module 50, the receiving module are used to receive the subscription request of client transmission, and the subscription request includes The signature identification for the service that the client request is subscribed to;
Searching module 60, the searching module are used to be capable of providing the online of the service according to signature identification lookup Server;
Choose module 70, the module of choosing is used for according to load-balancing algorithm from being capable of providing the online of the service Called server is selected in server.
Further, the detection module is also used to:
A heartbeat signal is sent to online server every preset time;
Judge in preset time threshold with the presence or absence of the server without replying heartbeat signal;
If it exists without the server of reply heartbeat signal, it is determined that the server for not replying heartbeat signal needs to close Machine.
Further, the processing module is also used to:
The corresponding address information of server for needing to shut down is offline;
Detect corresponding address information it is offline after the operation of server that needs to shut down hold time;
When it is described operation hold time reach default runing time when, shut down to needs server transmission shutdown command with Server is set to shut down.
Further, the processing module is also used to:
The corresponding address information of server for needing to shut down is offline;
Judge whether the needing the server to shut down operation of the task is completed;
If desired the task for the server operation shut down has been completed, the server that shuts down to needs transmission shutdown command with Server is set to shut down.
Further, the managing device of the server further include:
Judgment module, the judgment module is for judging whether the client has the permission for calling the service.
Further, the managing device of the server further include:
Sending module, the sending module are used to the corresponding address information of the server being called being sent to the client End, so that the server that the client is called according to the access of corresponding address information, and the described of server offer is provided Service.
Wherein, it is respectively walked in modules and the management method embodiment of above-mentioned server in the managing device of above-mentioned server Rapid corresponding, function and realization process no longer repeat one by one here.
In addition, the present invention also provides a kind of computer readable storage mediums.
The management program of server is stored on computer readable storage medium of the present invention, wherein the management journey of server When sequence is executed by processor, realize as above-mentioned server management method the step of.
Wherein, the management program of server, which is performed realized method, can refer to the management method of server of the present invention Each embodiment, details are not described herein again.
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, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
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.
It should be noted that in the claims, any reference symbol between parentheses should not be configured to power The limitation that benefit requires.Word "comprising" does not exclude the presence of component or step not listed in the claims.Before component Word "a" or "an" does not exclude the presence of multiple such components.The present invention can be by means of including several different components It hardware and is realized by means of properly programmed computer.In the unit claims listing several devices, these are filled Several in setting, which can be, to be embodied by the same item of hardware.The use of word first, second, and third is not Indicate any sequence.These words can be construed to title.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all at this Under the inventive concept of invention, using equivalent structure transformation made by description of the invention and accompanying drawing content, or directly/use indirectly It is included in other related technical areas in scope of patent protection of the invention.

Claims (10)

1. a kind of management method of server, which is characterized in that the management method of the server includes:
The address information of all online servers is obtained, and is determined with the address information one by one according to the address information Corresponding server;
Online server is detected, determines the server for needing to shut down;
The corresponding address information of server for needing to shut down is offline, and control the server shutdown for needing to shut down;
The subscription request that client is sent is received, it is described to subscribe to the feature mark that request includes the service that the client request is subscribed to Know;
The online server for being capable of providing the service is searched according to the signature identification;
Called server is selected from the online server for being capable of providing the service according to load-balancing algorithm.
2. the management method of server as described in claim 1, which is characterized in that described to be examined to online server It surveys, determines that the step of needing the server to shut down includes:
A heartbeat signal is sent to online server every preset time;
Judge in preset time threshold with the presence or absence of the server without replying heartbeat signal;
If it exists without the server of reply heartbeat signal, it is determined that the server for not replying heartbeat signal needs to shut down.
3. the management method of server as described in claim 1, which is characterized in that described that the server for needing to shut down is corresponding Address information it is offline, and control need shut down server shutdown the step of include:
The corresponding address information of server for needing to shut down is offline;
Detect corresponding address information it is offline after the operation of server that needs to shut down hold time;
If the operation, which is held time, reaches default runing time, the server to shut down to needs sends shutdown command so that clothes Business device shutdown.
4. the management method of server as described in claim 1, which is characterized in that described that the server for needing to shut down is corresponding Address information it is offline, and control need shut down server shutdown the step of include:
The corresponding address information of server for needing to shut down is offline;
Judge whether the needing the server to shut down operation of the task is completed;
If desired the task for the server operation shut down has been completed, then the server that shuts down to needs transmission shutdown command so that Server shutdown.
5. the management method of server as described in claim 1, which is characterized in that the load-balancing algorithm includes poll Method, weighted polling method and Smallest connection number method.
6. the management method of server according to any one of claims 1 to 5, which is characterized in that the reception client hair After the step of subscription request sent, further includes:
Judge whether the client has the permission for calling the service;
If the client has the permission for calling the service, then follow the steps: being capable of providing according to signature identification lookup The online server of the service.
7. the management method of server according to any one of claims 1 to 5, which is characterized in that described according to load balancing Algorithm is after the step of selecting called server in the online server for being capable of providing the service, further includes:
The called corresponding address information of server is sent to the client, so that the client is according to correspondingly The called server of location message reference, and the service of server offer is provided.
8. a kind of managing device of server characterized by comprising
Module, the address information for obtaining module and being used to obtain all line servers are obtained, and is believed according to the address Breath determination and the one-to-one server of the address information;
Detection module, the detection module determine the server for needing to shut down for detecting to online server;
Processing module, the corresponding address information of server that the processing module is used to need to shut down is offline, and controls service Device shutdown;
Receiving module, the receiving module are used to receive the subscription request of client transmission, and the subscription request includes the visitor The signature identification for the service that family end pulls subscription;
Searching module, the searching module are used to search the online service for being capable of providing the service according to the signature identification Device;
Choose module, the selections module for according to load-balancing algorithm from the online server for being capable of providing the service In select called server.
9. a kind of terminal, which is characterized in that the terminal includes processor, memory and is stored on the memory simultaneously The management program for the server that can be executed by the processor, wherein the management program of the server is held by the processor When row, the step of realizing the management method of server as described in any one of claims 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that be stored with server on the computer readable storage medium Management program, wherein when the management program of the server is executed by processor, realize such as any one of claims 1 to 7 The step of management method of the server.
CN201811220852.6A 2018-10-19 2018-10-19 Management method, device, terminal and the computer readable storage medium of server Pending CN109857540A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811220852.6A CN109857540A (en) 2018-10-19 2018-10-19 Management method, device, terminal and the computer readable storage medium of server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811220852.6A CN109857540A (en) 2018-10-19 2018-10-19 Management method, device, terminal and the computer readable storage medium of server

Publications (1)

Publication Number Publication Date
CN109857540A true CN109857540A (en) 2019-06-07

Family

ID=66889817

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811220852.6A Pending CN109857540A (en) 2018-10-19 2018-10-19 Management method, device, terminal and the computer readable storage medium of server

Country Status (1)

Country Link
CN (1) CN109857540A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460673A (en) * 2019-08-21 2019-11-15 中国工商银行股份有限公司 A kind of address of service acquisition methods, device and equipment
CN111030839A (en) * 2019-11-04 2020-04-17 厦门亿联网络技术股份有限公司 Method, device and equipment for automatically switching operation and maintenance modes and storage medium
CN111367676A (en) * 2020-03-30 2020-07-03 中国工商银行股份有限公司 Distributed task processing method and device
CN111459656A (en) * 2020-03-06 2020-07-28 北京百度网讯科技有限公司 Server management method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208047A (en) * 2014-05-29 2015-12-30 阿里巴巴集团控股有限公司 Online and off line methods of distributed system server, and server
CN105450757A (en) * 2015-12-02 2016-03-30 联动优势电子商务有限公司 Service management method and system
CN105610632A (en) * 2016-02-14 2016-05-25 华为技术有限公司 Virtual network device and related method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105208047A (en) * 2014-05-29 2015-12-30 阿里巴巴集团控股有限公司 Online and off line methods of distributed system server, and server
CN105450757A (en) * 2015-12-02 2016-03-30 联动优势电子商务有限公司 Service management method and system
CN105610632A (en) * 2016-02-14 2016-05-25 华为技术有限公司 Virtual network device and related method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110460673A (en) * 2019-08-21 2019-11-15 中国工商银行股份有限公司 A kind of address of service acquisition methods, device and equipment
CN110460673B (en) * 2019-08-21 2022-07-19 中国工商银行股份有限公司 Service address acquisition method, device and equipment
CN111030839A (en) * 2019-11-04 2020-04-17 厦门亿联网络技术股份有限公司 Method, device and equipment for automatically switching operation and maintenance modes and storage medium
CN111459656A (en) * 2020-03-06 2020-07-28 北京百度网讯科技有限公司 Server management method and device, electronic equipment and storage medium
CN111459656B (en) * 2020-03-06 2023-11-03 北京百度网讯科技有限公司 Server management method, device, electronic equipment and storage medium
CN111367676A (en) * 2020-03-30 2020-07-03 中国工商银行股份有限公司 Distributed task processing method and device

Similar Documents

Publication Publication Date Title
CN109857540A (en) Management method, device, terminal and the computer readable storage medium of server
CN109634733A (en) Task scheduling and managing method, device and operation management server
CN106787182B (en) Distribution fault processing method and system
CN106648781A (en) Remote firmware upgrading method and system for communication equipment
CN107357571A (en) Maintaining method, system and the component server of apparatus assembly program
CN103905225A (en) Service control method, service control device and service system
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
CN105099763A (en) Method and device for reminding lost connection of equipment
CN108764739A (en) Study of Intelligent Robot Control system and method, readable storage medium storing program for executing
CN114157701A (en) Task testing method, device, equipment and storage medium
CN112601201A (en) Method for automatically distributing network, routing equipment and computer readable storage medium
CN108965403A (en) O&M monitors establishment of connection method and terminal device
CN115951923B (en) Subscription event management method, display system, device and storage medium
CN107425994B (en) Method, terminal and server for realizing remote parameter management
CN110113734B (en) Bluetooth one-to-many data transmission method, system and storage medium
CN114490134A (en) Event processing method, system, device, computer equipment and storage medium
JP6569247B2 (en) Fault verification apparatus, fault verification method, verification target apparatus, wireless communication system, computer program
CN107872493A (en) A kind of information processing method, terminal and server
KR20110086411A (en) Method and system of providing assessment information in real time
CN112351074A (en) Network distribution method and device, electronic equipment and storage medium
CN111782445A (en) Configuration method and device of equipment debugging environment
KR20210145509A (en) Methods of Provide Manpower for Car Washing Service
CN116166891B (en) Event re-pushing method and related device based on real estate management system
CN108846951A (en) Automatic vending machine long-range control method, device, storage medium and system
CN111338824B (en) Gray release 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