patents.google.com

CN108566290B - Service configuration management method, system, storage medium and server - Google Patents

  • ️Fri May 08 2020

CN108566290B - 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
CN108566290B
CN108566290B CN201810122209.3A CN201810122209A CN108566290B CN 108566290 B CN108566290 B CN 108566290B CN 201810122209 A CN201810122209 A CN 201810122209A CN 108566290 B CN108566290 B CN 108566290B Authority
CN
China
Prior art keywords
service
client
instruction
central server
management
Prior art date
2018-02-07
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.)
Active
Application number
CN201810122209.3A
Other languages
Chinese (zh)
Other versions
CN108566290A (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.)
2018-02-07
Filing date
2018-02-07
Publication date
2020-05-08
2018-02-07 Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
2018-02-07 Priority to CN201810122209.3A priority Critical patent/CN108566290B/en
2018-04-12 Priority to PCT/CN2018/082836 priority patent/WO2019153488A1/en
2018-09-21 Publication of CN108566290A publication Critical patent/CN108566290A/en
2020-05-08 Application granted granted Critical
2020-05-08 Publication of CN108566290B publication Critical patent/CN108566290B/en
Status Active legal-status Critical Current
2038-02-07 Anticipated expiration legal-status Critical

Links

Images

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/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/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/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)
  • Debugging And Monitoring (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a service configuration management method, a system, a storage medium and a server, comprising the following steps: the proxy server starts a daemon process and monitors a service management instruction sent by the central server and a request management instruction sent by the client; when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction; carrying out configuration management on the service of the client according to the analyzed service management instruction; when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction; and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server. The invention can effectively realize service discovery and reduce the cluster maintenance cost in the distributed system.

Description

Service configuration management method, system, storage medium and server

Technical Field

The present invention relates to the field of information monitoring, and in particular, to a service configuration management method, system, storage medium, and server.

Background

Zookeeper is a distributed, open-source distributed application coordination service, is an open-source implementation of Chubby of Google, and is an important component of Hadoop and Hbase. etcd is a highly available key-value storage system, mainly used for shared configuration and service discovery. etcd is a young project developed and maintained by CoreOS, and is being iterated and developed at high speed as a project inspired by Zookeeper and doozer. At present, distributed coordination systems such as zookeeper and etcd need application programs to realize service discovery through development of a driver package, and for old application programs which are not invested in development and manpower maintenance, it is difficult to access the distributed coordination systems to realize service discovery, and the cost is high.

Disclosure of Invention

Embodiments of the present invention provide a service configuration management method, a service configuration management system, a storage medium, and a server, so as to solve the problems in the prior art that it is difficult to access a distributed coordination system to discover a service and the cost is high for an old application program that is not already in development and maintenance.

A first aspect of an embodiment of the present invention provides a service configuration management method, including:

the proxy server starts a daemon process and monitors a service management instruction sent by the central server and a request management instruction sent by the client;

when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction;

carrying out configuration management on the service of the client according to the analyzed service management instruction;

when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction;

and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

A second aspect of an embodiment of the present invention provides a service configuration management system, including: proxy server, central server and client, wherein:

the central server is used for sending a service management instruction to the proxy server;

the proxy server is used for starting a daemon process and monitoring a service management instruction sent by the central server; when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction; sending the analyzed service management instruction to the client;

the client is used for receiving the analyzed service management instruction sent by the proxy server and carrying out configuration management on the service in the client according to the analyzed service management instruction;

the client is also used for actively sending a service request instruction to the proxy server;

the proxy server is also used for analyzing the service request instruction when the daemon process detects the service request instruction actively sent by the client in the monitoring process; and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

A third aspect of the embodiments of the present invention provides a server, including a memory and a processor, where the memory stores a computer program operable on the processor, and the processor executes the computer program to implement the following steps:

the proxy server starts a daemon process and monitors a service management instruction sent by the central server and a request management instruction sent by the client;

when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction;

carrying out configuration management on the service of the client according to the analyzed service management instruction;

when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction;

and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

A fourth aspect of embodiments of the present invention provides a computer-readable storage medium storing a computer program which, when executed by a processor, implements the steps of:

the proxy server starts a daemon process and monitors a service management instruction sent by the central server and a request management instruction sent by the client;

when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction;

carrying out configuration management on the service of the client according to the analyzed service management instruction;

when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction;

and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

In the embodiment of the invention, a daemon process is started through a proxy server, a service management instruction sent by a central server and a request management instruction sent by a client are monitored, when the daemon process detects the service management instruction actively sent by the central server in the monitoring process, the service management instruction is analyzed, the service of the client is configured and managed according to the analyzed service management instruction, when the daemon process detects the service request instruction actively sent by the client in the monitoring process, the service request instruction is analyzed, and the analyzed service request instruction is sent to the central server, so that the central server sends the service management instruction matched with the service request instruction to the proxy server. According to the scheme, the daemon process of the proxy server is used for monitoring the instruction of the central server and the instruction of the client at the same time, managing and maintaining the service configuration of the client in time, and responding the request sent by the client to the central server in time, so that service discovery is effectively achieved, and the cost of cluster maintenance in a distributed system is reduced.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.

FIG. 1 is a block diagram of a service configuration management system provided by an embodiment of the present invention;

fig. 2 is a flowchart of an implementation of a service configuration management method according to an embodiment of the present invention;

fig. 3 is a flowchart of a specific implementation of the service configuration management method S203 according to an embodiment of the present invention;

fig. 4 is a flowchart of a specific implementation of the service configuration management method S205 according to an embodiment of the present invention;

fig. 5 is a flowchart of an implementation of a service configuration management method according to another embodiment of the present invention, including receiving status information sent by a client;

fig. 6 is a block diagram of a service configuration management apparatus according to an embodiment of the present invention;

fig. 7 is a block diagram of a service configuration management apparatus according to another embodiment of the present invention;

fig. 8 is a schematic diagram of a server provided in an embodiment of the present invention.

Detailed Description

In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Fig. 1 is a system architecture diagram illustrating a service configuration management system according to a first embodiment of the present invention, which is detailed as follows: for convenience of explanation, only portions related to the embodiments of the present invention are shown.

Referring to fig. 1, the service configuration management system includes a central server 1, a

proxy server

2, and a

client

3, wherein:

the central server 1 is used for sending a service management instruction to the

proxy server

2. The service management instruction includes a number of the

client

3 to be managed and a configuration file instruction, and the configuration file instruction includes a configuration file modification instruction, a configuration file deletion instruction, a configuration file addition instruction, and the like. Specifically, the service management instruction of the central server 1 includes a configuration parameter of a configuration file whose service name corresponds to the service name.

The

proxy server

2 is used for starting a daemon process and monitoring a service management instruction sent by the central server 1. And when the daemon process detects the service management instruction actively sent by the central server 1 in the monitoring process, analyzing the service management instruction. And sending the analyzed service management instruction to the

client

3.

The

client

3 is configured to receive the analyzed service management instruction sent by the

proxy server

2, and perform configuration management on the service in the

client

3 according to the analyzed service management instruction.

The

client

3 is also configured to actively send a service request command to the

proxy server

2. Wherein, the service request instruction includes the number of the

client

3 and also includes the service name requested by the

client

3.

The

proxy server

2 is further configured to, when the daemon detects a service request instruction actively sent by the

client

3 in a monitoring process, parse the service request instruction. And sending the analyzed service request instruction to the central server 1, so that the central server 1 sends a service management instruction matched with the service request instruction to the

proxy server

2.

Specifically, the distributed system environment includes a center server 1 and a

client

3. In the embodiment of the present invention, the

proxy server

2 is installed in the distributed system environment, and the daemon process in the

proxy server

2 monitors the instruction of the central server 1 and the instruction of the

client

3. The daemon process is a process which runs in the background and is not controlled by any terminal, and a plurality of daemon processes run in the background at the same time and respectively execute different management tasks.

Further, the

client

3 is further configured to send a feedback instruction to the

proxy server

2, where the feedback instruction includes information that the

client

3 succeeds in reloading the configuration file, and the

proxy server

2 sends the feedback instruction to the central server 1, so as to timely notify the central server 1 of a result that the

client

3 has reloaded the configuration file.

Specifically, the

client

3 includes, but is not limited to, a desktop computer, a mobile phone, a notebook computer, a tablet computer, and the like, which have communication capabilities. A plurality of

clients

3 may be connected to the

proxy server

2 by a wired manner or a wireless manner.

Optionally, the service configuration management system may establish a wireless connection between the

proxy server

2 and the central server 1 by using a bluetooth technology, a WIFI technology, a 3G/4G/5G technology, or the like, and may also establish a wired connection between the

proxy server

2 and the central server 1 by using a serial port technology, a USB interface technology, or the like.

In the embodiment of the invention, the service configuration management system comprises a proxy server, a central server and a client, starting a daemon process through the proxy server, monitoring a service management instruction sent by the central server and a request management instruction sent by the client, when the daemon process detects the service management instruction actively sent by the central server in the monitoring process, the daemon process analyzes the service management instruction, configuring and managing the service of the client according to the analyzed service management instruction, when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction, sending the analyzed service request instruction to the central server, so that the central server sends the service management instruction matched with the service request instruction to the proxy server. According to the scheme, the daemon process of the proxy server is used for monitoring the instruction of the central server and the instruction of the client at the same time, managing and maintaining the service configuration of the client in time, and responding the request sent by the client to the central server in time, so that service discovery is effectively achieved, and the cost of cluster maintenance in a distributed system is reduced.

Fig. 2 shows an implementation flow of the service configuration management method provided in an embodiment of the present invention, in this embodiment, an execution subject of the flow is the

proxy server

2 shown in fig. 1, and the method flow includes steps S201 to S205. The specific realization principle of each step is as follows:

s201: the agent server starts a daemon process and monitors a service management instruction sent by the central server and a request management instruction sent by the client.

Specifically, in a distributed system environment, the instructions of the central server and the instructions of the client are monitored through a daemon process in the proxy server. The daemon is a process that runs in the background and is not controlled by any terminal. In a distributed system environment, more than one client exists, so that a plurality of daemons can be established in the proxy server and run in the background at the same time, and the plurality of daemons execute different management tasks respectively, thereby improving the service discovery efficiency. In the embodiment of the present invention, the service management instruction includes a number of a client to be managed and a configuration file instruction, and the configuration file instruction includes a configuration file modification instruction, a configuration file deletion instruction, a configuration file addition instruction, or the like. The service request instruction comprises the serial number of the client to be managed and the service name requested by the client.

S202: and when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction.

Specifically, the proxy server analyzes the service management instruction detected in the monitoring process, and acquires the number of the client and the configuration file instruction in the service management instruction.

S203: and carrying out configuration management on the service of the client according to the analyzed service management instruction.

In the embodiment of the invention, the proxy server analyzes the service management instruction, and acquires the number of the client to be managed and a configuration file instruction, so that the client performs configuration management on the service in the client according to the analyzed service management instruction.

As an embodiment of the present invention, as shown in fig. 3, when the service management instruction includes a configuration file modification instruction, S203 specifically includes:

a1: and acquiring the serial number of the client in the service management instruction. Specifically, the serial number of the client to be managed by the proxy server in the service management instruction is obtained. The serial numbers of the clients are used for identifying the clients in the distributed system, the clients in the distributed system respectively have one corresponding serial number, and the serial numbers are unique.

A2: and searching the processing logic of the current configuration file of the client and the address of the client from a pre-established client registration information table according to the serial number of the client. Specifically, the information recorded in the client registration information table is information when the client registers to join the distributed system, and includes a number and an address of the client, and a processing logic of a current configuration file of the client.

A3: and modifying the current configuration file of the client according to the configuration file modification instruction, the processing logic of the current configuration file of the client and the address of the client, so that the configuration file is reloaded when the client detects that the current configuration file is modified. Wherein the processing logic is embodied by a function. The processing logic is a function called when managing the configuration file.

In the embodiment of the invention, when a distributed system environment is created, a client which needs to be monitored by a daemon process of a proxy server registers on the proxy server in advance, registration information comprises the number, address and processing logic (namely processing function) of the client, the proxy server establishes a client registration information table according to the registration information sent by the registered client which needs to be monitored, and the client registration information table comprises the number and address of the client and the processing logic of a configuration file of the client. When the service management instruction comprises a configuration file modification instruction, searching the processing logic of the current configuration file of the client and the address of the client from a pre-established client registration information table, and modifying the current configuration file of the client according to the configuration file modification instruction, the processing logic of the current configuration file of the client and the address of the client. And when the client detects that the current configuration file is modified, reloading the configuration file, thereby timely managing the service configuration of the client and realizing service discovery.

Further, the client detects the configuration file of the service in real time and judges whether the configuration file of the service is updated or not. Optionally, the client detects the configuration file of the service periodically. And when the current configuration file is different from the configuration file detected in the previous period, reloading the configuration file, thereby automatically updating the service of the client.

Optionally, as an embodiment of the present invention, after the step S203, the method further includes:

s2031: and the daemon monitors a service feedback instruction sent by the client. In the embodiment of the present invention, after the proxy server performs configuration management on the service of the client according to the analyzed service management instruction, the service of the client is updated, and at this time, the client sends a service feedback instruction to the proxy server to notify the proxy server that the configuration management of the service is successful this time.

S2032: if the service feedback instruction sent by the client is not monitored in the appointed time, sending a reloading configuration instruction to the client according to a preset first command line, so that the client reloads the updated configuration file according to the reloading configuration instruction. Specifically, when a service feedback instruction sent by the client is not monitored within a specified time, it is determined that the configuration file loaded and updated by the client fails, so that a reloading configuration instruction is sent to the client, and the client reloads the updated configuration file according to the reloading configuration instruction.

Further, if the number of times of sending the reload configuration instruction to the same client exceeds a preset number of times, sending a service restart instruction to the client according to a preset second command line, so that the client restarts the service according to the service restart instruction, and reloading the updated configuration file.

S204: and when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction.

In the embodiment of the invention, the daemon process also monitors the service request instruction actively sent by the client. The service request instruction comprises the number of the client and the service name requested by the client.

S205: and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

As an embodiment of the present invention, fig. 4 shows a specific implementation flow of the service configuration management method S205 provided by the embodiment of the present invention, which is detailed as follows:

b1: and analyzing a service request instruction actively sent by the client to obtain a service name requested to be updated by the client.

B2: and sending the service name requested to be updated by the client to the central server, so that the central server sends the latest configuration file of the service corresponding to the service name to the proxy server according to the service name requested to be updated by the client.

In the embodiment of the present invention, the proxy server parses the service request instruction, sends the number of the client, the service name, and the like in the parsed service request instruction to the center server, and after receiving the number of the client and the service name, the center server searches for the latest configuration file of the service name according to the service name, and sends the latest configuration file to the proxy server.

Further, the central server searches a current configuration file of the client according to the serial number of the client, searches a latest configuration file corresponding to the service name according to the service name, compares the searched current configuration file with the latest configuration file, generates a configuration file modification instruction according to a comparison result, generates a service management instruction according to the serial number of the client in the service request instruction and the generated configuration file modification instruction, and sends the service management instruction to the proxy server, so that the proxy server performs configuration management on the service of the client according to the generated service management instruction.

In the embodiment of the invention, a daemon process is started through a proxy server, a service management instruction sent by a central server and a request management instruction sent by a client are monitored, when the daemon process detects the service management instruction actively sent by the central server in the monitoring process, the service management instruction is analyzed, the service of the client is configured and managed according to the analyzed service management instruction, when the daemon process detects the service request instruction actively sent by the client in the monitoring process, the service request instruction is analyzed, and the analyzed service request instruction is sent to the central server, so that the central server sends the service management instruction matched with the service request instruction to the proxy server. According to the scheme, the daemon process of the proxy server is used for monitoring the instruction of the central server and the instruction of the client at the same time, managing and maintaining the service configuration of the client in time, and responding the request sent by the client to the central server in time, so that service discovery is effectively achieved, and the cost of cluster maintenance in a distributed system is reduced.

Further, another embodiment of the present invention is proposed based on the service configuration management method provided in the embodiment of fig. 2. In this embodiment of the present invention, fig. 5 shows a service configuration management method including receiving status information sent by a client according to an embodiment of the present invention, which is detailed as follows:

s501: the agent server starts a daemon process and monitors a service management instruction sent by the central server and a request management instruction sent by the client.

S502: and when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction.

S503: and carrying out configuration management on the service of the client according to the analyzed service management instruction.

S504: and when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction.

S505: and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

In this embodiment, the specific steps from step S501 to step S505 refer to step S201 to step S205 in the above embodiment, which is not described herein again.

S506: the proxy server receives the state information sent by the client and sends the state information to the central server, so that the central server judges the service state of the client according to the state information and generates a service management instruction for managing the service of the client according to the service state of the client.

Specifically, the state information sent by the client includes a currently available service name, and further includes an operating state of the client process and the like. In the embodiment of the invention, the daemon process feeds back the state information of the client to the central server, the central server can judge the availability state of the client service according to the state information of the client, and generates the service management instruction corresponding to the availability state of the client service according to the availability state of the client service, wherein the service management instruction is used for managing the availability state of the client service, namely the central server generates different service management instructions for different states of the client service. The availability status of the client includes, but is not limited to, normal operation of the service, failure of the service, and too low version of the service. Illustratively, the state information sent by the client includes an operating state of a client process, if the central server judges that the operating state of a certain service of the client has a fault according to the state information, the central server sends a fault diagnosis instruction to a daemon process, the daemon process analyzes the fault diagnosis instruction and sends the fault diagnosis instruction to the client, and the client diagnoses and repairs the fault according to the fault diagnosis instruction. If the fault cannot be repaired, the client feeds back a repair failure instruction to the daemon process, and the daemon process analyzes the repair failure instruction and sends the repair failure instruction to the central server so that the server can process the repair failure instruction in time.

Further, the proxy server receives the state information periodically sent by the client. Specifically, the client may periodically send the state information of the service to the daemon process.

In the embodiment of the invention, a daemon process is started through a proxy server, a service management instruction sent by a central server and a request management instruction sent by a client are monitored, when the daemon process detects the service management instruction actively sent by the central server in the monitoring process, the service management instruction is analyzed, the service of the client is configured and managed according to the analyzed service management instruction, when the daemon process detects the service request instruction actively sent by the client in the monitoring process, the service request instruction is analyzed, and the analyzed service request instruction is sent to the central server, so that the central server sends the service management instruction matched with the service request instruction to the proxy server. The proposal monitors the instruction of the central server and the instruction of the client simultaneously through the daemon process of the proxy server, manages and maintains the service configuration of the client in time, responds the request sent by the client to the central server in time, so as to effectively realize service discovery and reduce the cost of cluster maintenance in the distributed system, furthermore, the proxy server receives the state information sent by the client and sends the state information to the central server, so that the central server judges the service state of the client according to the state information, and generates a service management instruction for managing the service of the client according to the state of the service of the client, therefore, the state of the service in the client is grasped in time, and a corresponding service management instruction is generated so as to effectively configure and manage the service of the client.

It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

Fig. 6 shows a block diagram of a service configuration management device provided in the embodiment of the present application, which corresponds to the service configuration management method described in the above embodiment, and only shows the relevant parts in the embodiment of the present application for convenience of description.

Referring to fig. 6, the service configuration management apparatus includes: a first

instruction monitoring unit

61, a first

instruction parsing unit

62, a

configuration management unit

63, a second

instruction parsing unit

64, and a first

instruction sending unit

65, wherein:

a first

instruction monitoring unit

61, configured to start a daemon process by the proxy server, and monitor a service management instruction sent by the central server and a request management instruction sent by the client;

a first

instruction parsing unit

62, configured to parse a service management instruction sent by the central server when the daemon detects the service management instruction in the monitoring process;

a

configuration management unit

63, configured to perform configuration management on the service of the client according to the analyzed service management instruction;

a second

instruction parsing unit

64, configured to parse the service request instruction when the daemon detects the service request instruction actively sent by the client in the monitoring process;

a first

instruction sending unit

65, configured to send the parsed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

Optionally, when the service management instruction includes a configuration file modification instruction, the

configuration management unit

63 includes:

a number obtaining module, configured to obtain a number of the client in the service management instruction;

the information searching module is used for searching the processing logic of the current configuration file of the client and the address of the client from a pre-established client registration information table according to the serial number of the client;

and the configuration management module is used for modifying the current configuration file of the client according to the configuration file modification instruction, the processing logic of the current configuration file of the client and the address of the client, so that the configuration file is reloaded when the client detects that the current configuration file is modified.

Optionally, when the service request instruction includes an update service, the first

instruction sending unit

65 includes:

the first instruction analysis module is used for analyzing a service request instruction actively sent by the client to acquire a service name requested to be updated by the client;

the first data sending module is used for sending the service name which is requested to be updated by the client to the central server, so that the central server sends the latest configuration file of the service corresponding to the service name to the proxy server according to the service name which is requested to be updated by the client.

Optionally, as shown in fig. 7, optionally, the service configuration management apparatus further includes:

a second

instruction monitoring unit

71, configured to monitor, by the daemon process, a service feedback instruction sent by the client;

a second

instruction sending unit

72, configured to send an instruction for reloading configuration to the client according to a preset first command line if the service feedback instruction sent by the client is not monitored within a specified time, so that the client reloads the updated configuration file according to the reloading configuration instruction.

Optionally, the service configuration management apparatus further includes:

and the information processing unit is used for receiving the state information sent by the client by the proxy server and sending the state information to the central server so that the central server judges the state of the service of the client according to the state information and generates a service management instruction for managing the service of the client according to the state of the service of the client.

In the embodiment of the invention, a daemon process is started through a proxy server, a service management instruction sent by a central server and a request management instruction sent by a client are monitored, when the daemon process detects the service management instruction actively sent by the central server in the monitoring process, the service management instruction is analyzed, the service of the client is configured and managed according to the analyzed service management instruction, when the daemon process detects the service request instruction actively sent by the client in the monitoring process, the service request instruction is analyzed, and the analyzed service request instruction is sent to the central server, so that the central server sends the service management instruction matched with the service request instruction to the proxy server. According to the scheme, the daemon process of the proxy server is used for monitoring the instruction of the central server and the instruction of the client at the same time, managing and maintaining the service configuration of the client in time, and responding the request sent by the client to the central server in time, so that service discovery is effectively achieved, and the cost of cluster maintenance in a distributed system is reduced.

Fig. 8 is a schematic diagram of a server according to an embodiment of the present invention. As shown in fig. 8, the

server

8 of this embodiment includes: a

processor

80, a

memory

81 and a

computer program

82, such as a service configuration management program, stored in said

memory

81 and operable on said

processor

80. The

processor

80, when executing the

computer program

82, implements the steps in the various embodiments of the service configuration management method described above, such as the steps 201 to 205 shown in fig. 2. Alternatively, the

processor

80, when executing the

computer program

82, implements the functions of the modules/units in the above-described device embodiments, such as the functions of the

units

61 to 65 shown in fig. 6.

Illustratively, the

computer program

82 may be partitioned into one or more modules/units that are stored in the

memory

81 and executed by the

processor

80 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the

computer program

82 in the

server

8.

The

server

8 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The server may include, but is not limited to, a

processor

80, a

memory

81. Those skilled in the art will appreciate that fig. 8 is merely an example of a

server

8 and does not constitute a limitation of

server

8, and may include more or fewer components than shown, or some components in combination, or different components, e.g., the server may also include input-output devices, network access devices, buses, etc.

The

Processor

80 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The

storage

81 may be an internal storage unit of the

server

8, such as a hard disk or a memory of the

server

8. The

memory

81 may also be an external storage device of the

server

8, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the

server

8. Further, the

memory

81 may also include both an internal storage unit of the

server

8 and an external storage device. The

memory

81 is used for storing the computer program and other programs and data required by the server. The

memory

81 may also be used to temporarily store data that has been output or is to be output.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.

The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A method for service configuration management, comprising:

the method comprises the steps that a proxy server starts daemon processes and monitors service management instructions sent by a central server and service request instructions sent by a client, wherein the proxy server establishes a plurality of daemon processes and runs in a background at the same time, the service management instructions comprise serial numbers of the clients to be managed and configuration file instructions, and the service request instructions comprise serial numbers of the clients and service names requested by the clients;

when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction;

carrying out configuration management on the service of the client according to the analyzed service management instruction;

when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction;

and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

2. The method according to claim 1, wherein when the service management instruction includes a configuration file modification instruction, the step of performing configuration management on the service of the client according to the parsed service management instruction includes:

acquiring the serial number of the client in the service management instruction;

searching the processing logic of the current configuration file of the client and the address of the client from a pre-established client registration information table according to the serial number of the client;

and modifying the current configuration file of the client according to the configuration file modification instruction, the processing logic of the current configuration file of the client and the address of the client, so that the configuration file is reloaded when the client detects that the current configuration file is modified.

3. The method according to claim 1, wherein when the service request command includes an update service, the step of sending the parsed service request command to the central server so that the central server sends a service management command matching the service request command to the proxy server includes:

analyzing a service request instruction actively sent by the client to acquire a service name requested to be updated by the client;

and sending the service name requested to be updated by the client to the central server, so that the central server sends the latest configuration file of the service corresponding to the service name to the proxy server according to the service name requested to be updated by the client.

4. The method according to any one of claims 1 to 3, wherein after the step of performing configuration management on the service of the client according to the parsed service management instruction, the method further comprises:

the daemon process monitors a service feedback instruction sent by the client;

if the service feedback instruction sent by the client is not monitored in the specified time, sending a reloading configuration instruction to the client according to a preset first command line, so that the client reloads the updated configuration file according to the reloading configuration instruction.

5. The method according to any of claims 1 to 3, wherein the service configuration management method further comprises:

the proxy server receives the state information sent by the client and sends the state information to the central server, so that the central server judges the service state of the client according to the state information and generates a service management instruction for managing the service of the client according to the service state of the client.

6. A service configuration management system, comprising a proxy server, a central server, and a client, wherein:

the central server is used for sending a service management instruction to the proxy server;

the proxy server is used for starting a daemon process and monitoring a service management instruction sent by the central server; when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction; sending the analyzed service management instruction to the client, wherein a plurality of daemon processes are established in the proxy server and run in a background at the same time, and the service management instruction comprises a serial number and a configuration file instruction of the client to be managed;

the client is used for receiving the analyzed service management instruction sent by the proxy server and carrying out configuration management on the service in the client according to the analyzed service management instruction;

the client is also used for actively sending a service request instruction to the proxy server;

the proxy server is also used for analyzing the service request instruction when the daemon process detects the service request instruction actively sent by the client in the monitoring process; and sending the analyzed service request instruction to the central server so that the central server sends a service management instruction matched with the service request instruction to the proxy server, wherein the service request instruction comprises the serial number of the client and the service name requested by the client.

7. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the service configuration management method according to any one of claims 1 to 5.

8. A server comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:

the method comprises the steps that a proxy server starts daemon processes and monitors service management instructions sent by a central server and service request instructions sent by a client, wherein the proxy server establishes a plurality of daemon processes and runs in a background at the same time, the service management instructions comprise serial numbers of the clients to be managed and configuration file instructions, and the service request instructions comprise serial numbers of the clients and service names requested by the clients;

when the daemon process detects a service management instruction actively sent by the central server in the monitoring process, analyzing the service management instruction;

carrying out configuration management on the service of the client according to the analyzed service management instruction;

when the daemon process detects a service request instruction actively sent by the client in the monitoring process, analyzing the service request instruction;

and sending the analyzed service request instruction to the central server, so that the central server sends a service management instruction matched with the service request instruction to the proxy server.

9. The server according to claim 8, wherein when the service management instruction includes a configuration file modification instruction, the step of performing configuration management on the service of the client according to the parsed service management instruction includes:

acquiring the serial number of the client in the service management instruction;

searching the processing logic of the current configuration file of the client and the address of the client from a pre-established client registration information table according to the serial number of the client;

and modifying the current configuration file of the client according to the configuration file modification instruction, the processing logic of the current configuration file of the client and the address of the client, so that the configuration file is reloaded when the client detects that the current configuration file is modified.

10. The server according to any one of claims 8 to 9, wherein after the step of performing configuration management on the service of the client according to the parsed service management instruction, the processor executes the computer program to further perform the following steps:

the daemon process monitors a service feedback instruction sent by the client;

if the service feedback instruction sent by the client is not monitored in the specified time, sending a reloading configuration instruction to the client according to a preset first command line, so that the client reloads the updated configuration file according to the reloading configuration instruction.

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 CN108566290A (en) 2018-09-21
CN108566290B true 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)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445927B (en) * 2018-11-12 2021-09-17 郑州云海信息技术有限公司 Task management method and device for storage cluster
CN109462646B (en) * 2018-11-12 2021-11-19 平安科技(深圳)有限公司 Abnormal response method and equipment
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
CN110569085A (en) * 2019-08-15 2019-12-13 上海易点时空网络有限公司 configuration file loading method and system
CN110474983A (en) * 2019-08-15 2019-11-19 上海易点时空网络有限公司 Cloud configuration method and system based on agency service
CN110535695A (en) * 2019-08-15 2019-12-03 上海易点时空网络有限公司 Configuration information corrigenda 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
CN110543335A (en) * 2019-08-15 2019-12-06 上海易点时空网络有限公司 Application program configuration management method and system
CN110519088A (en) * 2019-08-15 2019-11-29 上海易点时空网络有限公司 Configure service disaster 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 update method and device
CN112507267B (en) * 2020-12-03 2023-01-20 上海哔哩哔哩科技有限公司 User preference setting synchronization method, system, device and readable storage medium
CN113590331A (en) * 2021-08-05 2021-11-02 山东派盟网络科技有限公司 Task processing method, control device and storage medium
CN114301777A (en) * 2021-12-29 2022-04-08 山石网科通信技术股份有限公司 Configuration data updating method, device and system and non-volatile storage medium
CN114328130B (en) * 2022-03-03 2022-08-12 深圳市明源云科技有限公司 Server monitoring method, system, equipment and computer readable storage medium

