CN108566290A - service configuration management method, system, storage medium and server - Google Patents

service configuration management method, system, storage medium and server Download PDF

Info

Publication number
CN108566290A
CN108566290A CN201810122209.3A CN201810122209A CN108566290A CN 108566290 A CN108566290 A CN 108566290A CN 201810122209 A CN201810122209 A CN 201810122209A CN 108566290 A CN108566290 A CN 108566290A
Authority
CN
China
Prior art keywords
client
service
sent
instruction
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810122209.3A
Other languages
Chinese (zh)
Other versions
CN108566290B (en
Inventor
谭智文
洪宇明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201810122209.3A priority Critical patent/CN108566290B/en
Priority to PCT/CN2018/082836 priority patent/WO2019153488A1/en
Publication of CN108566290A publication Critical patent/CN108566290A/en
Application granted granted Critical
Publication of CN108566290B publication Critical patent/CN108566290B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service
    • H04L41/5054Automatic deployment of services triggered by the service manager, e.g. service implementation by automatic configuration of network components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/508Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement
    • H04L41/5096Network service management, e.g. ensuring proper service fulfilment according to agreements based on type of value added network service under agreement wherein the managed service relates to distributed or central networked applications

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present invention provides a kind of service configuration management method, system, storage medium and servers, including:Proxy server starts finger daemon, the request management instruction that the service management instruction and client that listening center server is sent are sent;When the finger daemon described in the snoop procedure detects the service management instruction that the central server is actively sent, the service management instruction is parsed;The service of the client is managed for configuration according to the service management instruction after parsing;When the finger daemon described in the snoop procedure detects the request instructions that the client is actively sent, the request instructions are parsed;The request instructions after parsing are sent to the central server, are instructed to the proxy server with the matched service management of the request instructions so that the central server is sent.The present invention can effectively realize service discovery, reduce the cost that cluster is safeguarded in distributed system.

Description

Service configuration management method, system, storage medium and server
Technical field
The present invention relates to information monitoring field more particularly to a kind of service configuration management method, system, storage medium kimonos Business device.
Background technology
Zookeeper is distributed, open source code a distributed application program coordination service, is Google Mono- realization increased income of Chubby, is the significant components of Hadoop and Hbase.Etcd is the key assignments storage system of a High Availabitity System, is mainly used for configuration sharing and service discovery.Etcd is a young project, is developed by CoreOS and is safeguarded, is made The project expedited the emergence of is inspired by Zookeeper and doozer for one, in high speed iteration and exploitation.At present Zookeeper, etcd distributed coordinate the exploitation realization service discovery that system is required to application program by driving packet, for It does not put into for the old application program that exploitation manpower is safeguarded, access distributed coordination system will realize that service discovery is relatively tired Difficulty, and cost is higher.
Invention content
An embodiment of the present invention provides a kind of service configuration management method, system, storage medium and servers, existing to solve Have in technology, for not putting into for the old application program that exploitation manpower is safeguarded, access distributed coordination system will be realized Service discovery is more difficult, and the higher problem of cost.
The first aspect of the embodiment of the present invention provides a kind of service configuration management method, including:
Proxy server starts finger daemon, and the service management instruction and client that listening center server is sent are sent Request management instruction;
When the finger daemon described in the snoop procedure detects the service management instruction that the central server is actively sent, Parse the service management instruction;
The service of the client is managed for configuration according to the service management instruction after parsing;
When the finger daemon described in the snoop procedure detects the request instructions that the client is actively sent, parsing The request instructions;
The request instructions after parsing are sent to the central server, so that the central server is sent out It send and is instructed to the proxy server with the matched service management of the request instructions.
The second aspect of the embodiment of the present invention provides a kind of service configuration management system, and the service configuration manages system Including:Proxy server, central server and client, wherein:
The central server is instructed for sending service management to the proxy server;
The proxy server monitors the service management instruction that the central server is sent for starting finger daemon; When the finger daemon described in the snoop procedure detects the service management instruction that the central server is actively sent, described in parsing Service management instructs;Service management instruction after parsing is sent to the client;
The service management that the client is used to receive after the parsing that the proxy server is sent instructs, and according to Service in client described in service management instruction degree after the parsing is managed for configuration;
The client is additionally operable to actively send request instructions to the proxy server;
The proxy server is additionally operable to work as finger daemon described in snoop procedure and detects that the client is actively sent Request instructions when, parse the request instructions;By the request instructions after parsing be sent to it is described in Central server is instructed with the matched service management of the request instructions to the generation so that the central server is sent Manage server.
The third aspect of the embodiment of the present invention provides a kind of server, including memory and processor, the storage Device is stored with the computer program that can be run on the processor, and the processor is realized such as when executing the computer program Lower step:
Proxy server starts finger daemon, and the service management instruction and client that listening center server is sent are sent Request management instruction;
When the finger daemon described in the snoop procedure detects the service management instruction that the central server is actively sent, Parse the service management instruction;
The service of the client is managed for configuration according to the service management instruction after parsing;
When the finger daemon described in the snoop procedure detects the request instructions that the client is actively sent, parsing The request instructions;
The request instructions after parsing are sent to the central server, so that the central server is sent out It send and is instructed to the proxy server with the matched service management of the request instructions.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, the computer program to realize following steps when being executed by processor:
Proxy server starts finger daemon, and the service management instruction and client that listening center server is sent are sent Request management instruction;
When the finger daemon described in the snoop procedure detects the service management instruction that the central server is actively sent, Parse the service management instruction;
The service of the client is managed for configuration according to the service management instruction after parsing;
When the finger daemon described in the snoop procedure detects the request instructions that the client is actively sent, parsing The request instructions;
The request instructions after parsing are sent to the central server, so that the central server is sent out It send and is instructed to the proxy server with the matched service management of the request instructions.
In the embodiment of the present invention, finger daemon, the service pipe that listening center server is sent are started by proxy server The request management instruction that reason instruction and client are sent, the finger daemon described in the snoop procedure detect the center service When the service management instruction that device is actively sent, the service management instruction is parsed, is instructed according to the service management after parsing The service of the client is managed for configuration, the finger daemon described in the snoop procedure detects that the client is actively sent out When the request instructions sent, the request instructions are parsed, the request instructions after parsing are sent to described Central server, so that central server transmission is instructed with the matched service management of the request instructions to described Proxy server.This programme is by the finger daemon of proxy server simultaneously to the instruction of central server and the instruction of client It is monitored, the service configuration of client is managed and is safeguarded in time, timely respond to client and be sent to central server Request reduce the cost that cluster is safeguarded in distributed system effectively to realize service discovery.
Description of the drawings
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description be only the present invention some Embodiment for those of ordinary skill in the art without having to pay creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is the frame diagram of service configuration management system provided in an embodiment of the present invention;
Fig. 2 is the implementation flow chart of service configuration management method provided in an embodiment of the present invention;
Fig. 3 is the specific implementation flow chart of service configuration management method S203 provided in an embodiment of the present invention;
Fig. 4 is the specific implementation flow chart of service configuration management method S205 provided in an embodiment of the present invention;
Fig. 5 is the service configuration management including receiving the status information that client is sent that another embodiment of the present invention provides The implementation flow chart of method;
Fig. 6 is the structure diagram of service configuration managing device provided in an embodiment of the present invention;
Fig. 7 is the structure diagram for the service configuration managing device that another embodiment of the present invention provides;
Fig. 8 is the schematic diagram of server provided in an embodiment of the present invention.
Specific implementation mode
In order to make the invention's purpose, features and advantages of the invention more obvious and easy to understand, below in conjunction with the present invention Attached drawing in embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that disclosed below Embodiment be only a part of the embodiment of the present invention, and not all embodiment.Based on the embodiments of the present invention, this field All other embodiment that those of ordinary skill is obtained without making creative work, belongs to protection of the present invention Range.
Fig. 1 shows a kind of system architecture diagram for service configuration management system that first embodiment of the invention provides, and is described in detail It is as follows:For convenience of description, it illustrates only and the relevant part of the embodiment of the present invention.
Referring to Fig.1, service configuration management system includes central server 1, proxy server 2 and client 3, In:
The central server 1 is instructed for sending service management to the proxy server 2.Wherein, the service pipe Reason instruction includes number and the configuration file instruction of client 3 to be managed, and the configuration file instruction includes configuration file Instruction or configuration file addition instruction etc. are deleted in modification instruction, configuration file.Specifically, the service of above-mentioned central server 1 Management instruction includes the configuration parameter of service name configuration file corresponding with the service name.
For starting finger daemon, the service management for monitoring the transmission of the central server 1 refers to the proxy server 2 It enables.When the finger daemon described in the snoop procedure detects the service management instruction that the central server 1 is actively sent, parsing The service management instruction.Service management instruction after parsing is sent to the client 3.
The client 3 is used to receive the service management instruction after the parsing of the transmission of the proxy server 2, and root It is managed for configuration according to the service in client 3 described in the service management instruction degree after the parsing.
The client 3 is additionally operable to actively send request instructions to the proxy server 2.Wherein, the service Request instruction includes the number of the client 3, further includes the service name that the client 3 is asked.
The proxy server 2 is additionally operable to the finger daemon described in the snoop procedure and detects that the client 3 is actively sent out When the request instructions sent, the request instructions are parsed.The request instructions after parsing are sent to described Central server 1 is instructed with the matched service management of the request instructions to institute so that the central server 1 is sent State proxy server 2.
Specifically, distributed system environment includes central server 1 and client 3.In embodiments of the present invention, in institute Installation agent server 2 in distributed system environment is stated, by the finger daemon in the proxy server 2 to genuinely convinced in described The instruction of business device 1 and the instruction of the client 3 are monitored.Above-mentioned finger daemon is one in running background and not by appointing The process of what terminal control, multiple finger daemons execute different management roles respectively simultaneously in running background.
Further, the client 3 is additionally operable to send feedback command to above-mentioned proxy server 2, wherein the feedback Instruction includes that client 3 reloads the successful information of configuration file, and above-mentioned proxy server 2 sends the feedback command To the central server 1, so that 1 above-mentioned client 3 of the central server is notified to reload the knot of configuration in time Fruit.
Specifically, the client 3 includes but not limited to desktop computer, mobile phone, notebook and tablet computer etc. with logical The client 3 of letter ability.Multiple client 3 can be connect by wired mode or wireless mode with proxy server 2.
Optionally, Bluetooth technology, WiFi technology or 3G/4G/5G technologies etc. may be used in the service configuration management system The wireless connection between proxy server 2 and central server 1 is established, Serial technology or USB interface technology can also be used Etc. the wired connection established between proxy server 2 and central server 1.
In the embodiment of the present invention, service configuration management system includes proxy server, central server and client, is led to It crosses proxy server and starts finger daemon, the request that the service management instruction and client that listening center server is sent are sent Management instruction, the finger daemon described in the snoop procedure detect the service management instruction that the central server is actively sent When, the service management instruction is parsed, the service of the client is matched according to the service management instruction after parsing Management is set, when the finger daemon described in the snoop procedure detects the request instructions that the client is actively sent, parsing The request instructions after parsing are sent to the central server, so that in described by the request instructions Central server, which is sent, to be instructed with the matched service management of the request instructions to the proxy server.This programme passes through generation The finger daemon for managing server is simultaneously monitored the instruction of central server and the instruction of client, in time to client Service configuration is managed and safeguards, timely responds to the request that client is sent to central server, effectively to realize service It was found that reducing the cost that cluster is safeguarded in distributed system.
Fig. 2 shows the implementation processes of service configuration management method provided in an embodiment of the present invention, in the present embodiment, should The executive agent of flow is proxy server 2 shown in FIG. 1, and this method flow includes step S201 to S205.The tool of each step Body realization principle is as follows:
S201:Proxy server starts finger daemon, the service management instruction and client that listening center server is sent The request management instruction that end is sent.
Specifically, in distributed system environment, by the finger daemon in the proxy server to genuinely convinced in described The instruction of business device and the instruction of the client are monitored.The finger daemon is one in running background and not by any The process of terminal control.In distributed system environment, there are more than one clients, therefore, can in the proxy server Multiple finger daemons are established simultaneously in running background, multiple finger daemons execute different management roles respectively, to can be improved The efficiency of service discovery.In embodiments of the present invention, service management instruction include client to be managed number with Configuration file instructs, and the configuration file instruction includes configuration file modification instruction, configuration file deletion instruction or configuration text Part addition instruction etc..The request instructions include the number of client to be managed, further include the client request Service name.
S202:The finger daemon described in the snoop procedure detects that the service management that the central server is actively sent refers to When enabling, the service management instruction is parsed.
Specifically, the service management instruction detected in the proxy server parsing snoop procedure, obtains the service The number of client and configuration file instruction in management instruction.
S203:The service of the client is managed for configuration according to the service management instruction after parsing.
In embodiments of the present invention, proxy server parses the service management instruction, obtains client to be managed Number and configuration file instruction, so that the client is instructed according to the service management after the parsing to the client In service be managed for configuration.
As an embodiment of the present invention, as shown in figure 3, when service management instruction includes configuration file modification When instruction, above-mentioned S203 is specifically included:
A1:Obtain the number of client in the service management instruction.Specifically, institute in the service management instruction is obtained State the number of proxy server client to be managed.The number of the client is for identifying the client in distributed system It holds, the client in distributed system is respectively provided with and only has there are one corresponding number, and the number has uniqueness.
A2:According to the number of the client, the client is searched from the client registers information table pre-established The processing logic of current configuration file and the address of the client.Specifically, it is recorded in above-mentioned client registers information table Be information when distributed system is added in client registers, including the number of client, address and the client be current The processing logic of configuration file.
A3:According to configuration file modification instruction, the processing logic of the client current configuration file and described The address of client modifies to the current configuration file of the client, so that being detected in the client described When current configuration file is changed, configuration file is reloaded.Wherein, processing logic is embodied by function.The processing logic The function called when to be managed to configuration file.
In embodiments of the present invention, when creating distributed system environment, the finger daemon of proxy server is needed to monitor Client is registered on proxy server in advance, and log-on message includes number, address and the processing logic of client (handling function), proxy server establish client registers information according to the log-on message that the registered client that need to be monitored is sent Table, the client registers information table include the processing logic of the configuration file of the number of client, address and client. When packet configuration file modification instruction in service management instruction, institute is searched from the client registers information table pre-established The processing logic of client current configuration file and the address of the client are stated, instructed according to configuration file modification, The processing logic of the client current configuration file and the address of the client, to the current-configuration text of the client Part is modified.When the client detects that the current configuration file is changed, configuration file is reloaded, in time Service discovery is realized in service configuration management to client.
Further, the client is in real time detected the configuration file of service, judges the configuration text of the service Whether part updates.Optionally, the client is detected the configuration file of service by the period.When detection current configuration file When configuration file when being detected with previous cycle is different, configuration file is reloaded, to automatically update the client Service.
Optionally, as an embodiment of the present invention, further include after the step S203:
S2031:The finger daemon monitors the service feedback instruction that the client is sent.In embodiments of the present invention, After the service of the client is managed for configuration in service management instruction after proxy server is according to parsing, institute The service update for stating client, instructs to the proxy server at this point, the client sends service feedback, notifies the generation Manage the configuration management success that server this time services.
S2032:If the service feedback instruction that the client is sent is not heard at the appointed time, according to default The first order line, send heavily loaded configuration-direct to client, so that client carries again according to the heavily loaded configuration-direct Enter newer configuration file.Specifically, when not hearing the service feedback instruction that the client is sent in the specified time, Judge that the client loads newer configuration file and breaks down, to send heavily loaded configuration-direct to client, so that Client is loaded into more new configuration file again according to the heavily loaded configuration-direct.
Further, if the number for sending instruction to the same client of the heavy duty configuration is more than preset times, root According to preset second order line, sends server resets and instruct to the client, so that client is according to the server resets The service of restarting is instructed, to be loaded into newer configuration file again.
S204:The finger daemon described in the snoop procedure detects the request instructions that the client is actively sent When, parse the request instructions.
In embodiments of the present invention, the request instructions that finger daemon is also actively sent while listening for client.It is described Request instructions include the number of the client and the service name of the client request.
S205:The request instructions after parsing are sent to the central server, so that genuinely convinced in described Business device, which is sent, to be instructed with the matched service management of the request instructions to the proxy server.
As an embodiment of the present invention, Fig. 4 shows service configuration management method provided in an embodiment of the present invention The specific implementation flow of S205, details are as follows:
B1:The request instructions that the client is actively sent are parsed, the newer service of the client request is obtained Title.
B2:The newer service name of the client request is sent to the central server, so that the center For server according to the newer service name of the client request, transmission includes newest the matching of the corresponding service of the service name File is set to the proxy server.
In embodiments of the present invention, the proxy server parses the request instructions, by service request after parsing Number and service name of the client in instruction etc. are sent to the central server, and the central server receives To after the number and service name of the client, the newest configuration of service name is searched according to the service name File, and it is sent to the proxy server.
Further, the central server searches the current-configuration text of the client according to the number of the client Part searches the corresponding newest configuration file of the service name according to the service name, by the current-configuration found text Part is compared with newest configuration file, configuration file modification instruction is generated according to comparison result, according to the service request The number of the client in instruction and the configuration file modification instruction of generation, generate service management instruction, and will be described Service management instruction is sent to the proxy server, so that the proxy server is according to the service management of generation instruction pair The service of the client is managed for configuration.
In the embodiment of the present invention, finger daemon, the service pipe that listening center server is sent are started by proxy server The request management instruction that reason instruction and client are sent, the finger daemon described in the snoop procedure detect the center service When the service management instruction that device is actively sent, the service management instruction is parsed, is instructed according to the service management after parsing The service of the client is managed for configuration, the finger daemon described in the snoop procedure detects that the client is actively sent out When the request instructions sent, the request instructions are parsed, the request instructions after parsing are sent to described Central server, so that central server transmission is instructed with the matched service management of the request instructions to described Proxy server.This programme is by the finger daemon of proxy server simultaneously to the instruction of central server and the instruction of client It is monitored, the service configuration of client is managed and is safeguarded in time, timely respond to client and be sent to central server Request reduce the cost that cluster is safeguarded in distributed system effectively to realize service discovery.
Further, based on the service configuration management method provided in above-mentioned Fig. 2 embodiments, propose that the present invention's is another Embodiment.In embodiments of the present invention, Fig. 5 shows a kind of shape sent including receiving client provided in an embodiment of the present invention The service configuration management method of state information, details are as follows:
S501:Proxy server starts finger daemon, the service management instruction and client that listening center server is sent The request management instruction that end is sent.
S502:The finger daemon described in the snoop procedure detects that the service management that the central server is actively sent refers to When enabling, the service management instruction is parsed.
S503:The service of the client is managed for configuration according to the service management instruction after parsing.
S504:The finger daemon described in the snoop procedure detects the request instructions that the client is actively sent When, parse the request instructions.
S505:The request instructions after parsing are sent to the central server, so that genuinely convinced in described Business device, which is sent, to be instructed with the matched service management of the request instructions to the proxy server.
In the present embodiment, the specific steps of step S501 to step S505 are referring to above-described embodiment step S201 to step S205, details are not described herein.
S506:The proxy server receives the status information that the client is sent, and the status information is sent To the central server, so that the central server judges the shape of the service of the client according to the status information State, and referred to according to the service management that the state of the service of the client is generated for being managed to the service of the client It enables.
Specifically, the status information that above-mentioned client is sent includes currently available service name, further include client into The operating status etc. of journey.In embodiments of the present invention, finger daemon is by the status information feedback of client to central server, in Central server can judge the usability status of client service according to the status information of client, according to the client service Usability status, generates service management instruction corresponding with the usability status of the client service, and the service management refers to It enables and being managed for the usability status for the client service, i.e., for the different conditions of client service, center Server generates different service management instructions.Wherein, the usability status of client include but not limited to service normal operation, Service fault, service release are too low.Illustratively, the status information that client is sent includes the operating status of client process, If central server judges that the operating status of some service of the client breaks down according to the status information, described Central server sends fault diagnosis and instructs to finger daemon, is sent to client after being parsed by finger daemon, client according to Fault diagnosis instruction diagnostic simultaneously repairs failure.If the failure can not repair, client feedback repairing failure command to guard into Journey is sent to the central server after being parsed by finger daemon, so that the server timely processing.
Further, the proxy server receives the status information of the client period transmission.Specifically, the visitor Family end can periodically send the status information of service to finger daemon.
In the embodiment of the present invention, finger daemon, the service pipe that listening center server is sent are started by proxy server The request management instruction that reason instruction and client are sent, the finger daemon described in the snoop procedure detect the center service When the service management instruction that device is actively sent, the service management instruction is parsed, is instructed according to the service management after parsing The service of the client is managed for configuration, the finger daemon described in the snoop procedure detects that the client is actively sent out When the request instructions sent, the request instructions are parsed, the request instructions after parsing are sent to described Central server, so that central server transmission is instructed with the matched service management of the request instructions to described Proxy server.This programme is by the finger daemon of proxy server simultaneously to the instruction of central server and the instruction of client It is monitored, the service configuration of client is managed and is safeguarded in time, timely respond to client and be sent to central server Request reduce the cost that cluster is safeguarded in distributed system, further, agency service effectively to realize service discovery The status information that device is sent by receiving the client, and the status information is sent to the central server, so that The state that the central server judges the service of the client according to the status information is obtained, and according to the client The state of service generates the service management instruction for being managed to the service of the client, to grasp client in time The state of middle service generates corresponding service management instruction so that the service to the client carries out effective configuration management.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Corresponding to the service configuration management method described in foregoing embodiments, Fig. 6 shows clothes provided by the embodiments of the present application The structure diagram of business configuration management device illustrates only and the relevant part of the embodiment of the present application for convenience of description.
With reference to Fig. 6, which includes:First instruction monitoring unit 61, the first instruction resolution unit 62, Configuration management element 63, the second instruction resolution unit 64, the first instruction sending unit 65, wherein:
First instruction monitoring unit 61 starts finger daemon, the clothes that listening center server is sent for proxy server The request management instruction that business management instruction and client are sent;
First instruction resolution unit 62, the central server master is detected for working as finger daemon described in snoop procedure When the dynamic service management instruction sent, the service management instruction is parsed;
Configuration management element 63, for being carried out to the service of the client according to the service management instruction after parsing Configuration management;
Second instruction resolution unit 64 detects that the client is actively sent out for working as finger daemon described in snoop procedure When the request instructions sent, the request instructions are parsed;
First instruction sending unit 65, for the request instructions after parsing to be sent to the center service Device is instructed with the matched service management of the request instructions to the agency service so that the central server is sent Device.
Optionally, when the service management instruction includes configuration file modification instruction, the configuration management element 63 is wrapped It includes:
Number acquisition module, the number for obtaining client in the service management instruction;
Information searching module, for the number according to the client, from the client registers information table pre-established Search the processing logic of the client current configuration file and the address of the client;
Configuration management module, for the place according to configuration file modification instruction, the client current configuration file The address for managing logic and the client, modifies to the current configuration file of the client, so that in the visitor When family end detects that the current configuration file is changed, configuration file is reloaded.
Optionally, when the request instructions include more new demand servicing, first instruction sending unit 65 includes:
First command analysis module, the request instructions actively sent for parsing the client, obtains the visitor Ask newer service name in family end;
First data transmission blocks, for the newer service name of the client request to be sent to the center service Device, so that the central server is according to the newer service name of the client request, transmission includes the service name The latest configuration file of corresponding service is to the proxy server.
Optionally, as shown in fig. 7, optionally, the service configuration managing device further includes:
Second instruction monitoring unit 71 monitors the service feedback instruction that the client is sent for the finger daemon;
Second instruction sending unit 72, if anti-for the interior service for not hearing the client transmission at the appointed time Feedback instruction sends the instruction of heavy duty configuration to client, so that client is according to heavy duty then according to preset first order line Configuration-direct is loaded into newer configuration file again.
Optionally, the service configuration managing device further includes:
Information process unit receives the status information that the client is sent for the proxy server, and will be described Status information is sent to the central server, so that the central server judges the client according to the status information The state of the service at end, and generated according to the state of the service of the client for being managed to the service of the client Service management instruction.
In the embodiment of the present invention, finger daemon, the service pipe that listening center server is sent are started by proxy server The request management instruction that reason instruction and client are sent, the finger daemon described in the snoop procedure detect the center service When the service management instruction that device is actively sent, the service management instruction is parsed, is instructed according to the service management after parsing The service of the client is managed for configuration, the finger daemon described in the snoop procedure detects that the client is actively sent out When the request instructions sent, the request instructions are parsed, the request instructions after parsing are sent to described Central server, so that central server transmission is instructed with the matched service management of the request instructions to described Proxy server.This programme is by the finger daemon of proxy server simultaneously to the instruction of central server and the instruction of client It is monitored, the service configuration of client is managed and is safeguarded in time, timely respond to client and be sent to central server Request reduce the cost that cluster is safeguarded in distributed system effectively to realize service discovery.
Fig. 8 is the schematic diagram for the server that one embodiment of the invention provides.As shown in figure 8, the server 8 of the embodiment wraps It includes:Processor 80, memory 81 and it is stored in the computer that can be run in the memory 81 and on the processor 80 Program 82, such as service configuration management program.The processor 80 realizes above-mentioned each clothes when executing the computer program 82 Step in configuring management method embodiment of being engaged in, such as step 201 shown in Fig. 2 is to 205.Alternatively, the processor 80 executes Realize the function of each module/unit in above-mentioned each device embodiment when the computer program 82, for example, module 61 shown in Fig. 6 to 65 function.
Illustratively, the computer program 82 can be divided into one or more module/units, it is one or Multiple module/units are stored in the memory 81, and are executed by the processor 80, to complete the present invention.Described one A or multiple module/units can be the series of computation machine program instruction section that can complete specific function, which is used for Implementation procedure of the computer program 82 in the server 8 is described.
The server 8 can be the computing devices such as desktop PC, notebook, palm PC and cloud server. The server may include, but be not limited only to, processor 80, memory 81.It will be understood by those skilled in the art that Fig. 8 is only It is the example of server 8, does not constitute the restriction to server 8, may include than illustrating more or fewer components or group Close certain components or different components, for example, the server can also include input-output equipment, network access equipment, Bus etc..
The processor 80 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor Deng.
The memory 81 can be the internal storage unit of the server 8, such as the hard disk or memory of server 8. The memory 81 can also be that the plug-in type that is equipped on the External memory equipment of the server 8, such as the server 8 is hard Disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the memory 81 can also both include the internal storage unit of the server 8 or wrap Include External memory equipment.The memory 81 is used to store other programs needed for the computer program and the server And data.The memory 81 can be also used for temporarily storing the data that has exported or will export.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of SFU software functional unit.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or In use, can be stored in a computer read/write memory medium.Based on this understanding, the present invention realizes above-mentioned implementation All or part of flow in example method, can also instruct relevant hardware to complete, the meter by computer program Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium May include:Any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic of the computer program code can be carried Dish, CD, computer storage, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that described The content that computer-readable medium includes can carry out increasing appropriate according to legislation in jurisdiction and the requirement of patent practice Subtract, such as in certain jurisdictions, according to legislation and patent practice, computer-readable medium does not include electric carrier signal and electricity Believe signal.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although with reference to aforementioned reality Applying example, invention is explained in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each Technical solution recorded in embodiment is modified or equivalent replacement of some of the technical features;And these are changed Or replace, the spirit and scope for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of service configuration management method, which is characterized in that including:
Proxy server starts finger daemon, and what the service management instruction and client that listening center server is sent were sent asks Management is asked to instruct;
When the finger daemon described in the snoop procedure detects the service management instruction that the central server is actively sent, parsing The service management instruction;
The service of the client is managed for configuration according to the service management instruction after parsing;
When the finger daemon described in the snoop procedure detects the request instructions that the client is actively sent, described in parsing Request instructions;
The request instructions after parsing are sent to the central server so that the central server send with The matched service management of request instructions is instructed to the proxy server.
2. according to the method described in claim 1, it is characterized in that, when service management instruction includes configuration file modification When instruction, the service management according to after parsing instructs the step of service of the client is managed for configuration, Including:
Obtain the number of client in the service management instruction;
According to the number of the client, the client is searched from the client registers information table pre-established and is currently configured The processing logic of file and the address of the client;
According to configuration file modification instruction, the processing logic of the client current configuration file and the client Address modifies to the current configuration file of the client, so that detecting the current-configuration in the client When file is changed, configuration file is reloaded.
3. according to the method described in claim 1, it is characterized in that, when the request instructions include more new demand servicing, The request instructions by after parsing are sent to the central server so that the central server send with The step of matched service management of request instructions is instructed to the proxy server, including:
The request instructions that the client is actively sent are parsed, the newer service name of the client request is obtained;
The newer service name of the client request is sent to the central server, so that the central server root According to the newer service name of the client request, send include the corresponding service of the service name latest configuration file extremely The proxy server.
4. method according to any one of claims 1 to 3, which is characterized in that in the service according to after parsing After the step of service of the client is managed for configuration in management instruction, further include:
The finger daemon monitors the service feedback instruction that the client is sent;
If not hearing the service feedback instruction that the client is sent at the appointed time, ordered according to preset first Row sends the instruction of heavy duty configuration to client, so that client is loaded into newer configuration again according to heavily loaded configuration-direct File.
5. method according to any one of claims 1 to 3, which is characterized in that the service configuration management method further includes:
The proxy server receives the status information that the client is sent, and the status information is sent to the center Server, so that the central server judges the state of the service of the client according to the status information, and according to The state of the service of the client generates the service management instruction for being managed to the service of the client.
6. a kind of service configuration manages system, which is characterized in that the service configuration management system includes proxy server, center Server and client, wherein:
The central server is instructed for sending service management to the proxy server;
The proxy server monitors the service management instruction that the central server is sent for starting finger daemon;Work as prison When the finger daemon detects the service management instruction that the central server is actively sent during listening, the service is parsed Management instruction;Service management instruction after parsing is sent to the client;
The client is used to receive the service management instruction after the parsing that the proxy server is sent, and according to described Service in client described in service management instruction degree after parsing is managed for configuration;
The client is additionally operable to actively send request instructions to the proxy server;
The proxy server is additionally operable to work as finger daemon described in snoop procedure and detects the clothes that the client is actively sent When business request instruction, the request instructions are parsed;By the request instructions after parsing be sent to it is described in it is genuinely convinced Business device takes so that the central server sends to instruct to the agency with the matched service management of the request instructions Business device.
7. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, feature to exist In realization service configuration management method as described in any one of claim 1 to 5 when the computer program is executed by processor The step of.
8. a kind of server, including memory, processor and it is stored in the memory and can transports on the processor Capable computer program, which is characterized in that the processor realizes following steps when executing the computer program:
Proxy server starts finger daemon, and what the service management instruction and client that listening center server is sent were sent asks Management is asked to instruct;
When the finger daemon described in the snoop procedure detects the service management instruction that the central server is actively sent, parsing The service management instruction;
The service of the client is managed for configuration according to the service management instruction after parsing;
When the finger daemon described in the snoop procedure detects the request instructions that the client is actively sent, described in parsing Request instructions;
The request instructions after parsing are sent to the central server so that the central server send with The matched service management of request instructions is instructed to the proxy server.
9. server as claimed in claim 8, which is characterized in that when service management instruction includes configuration file modification When instruction, the service management according to after parsing instructs the step of service of the client is managed for configuration, Including:
Obtain the number of client in the service management instruction;
According to the number of the client, the client is searched from the client registers information table pre-established and is currently configured The processing logic of file and the address of the client;
According to configuration file modification instruction, the processing logic of the client current configuration file and the client Address modifies to the current configuration file of the client, so that detecting the current-configuration in the client When file is changed, configuration file is reloaded.
10. such as claim 8 to 9 any one of them server, which is characterized in that in the service according to after parsing After the step of service of the client is managed for configuration in management instruction, the processor executes the computer program When also realize following steps:
The finger daemon monitors the service feedback instruction that the client is sent;
If not hearing the service feedback instruction that the client is sent at the appointed time, ordered according to preset first Row sends the instruction of heavy duty configuration to client, so that client is loaded into newer configuration again according to heavily loaded configuration-direct File.
CN201810122209.3A 2018-02-07 2018-02-07 Service configuration management method, system, storage medium and server Active CN108566290B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810122209.3A CN108566290B (en) 2018-02-07 2018-02-07 Service configuration management method, system, storage medium and server
PCT/CN2018/082836 WO2019153488A1 (en) 2018-02-07 2018-04-12 Service configuration management method, apparatus, storage medium and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810122209.3A CN108566290B (en) 2018-02-07 2018-02-07 Service configuration management method, system, storage medium and server

Publications (2)

Publication Number Publication Date
CN108566290A true CN108566290A (en) 2018-09-21
CN108566290B CN108566290B (en) 2020-05-08

Family

ID=63531211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810122209.3A Active CN108566290B (en) 2018-02-07 2018-02-07 Service configuration management method, system, storage medium and server

Country Status (2)

Country Link
CN (1) CN108566290B (en)
WO (1) WO2019153488A1 (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445927A (en) * 2018-11-12 2019-03-08 郑州云海信息技术有限公司 A kind of task management method and device of storage cluster
CN109462646A (en) * 2018-11-12 2019-03-12 平安科技(深圳)有限公司 A kind of method and apparatus of exception response
CN109543133A (en) * 2018-11-29 2019-03-29 杭州涂鸦信息技术有限公司 A kind of automation dissemination method, device, system, equipment and readable storage medium storing program for executing
CN110474983A (en) * 2019-08-15 2019-11-19 上海易点时空网络有限公司 Cloud configuration method and system based on agency service
CN110519088A (en) * 2019-08-15 2019-11-29 上海易点时空网络有限公司 Configure service disaster and system
CN110535695A (en) * 2019-08-15 2019-12-03 上海易点时空网络有限公司 Configuration information corrigenda method and system
CN110543335A (en) * 2019-08-15 2019-12-06 上海易点时空网络有限公司 Application program configuration management method and system
CN110569085A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 configuration file loading method and system
CN110572442A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 Method and system for configuring file path
CN110572277A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 Machine management method and system
CN111193717A (en) * 2019-12-06 2020-05-22 上海上讯信息技术股份有限公司 FTP black and white list control method and device and electronic equipment
CN111736874A (en) * 2020-06-28 2020-10-02 深圳前海微众银行股份有限公司 Application updating method and device
CN112507267A (en) * 2020-12-03 2021-03-16 上海哔哩哔哩科技有限公司 User preference setting synchronization method, system, device and readable storage medium
CN114301777A (en) * 2021-12-29 2022-04-08 山石网科通信技术股份有限公司 Configuration data updating method, device and system and non-volatile storage medium
CN114328130A (en) * 2022-03-03 2022-04-12 深圳市明源云科技有限公司 Server monitoring method, system, equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113590331A (en) * 2021-08-05 2021-11-02 山东派盟网络科技有限公司 Task processing method, control device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123056A (en) * 2010-11-29 2011-07-13 东北大学 System and method for monitoring quality of Web services (QoWS) in end-to-end manner
CN103023857A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Method and system for remote deployment of information resources
CN103812900A (en) * 2012-11-13 2014-05-21 中国移动通信集团公司 Data synchronization method, device and system
EP2897326A1 (en) * 2014-01-21 2015-07-22 Thomson Licensing System comprising an access gateway and a wide-area-network modem device, and respective access gateway and wide-area-network modem device
US20160261472A1 (en) * 2015-03-02 2016-09-08 Facebook, Inc. Techniques to identify application foreground / background state based on network traffic

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7921152B2 (en) * 2003-07-17 2011-04-05 International Business Machines Corporation Method and system for providing user control over receipt of cookies from e-commerce applications
US8849904B2 (en) * 2012-05-17 2014-09-30 Cloudflare, Inc. Incorporating web applications into web pages at the network level
CN106302596B (en) * 2015-06-03 2019-09-20 北京京东尚科信息技术有限公司 A kind of method and apparatus of service discovery

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123056A (en) * 2010-11-29 2011-07-13 东北大学 System and method for monitoring quality of Web services (QoWS) in end-to-end manner
CN103023857A (en) * 2011-09-20 2013-04-03 腾讯科技(深圳)有限公司 Method and system for remote deployment of information resources
CN103812900A (en) * 2012-11-13 2014-05-21 中国移动通信集团公司 Data synchronization method, device and system
EP2897326A1 (en) * 2014-01-21 2015-07-22 Thomson Licensing System comprising an access gateway and a wide-area-network modem device, and respective access gateway and wide-area-network modem device
US20160261472A1 (en) * 2015-03-02 2016-09-08 Facebook, Inc. Techniques to identify application foreground / background state based on network traffic

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445927A (en) * 2018-11-12 2019-03-08 郑州云海信息技术有限公司 A kind of task management method and device of storage cluster
CN109462646A (en) * 2018-11-12 2019-03-12 平安科技(深圳)有限公司 A kind of method and apparatus of exception response
CN109445927B (en) * 2018-11-12 2021-09-17 郑州云海信息技术有限公司 Task management method and device for storage cluster
CN109543133A (en) * 2018-11-29 2019-03-29 杭州涂鸦信息技术有限公司 A kind of automation dissemination method, device, system, equipment and readable storage medium storing program for executing
CN110572442A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 Method and system for configuring file path
CN110474983A (en) * 2019-08-15 2019-11-19 上海易点时空网络有限公司 Cloud configuration method and system based on agency service
CN110543335A (en) * 2019-08-15 2019-12-06 上海易点时空网络有限公司 Application program configuration management method and system
CN110569085A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 configuration file loading method and system
CN110519088A (en) * 2019-08-15 2019-11-29 上海易点时空网络有限公司 Configure service disaster and system
CN110572277A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 Machine management method and system
CN110535695A (en) * 2019-08-15 2019-12-03 上海易点时空网络有限公司 Configuration information corrigenda method and system
CN111193717A (en) * 2019-12-06 2020-05-22 上海上讯信息技术股份有限公司 FTP black and white list control method and device and electronic equipment
CN111736874A (en) * 2020-06-28 2020-10-02 深圳前海微众银行股份有限公司 Application updating method and device
CN112507267A (en) * 2020-12-03 2021-03-16 上海哔哩哔哩科技有限公司 User preference setting synchronization method, system, device and readable storage medium
CN112507267B (en) * 2020-12-03 2023-01-20 上海哔哩哔哩科技有限公司 User preference setting synchronization method, system, device and readable storage medium
CN114301777A (en) * 2021-12-29 2022-04-08 山石网科通信技术股份有限公司 Configuration data updating method, device and system and non-volatile storage medium
CN114328130A (en) * 2022-03-03 2022-04-12 深圳市明源云科技有限公司 Server monitoring method, system, equipment and computer readable storage medium
CN114328130B (en) * 2022-03-03 2022-08-12 深圳市明源云科技有限公司 Server monitoring method, system, equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2019153488A1 (en) 2019-08-15
CN108566290B (en) 2020-05-08

Similar Documents

Publication Publication Date Title
CN108566290A (en) service configuration management method, system, storage medium and server
CN108536761B (en) Report data query method and server
CN105357038B (en) Monitor the method and system of cluster virtual machine
US9288156B2 (en) Method and apparatus for supporting scalable multi-modal dialog application sessions
WO2017162032A1 (en) Method and device for executing data recovery operation
US12019634B1 (en) Reassigning a processing node from downloading to searching a data group
CN110740145A (en) Message consumption method, device, storage medium and electronic equipment
CN111897643B (en) Thread pool configuration system, method, device and storage medium
CN112737800A (en) Service node fault positioning method, call chain generation method and server
WO2024037629A1 (en) Data integration method and apparatus for blockchain, and computer device and storage medium
CN107168813A (en) Task processing method and system
CN113760638A (en) Log service method and device based on kubernets cluster
CN112100239A (en) Portrait generation method and apparatus for vehicle detection device, server and readable storage medium
CN111831503B (en) Monitoring method based on monitoring agent and monitoring agent device
CN113282850B (en) Resource tag management method, device, electronic equipment, system and storage medium
CN104407808B (en) The method and apparatus for writing data
CN108696559B (en) Stream processing method and device
CN113220342A (en) Centralized configuration method and device, electronic equipment and storage medium
CN111162938A (en) Data processing system and method
CN111092774A (en) Configuration method and equipment of acquisition gateway
CN108156201B (en) Method and device for uniformly managing configuration data of application system
CN108363607A (en) A kind of virtual link power interruption recovering method of cloud platform virtual machine
CN108874625B (en) Information processing method and device, electronic equipment and storage medium
CN114238404A (en) Data query method and device, storage medium and equipment
CN109918213A (en) A kind of message treatment method, device and server

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