Citations (3)

* 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
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

Family Cites Families (5)

* 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
CN103812900A (en) * 2012-11-13 2014-05-21 中国移动通信集团公司 Data synchronization method, device and system
US9960977B2 (en) * 2015-03-02 2018-05-01 Facebook, Inc. Techniques to identify application foreground / background state based on network traffic
CN106302596B (en) * 2015-06-03 2019-09-20 北京京东尚科信息技术有限公司 A kind of method and apparatus of service discovery

Patent Citations (3)

* 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
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

Also Published As

Publication number Publication date
WO2019153488A1 (en) 2019-08-15
CN108566290A (en) 2018-09-21

Similar Documents

Publication Publication Date Title
CN108566290B (en) 2020-05-08 Service configuration management method, system, storage medium and server
CN110750592B (en) 2023-10-20 Data synchronization method, device and terminal equipment
US20140006225A1 (en) 2014-01-02 Automatic device inventory management for different types of devices
US10397281B2 (en) 2019-08-27 Method, system and server for self-healing of electronic apparatus
CN103152327B (en) 2015-08-05 A kind of method, client and system configuring compression/de-compression plug-in unit
WO2019051948A1 (en) 2019-03-21 Method, apparatus, server, and storage medium for processing monitoring data
US10516734B2 (en) 2019-12-24 Computer servers for datacenter management
CN110651256B (en) 2021-06-25 System and method for preventing service interruption during software update
CN111045893B (en) 2023-09-22 Method, device and system for executing monitoring task, storage medium and electronic device
CN112269622B (en) 2024-07-16 Page management method, device, equipment and medium
CN109828830B (en) 2021-07-16 Method and apparatus for managing containers
CN110019158A (en) 2019-07-16 A kind of method and apparatus of monitoring data quality
CN104348646A (en) 2015-02-11 Configuration data processing method, device and system
CN112130889A (en) 2020-12-25 Resource management method and device, storage medium and electronic device
CN117194147A (en) 2023-12-08 Container cluster monitoring system, method, device and storage medium
CN114610446A (en) 2022-06-10 Method, device and system for automatically injecting probe
CN116755852A (en) 2023-09-15 Method, device, electronic equipment and storage medium for managing life cycle of container group
CN112436974B (en) 2021-12-24 CDN data resource consistency detection method and device and computer equipment
CN109902067B (en) 2020-11-27 File processing method, device, storage medium and computer equipment
CN113656378A (en) 2021-11-16 A server management method, device and medium
CN108288135B (en) 2022-02-01 System compatibility method and device, computer readable storage medium and electronic equipment
US20150350340A1 (en) 2015-12-03 Management of headless hardware in data center
US20240264818A1 (en) 2024-08-08 Systems and methods for synchronizing a user application on a remote device with a server application on a server
CN119292998A (en) 2025-01-10 Application library file management method, cloud server, network device and storage medium
CN113760635A (en) 2021-12-07 Connection abnormality determination method, device, electronic device and storage medium

Legal Events

Date Code Title Description
2018-09-21 PB01 Publication
2018-09-21 PB01 Publication
2018-10-23 SE01 Entry into force of request for substantive examination
2018-10-23 SE01 Entry into force of request for substantive examination
2020-05-08 GR01 Patent grant
2020-05-08 GR01 Patent grant