CN111435919B - Method, device and system for managing configuration parameters - Google Patents

Method, device and system for managing configuration parameters Download PDF

Info

Publication number
CN111435919B
CN111435919B CN201910037724.6A CN201910037724A CN111435919B CN 111435919 B CN111435919 B CN 111435919B CN 201910037724 A CN201910037724 A CN 201910037724A CN 111435919 B CN111435919 B CN 111435919B
Authority
CN
China
Prior art keywords
production environment
configuration parameters
configuration
server
distributed
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.)
Active
Application number
CN201910037724.6A
Other languages
Chinese (zh)
Other versions
CN111435919A (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.)
Cainiao Smart Logistics Holding Ltd
Original Assignee
Cainiao Smart Logistics Holding 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 Cainiao Smart Logistics Holding Ltd filed Critical Cainiao Smart Logistics Holding Ltd
Priority to CN201910037724.6A priority Critical patent/CN111435919B/en
Publication of CN111435919A publication Critical patent/CN111435919A/en
Application granted granted Critical
Publication of CN111435919B publication Critical patent/CN111435919B/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
    • H04L41/0889Techniques to speed-up the configuration process
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The application provides a management method, device and system for environment configuration parameters. Wherein the method comprises the following steps: and establishing a communication mode corresponding to the production environment terminal according to the configuration parameter type of the production environment terminal. And acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode. By adopting the method provided by the application, the problem of low efficiency in the migration process of migrating the configuration parameters from the production environment to the daily environment in the prior art is solved.

Description

Method, device and system for managing configuration parameters
Technical Field
The present invention relates to the field of data processing, and in particular, to a method, an apparatus, and a system for managing configuration parameters.
Background
Within larger-scale Internet and software companies, there are typically many types of software application environments, including production environments, daily development environments, and the like. The production environment refers to an environment in which code deployment for external services is positively provided, and the daily development environment is an environment in which code is deployed on a specified small number of servers and used for conventional testing or development, and relatively random changes can be made to the code.
For ease of description, all non-productive environments are collectively referred to as everyday environments. The daily environment is generally consistent with the production environment in terms of hardware environment, software environment and usage scenario consistency. In addition, in order that daily development and test data do not pollute production data, the daily environment and the production environment are generally isolated from each other, and configuration parameters of the daily environment and the production environment, particularly configuration parameters of middleware, are different, which is beneficial to isolating daily code logic and production code logic on one hand, but on the other hand, the conditions that codes cannot be completely simulated to run in the production environment due to the difference of various configuration parameters are developed or tested in the daily environment, so that the environments of daily test and code test run are not real, and hidden danger in code or software quality is further caused. On the other hand, large-scale rapid remote disaster recovery for servers is always a difficult problem for the industry, wherein the comprehensive backup and restoration technology of configuration parameters is a great difficulty, and if the complete consistency of some parameter configurations is ignored, great risks are brought.
It is therefore a very important task to migrate the configuration parameters completely from the production environment to the everyday environment. The configuration parameters include a distributed non-persistent configuration parameter, a distributed persistent configuration parameter, and a local cache configuration parameter. However, the same collection method is adopted in the prior art for the three configuration parameters, thereby resulting in inefficiency in the migration process of the configuration parameters from the production environment to the daily environment.
Disclosure of Invention
The application provides a management method, device and system for environment configuration parameters, which are used for solving the problem that in the prior art, the efficiency of a migration process for migrating the configuration parameters from a production environment to a daily environment is low due to the fact that the same acquisition method is adopted for different types of configuration parameters.
The method for managing the configuration parameters comprises the following steps:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
and acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode.
Optionally, the configuration parameter types include a distributed non-persistent configuration parameter, a distributed persistent configuration parameter, and a local cache configuration parameter.
Optionally, the communication mode includes: communication is established via hypertext transfer protocol, communication is established via network sockets.
Optionally, the method for managing the configuration parameters establishes communication with the production environment end through a hypertext transfer protocol, so as to obtain the distributed non-persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
Establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
and establishing communication with the production environment end through a network socket, and further acquiring local cache configuration parameters of the production environment end for providing business services.
Optionally, after obtaining the configuration parameters corresponding to the production environment end for providing the business service, transmitting the configuration parameters to the daily environment end for performing business test or business development.
Optionally, the obtaining the configuration parameters corresponding to the production environment end for providing the business service includes:
acquiring periodic characteristics of the business service;
determining an acquisition period for obtaining configuration parameters according to the periodic characteristics;
and obtaining configuration parameters corresponding to the production environment end for providing business services according to the acquisition period.
Optionally, the obtaining the configuration parameters corresponding to the production environment end for providing the business service includes:
and obtaining the configuration parameters corresponding to the production environment end which is used for providing business services and is changed at the current time point relative to the historical time point.
Optionally, the establishing communication with the production environment end through the hypertext transfer protocol, so as to obtain the distributed non-persistent configuration parameters of the production environment end for providing business services, including:
establishing communication with the production environment end through a hypertext transfer protocol;
sending a request command to the production environment end by calling a configuration query interface;
and acquiring response information returned by the production environment end, wherein the response information comprises distributed non-persistent configuration parameters of the production environment end.
Optionally, the establishing communication with the production environment end through a network socket, so as to obtain a distributed persistent configuration parameter of the production environment end for providing a business service, including:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing a connection with the production environment, sending a request for obtaining distributed persistent configuration parameters of the production environment end to the production environment;
and obtaining the distributed persistent configuration parameters of the production environment returned by the production environment.
Optionally, the establishing communication with the production environment end through a network socket, so as to obtain a local cache configuration parameter of the production environment end for providing a service, including:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing connection with the production environment end, sending a request for reading the local cache to the production environment end;
and obtaining the local cache configuration parameters of the production environment side returned by the production environment side.
Optionally, after obtaining the configuration parameters corresponding to the production environment end for providing the business service, transmitting the configuration parameters to the daily environment end for performing the business test or the business development, including:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining a server cluster or a server corresponding to a daily environment end for obtaining the configuration parameters of the production environment according to the characteristics of the server cluster or the characteristics of the server of the production environment end;
and transmitting the configuration parameters of the production environment to a server cluster or a server corresponding to the daily environment end.
Optionally, after obtaining the configuration parameters corresponding to the production environment end for providing the business service, transmitting the configuration parameters to the daily environment end for performing the business test or the business development, including:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining appointed configuration parameters required to be provided for the daily environment end according to periodic characteristics of the configuration parameters of the production environment end;
and providing the appointed configuration parameters to a daily environment end for carrying out service test or service development.
The application provides a management device of configuration parameters, which comprises:
the communication mode establishing unit is used for establishing a communication mode corresponding to the production environment end according to the configuration parameter type of the production environment end;
and the configuration parameter acquisition unit is used for acquiring the configuration parameters corresponding to the production environment end for providing the business service by adopting the communication mode.
Optionally, the configuration parameter types include a distributed non-persistent configuration parameter, a distributed persistent configuration parameter, and a local cache configuration parameter.
Optionally, the communication mode includes: communication is established via hypertext transfer protocol, communication is established via network sockets.
Optionally, the communication mode establishing unit is specifically configured to:
establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
and establishing communication with the production environment end through a network socket, and further acquiring local cache configuration parameters of the production environment end for providing business services.
Optionally, the management device of the configuration parameters further includes a configuration parameter transmission unit, configured to obtain configuration parameters corresponding to a production environment end for providing the service, and then transmit the configuration parameters to a daily environment end for performing service testing or service development.
Optionally, the configuration parameter obtaining unit is specifically configured to:
acquiring periodic characteristics of the business service;
determining an acquisition period for obtaining configuration parameters according to the periodic characteristics;
and obtaining configuration parameters corresponding to the production environment end for providing business services according to the acquisition period.
Optionally, the configuration parameter obtaining unit is further configured to:
and obtaining the configuration parameters corresponding to the production environment end which is used for providing business services and is changed at the current time point relative to the historical time point.
Optionally, the communication mode establishing unit is further configured to:
establishing communication with the production environment end through a hypertext transfer protocol;
sending a request command to the production environment end by calling a configuration query interface;
and acquiring response information returned by the production environment end, wherein the response information comprises distributed non-persistent configuration parameters of the production environment end.
Optionally, the communication mode establishing unit is further configured to:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing a connection with the production environment, sending a request for obtaining distributed persistent configuration parameters of the production environment end to the production environment;
and obtaining the distributed persistent configuration parameters of the production environment returned by the production environment.
Optionally, the communication mode establishing unit is further configured to:
creating a socket for communicating with the production environment end;
Transmitting a connection request to the production environment end by utilizing the socket;
after establishing connection with the production environment end, sending a request for reading the local cache to the production environment end;
and obtaining the local cache configuration parameters of the production environment side returned by the production environment side.
Optionally, the configuration parameter transmission unit is specifically configured to:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining a server cluster or a server corresponding to a daily environment end for obtaining the configuration parameters of the production environment according to the characteristics of the server cluster or the characteristics of the server of the production environment end;
and transmitting the configuration parameters of the production environment to a server cluster or a server corresponding to the daily environment end.
Optionally, the configuration parameter transmission unit is specifically configured to:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining appointed configuration parameters required to be provided for the daily environment end according to periodic characteristics of the configuration parameters of the production environment end;
and providing the appointed configuration parameters to a daily environment end for carrying out service test or service development.
The application provides an electronic device, the electronic device includes:
a processor;
a memory for storing a program which, when read for execution by the processor, performs the following operations:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
and acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode.
The present application provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
and acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode.
The application provides a management method of configuration parameters, which comprises the following steps:
establishing a communication mode corresponding to a configuration server according to a request initiated by the configuration server according to the configuration parameter type of a production environment end;
and providing the configuration parameters of the production environment for the configuration server by adopting the communication mode.
Optionally, the configuration parameter types include a distributed non-persistent configuration parameter, a distributed persistent configuration parameter, and a local cache configuration parameter.
Optionally, the communication mode includes: communication is established via hypertext transfer protocol, communication is established via network sockets.
Optionally, establishing communication with the configuration server through a hypertext transfer protocol, thereby providing distributed non-persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
establishing communication with the configuration server through a network socket, and further providing distributed persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
and establishing communication with the configuration server through a network socket, and further providing local cache configuration parameters of the production environment side for providing business services.
Optionally, the establishing communication with the configuration server through a hypertext transfer protocol, so as to provide distributed non-persistent configuration parameters of the production environment end for providing business services, including:
establishing communication with the configuration server according to the hypertext transfer protocol communication request of the configuration server;
receiving a request command for acquiring the distributed non-persistent configuration parameters of the production environment terminal, which is sent by the configuration server;
And returning response information to the configuration server according to the request command, wherein the response information comprises distributed non-persistent configuration parameters of the production environment side.
Optionally, the establishing communication with the configuration server through a network socket, so as to provide distributed persistent configuration parameters of the production environment end for providing business services, including:
acquiring a socket connection request sent by the configuration server side;
establishing connection with the configuration server according to the socket connection request;
acquiring a request sent by the configuration server side to acquire the distributed persistent configuration parameters of the production environment side;
and returning the distributed persistent configuration parameters of the production environment side to the configuration server according to the request.
Optionally, the establishing communication with the configuration server through a network socket, so as to provide local cache configuration parameters of the production environment end for providing business services, including:
acquiring a socket connection request sent by the configuration server side;
establishing connection with the configuration server according to the socket connection request;
Acquiring a request sent by the configuration server side to acquire the local cache configuration parameters of the production environment side;
and returning the local cache configuration parameters of the production environment side to the configuration server according to the request.
The application provides a management system of configuration parameters, comprising: a configuration server and a production environment server;
the configuration server is used for establishing a communication mode corresponding to the production environment end according to the configuration parameter type of the production environment end; acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode;
the production environment server is used for establishing a communication mode corresponding to the configuration server according to a request initiated by the configuration server according to the configuration parameter type of the production environment end; and providing the configuration parameters of the production environment for the configuration server by adopting the communication mode.
Optionally, the processing system of the configuration parameter further comprises a daily environment server;
the daily environment server is used for obtaining configuration parameters pushed by the configuration server according to at least one of the following modes: obtaining distributed non-persistent configuration parameters of the production environment pushed by the configuration server through a hypertext communication protocol established between the configuration server and the configuration server; obtaining distributed persistent configuration parameters pushed by the configuration server through a network socket mechanism established between the configuration server and the configuration server; and obtaining the local cache configuration parameters pushed by the configuration server through a network socket mechanism established between the configuration server and the configuration server.
The application provides a service providing method, which comprises the following steps:
the configuration server obtains configuration parameters of the production environment for providing business services in at least one of the following ways:
the configuration server obtains distributed non-persistent configuration parameters of the production environment through a hypertext communication protocol established between the configuration server and the main server cluster;
the configuration server obtains distributed persistent configuration parameters of the production environment through a network socket mechanism established between the configuration server and the main server cluster;
the configuration server obtains local cache configuration parameters of the production environment through a network socket mechanism established between the configuration server and the main server cluster;
after the configuration server obtains the configuration parameters of the production environment, the configuration parameters of the production environment are provided for a daily environment for carrying out service test or service development;
the configuration server obtains information that the production environment cannot provide business services;
and the configuration server indicates the daily environment to provide the business service by utilizing the configuration parameters of the production environment according to the information that the production environment cannot provide the business service.
Optionally, the service providing method further includes:
the configuration server obtains the information of the production environment to resume providing business service;
and the configuration server recovers the information for providing the business service according to the production environment and indicates the daily environment to stop providing the business service.
Compared with the prior art, the application has the following advantages:
according to the configuration parameter management method, a communication mode corresponding to a production environment end is established according to the configuration parameter type of the production environment end; acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode; the corresponding most appropriate configuration parameter acquisition method is adopted aiming at different types of configuration parameters, so that the problem of low efficiency in the migration process of migrating the configuration parameters from the production environment to the daily environment is solved.
Drawings
FIG. 1 is a flow chart of a first embodiment of the present application;
FIG. 2 is a schematic diagram of a configuration parameter acquisition system according to a first embodiment of the present application;
FIG. 3 is a schematic diagram of a configuration parameter restoration system according to a first embodiment of the present application;
fig. 4 is a schematic view of a second embodiment of the present application.
Fig. 5 is a schematic view of a sixth embodiment of the present application.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application. This application is, however, susceptible of embodiment in many other ways than those herein described and similar generalizations can be made by those skilled in the art without departing from the spirit of the application and the application is therefore not limited to the specific embodiments disclosed below.
The first embodiment of the application provides a management method of environment configuration parameters. Referring to fig. 1, a flowchart of a first embodiment of the present application is shown. A method for managing configuration parameters according to a first embodiment of the present application is described in detail below with reference to fig. 1. The method comprises the following steps:
step S101: and establishing a communication mode corresponding to the production environment terminal according to the configuration parameter type of the production environment terminal.
The method comprises the steps of establishing a communication mode corresponding to a production environment according to the type of configuration parameters of the production environment.
The configuration parameter types comprise distributed non-persistent configuration parameters, distributed persistent configuration parameters and local cache configuration parameters.
The distributed non-persistent configuration parameters may be configuration parameters of a distributed switch and dynamic configuration item management middleware, which refers to a centrally configured distributed configuration item management middleware, such as a switch middleware for an electronic commerce.
The distributed persistent configuration parameter may be a configuration parameter of a distributed configuration management middleware, such as a diamondmiddleware used in an e-commerce, a distributed configuration management platform disconf of a search service provider. The change period of the distributed persistent configuration parameters is longer, and the distributed persistent configuration parameters are stored in a medium such as a magnetic disk.
The local cache configuration parameters are configuration parameters of a server stand-alone.
In this embodiment, the distributed non-persistent configuration parameters have the characteristics of fast change and high real-time requirement, so that the configuration server can use the hypertext communication protocol to collect the distributed non-persistent configuration parameters of the production environment. Because the change period of the distributed persistent configuration parameters of the production environment is long and the data volume is large, the configuration server can acquire the configuration parameters by adopting a socket mechanism, thereby realizing the optimization of efficiency. Because the change period of the local cache configuration parameters is long and the data volume is large, the configuration server can acquire the configuration parameters by adopting a socket mechanism, thereby realizing the optimization of efficiency.
The communication mode comprises the following steps: communication is established via hypertext transfer protocol, communication is established via network sockets.
The hypertext transfer protocol, HTTP protocol.
The network socket is an identifier that is possessed by a service located at a particular node in the network. The socket contains a node address and a port number to identify this service.
Generally, the communication process of a socket includes the following steps.
1. The server uses socket function to establish a socket, and uses the socket to complete monitoring of communication.
2. A port number and IP address are bound by a bind function. Because a local computer may have multiple websites and IPs, a port has multiple ports. One IP and port needs to be designated for listening.
3. The server calls the listen function to put this port of the server and IP in listening state, waiting for the client to connect.
4. The client establishes a socket with a socket function and sets up remote IP and ports.
5. The client calls the connect function to connect to a port specified by the remote computer.
6. The server accepts the connection of the remote computer with an accept function and establishes communication with the client.
7. After the connection is established, the client writes the data into the socket using a write function. The read function may also be used to read the data sent by the server.
8. The server reads the data sent by the client by using the read function, and can also send the data by using the write function.
9. After the communication is completed, the socket connection is closed with a close function.
Step S102: and acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode.
The step is used for acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode.
Establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
and establishing communication with the production environment end through a network socket, and further acquiring local cache configuration parameters of the production environment end for providing business services.
The establishing communication with the production environment end through the hypertext transfer protocol, thereby obtaining the distributed non-persistent configuration parameters of the production environment end for providing business services, comprising:
Establishing communication with the production environment end through a hypertext transfer protocol;
sending a request command to the production environment end;
and acquiring response information returned by the production environment end, wherein the response information comprises distributed non-persistent configuration parameters of the production environment end.
In this embodiment, the distributed non-persistent configuration parameters have the characteristics of fast change and high real-time requirements, so that the configuration server uses the hypertext communication protocol to collect the distributed non-persistent configuration parameters of the production environment. The configuration query interface is an interface provided by the production environment and used for querying distributed non-persistent configuration parameters of the production environment. And after the production environment receives the request command, calling a configuration query interface to acquire the distributed non-persistent configuration parameters of the production environment.
The establishing communication with the production environment end through the network socket, thereby obtaining the distributed persistent configuration parameters of the production environment end for providing business services, comprising:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
After establishing a connection with the production environment, sending a request for obtaining distributed persistent configuration parameters of the production environment end to the production environment;
and obtaining the distributed persistent configuration parameters of the production environment returned by the production environment.
Because the change period of the distributed persistent configuration parameters of the production environment is long and the data volume is large, the configuration server adopts a socket mechanism to collect the configuration parameters, thereby realizing the optimization of efficiency.
The establishing communication with the production environment end through the network socket, and further obtaining the local cache configuration parameters of the production environment end for providing business services, including:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing connection with the production environment end, sending a request for reading the local cache to the production environment end;
and obtaining the local cache configuration parameters of the production environment side returned by the production environment side.
Because the change period of the local cache configuration parameters of the production environment is long and the data volume is large, the configuration server adopts a socket mechanism to collect the local cache configuration parameters, thereby realizing the optimization of efficiency.
Refer to fig. 2, which is a schematic diagram of a configuration parameter acquisition system employing the configuration management method provided in the present application. In fig. 2, the target environment is the production environment.
After the configuration parameters corresponding to the production environment end for providing the business service are obtained, the configuration parameters are transmitted to the daily environment end for carrying out business test or business development.
After the configuration parameters corresponding to the production environment end for providing the business service are obtained, the configuration parameters are transmitted to the daily environment end for carrying out business test or business development, and the method comprises the following steps:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining a server cluster or a server corresponding to a daily environment end for obtaining the configuration parameters of the production environment according to the characteristics of the server cluster or the characteristics of the server of the production environment end;
and transmitting the configuration parameters of the production environment to a server cluster or a server corresponding to the daily environment end.
For example, the production environment performs server expansion, and two new servers a and B are added, so that in the daily environment, two new servers C and D with the same functions as a and B are correspondingly added. At this time, the configuration server may collect configuration parameters corresponding to a and B and then provide to the designated servers C and D in the daily environment.
After the configuration parameters corresponding to the production environment end for providing the business service are obtained, the configuration parameters are transmitted to the daily environment end for carrying out business test or business development, and the method comprises the following steps:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining appointed configuration parameters required to be provided for the daily environment end according to periodic characteristics of the configuration parameters of the production environment end;
and providing the appointed configuration parameters to a daily environment end for carrying out service test or service development.
In this embodiment, the configuration parameters acquired by the configuration server from the production environment do not need to be provided all to the daily environment. The configuration server may provide a daily environment with a portion of the configuration parameters obtained from the production environment. For example, a configuration parameter having a change period of 1 hour is provided to the daily environment.
Please refer to fig. 3, which is a schematic diagram of a configuration parameter restoring system employing the configuration management method provided in the present application. In the figure, the current environment is the production environment.
The obtaining the configuration parameters corresponding to the production environment end for providing the business service comprises the following steps:
acquiring periodic characteristics of the business service;
Determining an acquisition period for obtaining configuration parameters according to the periodic characteristics;
and obtaining configuration parameters corresponding to the production environment end for providing business services according to the acquisition period.
In this embodiment, the periodic feature refers to a time interval during which a specific configuration parameter is changed. For example, if a configuration parameter changes once for about 1 hour, the acquisition period may be determined to be 1 hour, with the configuration parameter being acquired by the configuration server once per hour. The configuration server is used for collecting configuration parameters from the production environment and pushing the configuration parameters to the daily environment.
The obtaining the configuration parameters corresponding to the production environment end for providing the business service comprises the following steps:
and obtaining the configuration parameters corresponding to the production environment end which is used for providing business services and is changed at the current time point relative to the historical time point.
In this embodiment, the configuration server only collects the changed configuration parameters, thereby improving the collection efficiency of the configuration parameters.
In the above embodiment, a method for managing environmental configuration parameters is provided, and correspondingly, the application also provides a device for managing environmental configuration parameters. Refer to FIG. 4, which is a flowchart illustrating an embodiment of an environment configuration parameter management apparatus according to the present application. Since this embodiment, i.e. the second embodiment, is substantially similar to the method embodiment, the description is relatively simple, and reference should be made to the description of the method embodiment for relevant points. The device embodiments described below are merely illustrative.
A management device for configuration parameters of the present embodiment includes:
a communication mode establishing unit 401, configured to establish a communication mode corresponding to a production environment end according to a configuration parameter type of the production environment end;
and the configuration parameter obtaining unit 402 is configured to obtain, by using the communication manner, a configuration parameter corresponding to a production environment end for providing a service.
In this embodiment, the configuration parameter types include a distributed non-persistent configuration parameter, a distributed persistent configuration parameter, and a local cache configuration parameter.
In this embodiment, the communication method includes: communication is established via hypertext transfer protocol, communication is established via network sockets.
In this embodiment, the communication mode establishing unit is specifically configured to:
establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
And establishing communication with the production environment end through a network socket, and further acquiring local cache configuration parameters of the production environment end for providing business services.
In this embodiment, the management device for configuration parameters further includes a configuration parameter transmission unit, configured to obtain configuration parameters corresponding to a production environment end for providing service, and then transmit the configuration parameters to a daily environment end for performing service testing or service development.
In this embodiment, the configuration parameter obtaining unit is specifically configured to:
acquiring periodic characteristics of the business service;
determining an acquisition period for obtaining configuration parameters according to the periodic characteristics;
and obtaining configuration parameters corresponding to the production environment end for providing business services according to the acquisition period.
In this embodiment, the configuration parameter obtaining unit is further configured to:
and obtaining the configuration parameters corresponding to the production environment end which is used for providing business services and is changed at the current time point relative to the historical time point.
In this embodiment, the communication manner establishing unit is further configured to:
establishing communication with the production environment end through a hypertext transfer protocol;
Sending a request command to the production environment end by calling a configuration query interface;
and acquiring response information returned by the production environment end, wherein the response information comprises distributed non-persistent configuration parameters of the production environment end.
In this embodiment, the communication manner establishing unit is further configured to:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing a connection with the production environment, sending a request for obtaining distributed persistent configuration parameters of the production environment end to the production environment;
and obtaining the distributed persistent configuration parameters of the production environment returned by the production environment.
In this embodiment, the communication manner establishing unit is further configured to:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing connection with the production environment end, sending a request for reading the local cache to the production environment end;
and obtaining the local cache configuration parameters of the production environment side returned by the production environment side.
In this embodiment, the configuration parameter transmission unit is specifically configured to:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining a server cluster or a server corresponding to a daily environment end for obtaining the configuration parameters of the production environment according to the characteristics of the server cluster or the characteristics of the server of the production environment end;
and transmitting the configuration parameters of the production environment to a server cluster or a server corresponding to the daily environment end.
In this embodiment, the configuration parameter transmission unit is specifically configured to:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining appointed configuration parameters required to be provided for the daily environment end according to periodic characteristics of the configuration parameters of the production environment end;
and providing the appointed configuration parameters to a daily environment end for carrying out service test or service development.
A third embodiment of the present application provides an electronic device, including:
a processor;
a memory for storing a program which, when read for execution by the processor, performs the following operations:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
And acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode.
A fourth embodiment of the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
and acquiring configuration parameters corresponding to the production environment end for providing business services by adopting the communication mode.
A fifth embodiment of the present application provides a method for managing configuration parameters, including:
establishing a communication mode corresponding to a configuration server according to a request initiated by the configuration server according to the configuration parameter type of a production environment end;
and providing the configuration parameters of the production environment for the configuration server by adopting the communication mode.
In this embodiment, the configuration parameter types include a distributed non-persistent configuration parameter, a distributed persistent configuration parameter, and a local cache configuration parameter.
In this embodiment, the communication method includes: communication is established via hypertext transfer protocol, communication is established via network sockets.
In this embodiment, communication with the configuration server is established through a hypertext transfer protocol, so as to provide distributed non-persistent configuration parameters of the production environment end for providing service; or alternatively, the process may be performed,
establishing communication with the configuration server through a network socket, and further providing distributed persistent configuration parameters of the production environment end for providing business services; or alternatively, the process may be performed,
and establishing communication with the configuration server through a network socket, and further providing local cache configuration parameters of the production environment side for providing business services.
In this embodiment, the establishing communication with the configuration server through the hypertext transfer protocol, thereby providing distributed non-persistent configuration parameters of the production environment end for providing business services, includes:
establishing communication with the configuration server according to the hypertext transfer protocol communication request of the configuration server;
receiving a request command for acquiring the distributed non-persistent configuration parameters of the production environment terminal, which is sent by the configuration server;
and returning response information to the configuration server according to the request command, wherein the response information comprises distributed non-persistent configuration parameters of the production environment side.
In this embodiment, the establishing communication with the configuration server through a network socket, thereby providing distributed persistent configuration parameters of the production environment end for providing service, includes:
acquiring a socket connection request sent by the configuration server side;
establishing connection with the configuration server according to the socket connection request;
acquiring a request sent by the configuration server side to acquire the distributed persistent configuration parameters of the production environment side;
and returning the distributed persistent configuration parameters of the production environment side to the configuration server according to the request.
In this embodiment, the establishing communication with the configuration server through a network socket, and further providing a local cache configuration parameter of the production environment end for providing a service, includes:
acquiring a socket connection request sent by the configuration server side;
establishing connection with the configuration server according to the socket connection request;
acquiring a request sent by the configuration server side to acquire the local cache configuration parameters of the production environment side;
and returning the local cache configuration parameters of the production environment side to the configuration server according to the request.
Since the fifth embodiment is a concrete implementation method from the viewpoint of the production environment, corresponding to the concrete implementation method of the first embodiment from the viewpoint of the configuration server, writing is relatively simple. Please refer to the related portion of the first embodiment.
A sixth embodiment of the present application provides a system for managing configuration parameters, please refer to fig. 5, which is a schematic diagram of a system for processing configuration parameters. The method comprises the following steps: a configuration server 501 and a production environment server 502;
the configuration server is used for establishing a communication mode corresponding to the production environment end according to the configuration parameter type of the production environment end; acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode;
the production environment server is used for establishing a communication mode corresponding to the configuration server according to a request initiated by the configuration server according to the configuration parameter type of the production environment end; and providing the configuration parameters of the production environment for the configuration server by adopting the communication mode.
In this embodiment, the processing system for configuring parameters further includes a daily environment server 503;
the daily environment server is used for obtaining configuration parameters pushed by the configuration server according to at least one of the following modes: obtaining distributed non-persistent configuration parameters of the production environment pushed by the configuration server through a hypertext communication protocol established between the configuration server and the configuration server; obtaining distributed persistent configuration parameters pushed by the configuration server through a network socket mechanism established between the configuration server and the configuration server; and obtaining the local cache configuration parameters pushed by the configuration server through a network socket mechanism established between the configuration server and the configuration server.
A seventh embodiment of the present application provides a service providing method, including:
the configuration server obtains configuration parameters of the production environment for providing business services in at least one of the following ways:
the configuration server obtains distributed non-persistent configuration parameters of the production environment through a hypertext communication protocol established between the configuration server and the main server cluster;
the configuration server obtains distributed persistent configuration parameters of the production environment through a network socket mechanism established between the configuration server and the main server cluster;
the configuration server obtains local cache configuration parameters of the production environment through a network socket mechanism established between the configuration server and the main server cluster;
after the configuration server obtains the configuration parameters of the production environment, the configuration parameters of the production environment are provided for a daily environment for carrying out service test or service development;
the configuration server obtains information that the production environment cannot provide business services;
and the configuration server indicates the daily environment to provide the business service by utilizing the configuration parameters of the production environment according to the information that the production environment cannot provide the business service.
In this embodiment, the service providing method further includes:
the configuration server obtains the information of the production environment to resume providing business service;
and the configuration server recovers the information for providing the business service according to the production environment and indicates the daily environment to stop providing the business service.
The seventh embodiment of the present application provides a method for disaster recovery in different places, which can provide services for a daily environment when a production environment fails. The daily environment here may be a backup of the production environment, which may take on the role of the production environment in case of a failure of the production environment.
While the preferred embodiment has been described, it is not intended to limit the invention thereto, and any person skilled in the art may make variations and modifications without departing from the spirit and scope of the present invention, so that the scope of the present invention shall be defined by the claims of the present application.
In one typical configuration, a computing device includes one or more operators (CPUs), an input/output interface, a network interface, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
1. Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
2. It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (19)

1. A method for managing configuration parameters, comprising:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode, wherein the communication mode is a configuration parameter acquisition method adopted for different types of configuration parameters;
after acquiring configuration parameters corresponding to a production environment end for providing business services, transmitting the configuration parameters to a daily environment end for carrying out business test or business development;
establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware; or alternatively, the process may be performed,
establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware; or alternatively, the process may be performed,
And establishing communication with the production environment end through a network socket, and further acquiring a local cache configuration parameter of the production environment end for providing business service, wherein the local cache configuration parameter is a configuration parameter of a server stand-alone.
2. The method for managing configuration parameters according to claim 1, wherein the obtaining configuration parameters corresponding to a production environment side for providing business services comprises:
acquiring periodic characteristics of the business service;
determining an acquisition period for obtaining configuration parameters according to the periodic characteristics;
and obtaining configuration parameters corresponding to the production environment end for providing business services according to the acquisition period.
3. The method for managing configuration parameters according to claim 1, wherein the obtaining configuration parameters corresponding to a production environment side for providing business services comprises:
and obtaining the configuration parameters corresponding to the production environment end which is used for providing business services and is changed at the current time point relative to the historical time point.
4. The method for managing configuration parameters according to claim 1, wherein said establishing communication with said production environment terminal via hypertext transfer protocol to obtain distributed non-persistent configuration parameters of said production environment terminal for providing business services comprises:
Establishing communication with the production environment end through a hypertext transfer protocol;
sending a request command to the production environment end by calling a configuration query interface;
and acquiring response information returned by the production environment end, wherein the response information comprises distributed non-persistent configuration parameters of the production environment end.
5. The method for managing configuration parameters according to claim 1, wherein the establishing communication with the production environment terminal through a network socket, thereby obtaining the distributed persistent configuration parameters of the production environment terminal for providing business services, comprises:
creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing a connection with the production environment, sending a request for obtaining distributed persistent configuration parameters of the production environment end to the production environment;
and obtaining the distributed persistent configuration parameters of the production environment returned by the production environment.
6. The method for managing configuration parameters according to claim 1, wherein the establishing communication with the production environment terminal through the network socket, and further obtaining the local cache configuration parameters of the production environment terminal for providing the business service, comprises:
Creating a socket for communicating with the production environment end;
transmitting a connection request to the production environment end by utilizing the socket;
after establishing connection with the production environment end, sending a request for reading the local cache to the production environment end;
and obtaining the local cache configuration parameters of the production environment side returned by the production environment side.
7. The method for managing configuration parameters according to claim 1, wherein after obtaining the configuration parameters corresponding to the production environment side for providing the business service, transmitting the configuration parameters to the daily environment side for performing the business test or the business development, comprises:
after obtaining configuration parameters corresponding to a production environment end for providing business services, determining a server cluster or a server corresponding to a daily environment end for obtaining the configuration parameters of the production environment according to the characteristics of the server cluster or the characteristics of the server of the production environment end;
and transmitting the configuration parameters of the production environment to a server cluster or a server corresponding to the daily environment end.
8. The method for managing configuration parameters according to claim 1, wherein after obtaining the configuration parameters corresponding to the production environment side for providing the business service, transmitting the configuration parameters to the daily environment side for performing the business test or the business development, comprises:
After obtaining configuration parameters corresponding to a production environment end for providing business services, determining appointed configuration parameters required to be provided for the daily environment end according to periodic characteristics of the configuration parameters of the production environment end;
and providing the appointed configuration parameters to a daily environment end for carrying out service test or service development.
9. A management apparatus for configuration parameters, comprising:
the communication mode establishing unit is used for establishing a communication mode corresponding to the production environment end according to the configuration parameter type of the production environment end;
the configuration parameter acquisition unit is used for acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode, wherein the communication mode is a configuration parameter acquisition method adopted for different types of configuration parameters;
after acquiring configuration parameters corresponding to a production environment end for providing business services, transmitting the configuration parameters to a daily environment end for carrying out business test or business development;
establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware; or alternatively, the process may be performed,
Establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware; or alternatively, the process may be performed,
and establishing communication with the production environment end through a network socket, and further acquiring a local cache configuration parameter of the production environment end for providing business service, wherein the local cache configuration parameter is a configuration parameter of a server stand-alone.
10. An electronic device, the electronic device comprising:
a processor;
a memory for storing a program which, when read for execution by the processor, performs the following operations:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode, wherein the communication mode is a configuration parameter acquisition method adopted for different types of configuration parameters;
after acquiring configuration parameters corresponding to a production environment end for providing business services, transmitting the configuration parameters to a daily environment end for carrying out business test or business development;
Establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware; or alternatively, the process may be performed,
establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware; or alternatively, the process may be performed,
and establishing communication with the production environment end through a network socket, and further acquiring a local cache configuration parameter of the production environment end for providing business service, wherein the local cache configuration parameter is a configuration parameter of a server stand-alone.
11. A computer readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, realizes the steps of:
establishing a communication mode corresponding to a production environment end according to the type of configuration parameters of the production environment end;
Acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode, wherein the communication mode is a configuration parameter acquisition method adopted for different types of configuration parameters;
after acquiring configuration parameters corresponding to a production environment end for providing business services, transmitting the configuration parameters to a daily environment end for carrying out business test or business development;
establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware; or alternatively, the process may be performed,
establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware; or alternatively, the process may be performed,
and establishing communication with the production environment end through a network socket, and further acquiring a local cache configuration parameter of the production environment end for providing business service, wherein the local cache configuration parameter is a configuration parameter of a server stand-alone.
12. A method for managing configuration parameters, comprising:
establishing a communication mode corresponding to a configuration server according to a request initiated by the configuration server according to the configuration parameter type of a production environment end;
providing the configuration parameters of the production environment for the configuration server by adopting the communication mode so as to transmit the configuration parameters to a daily environment end for carrying out service test or service development, wherein the communication mode is a configuration parameter acquisition method adopted for different types of configuration parameters;
establishing communication with the configuration server through a hypertext transfer protocol, and further providing distributed non-persistent configuration parameters of the production environment end for providing business services, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware; or alternatively, the process may be performed,
establishing communication with the configuration server through a network socket, and further providing distributed persistent configuration parameters of the production environment end for providing business services, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware; or alternatively, the process may be performed,
And establishing communication with the configuration server through a network socket, and further providing local cache configuration parameters of the production environment end for providing business services, wherein the local cache configuration parameters are configuration parameters of a server stand-alone.
13. The method for managing configuration parameters according to claim 12, wherein said establishing communication with said configuration server via hypertext transfer protocol to thereby provide distributed non-persistent configuration parameters of said production environment side for providing business services comprises:
establishing communication with the configuration server according to the hypertext transfer protocol communication request of the configuration server;
receiving a request command for acquiring the distributed non-persistent configuration parameters of the production environment terminal, which is sent by the configuration server;
and returning response information to the configuration server according to the request command, wherein the response information comprises distributed non-persistent configuration parameters of the production environment side.
14. The method for managing configuration parameters according to claim 12, wherein said establishing communication with said configuration server via a network socket, thereby providing distributed persistent configuration parameters of said production environment side for providing business services, comprises:
Acquiring a socket connection request sent by the configuration server side;
establishing connection with the configuration server according to the socket connection request;
acquiring a request sent by the configuration server side to acquire the distributed persistent configuration parameters of the production environment side;
and returning the distributed persistent configuration parameters of the production environment side to the configuration server according to the request.
15. The method for managing configuration parameters according to claim 12, wherein said establishing communication with said configuration server via a network socket, thereby providing local cache configuration parameters of said production environment side for providing business services, comprises:
acquiring a socket connection request sent by the configuration server side;
establishing connection with the configuration server according to the socket connection request;
acquiring a request sent by the configuration server side to acquire the local cache configuration parameters of the production environment side;
and returning the local cache configuration parameters of the production environment side to the configuration server according to the request.
16. A system for managing configuration parameters, comprising: a configuration server and a production environment server;
The configuration server is used for establishing a communication mode corresponding to the production environment end according to the configuration parameter type of the production environment end; acquiring configuration parameters corresponding to a production environment end for providing business services by adopting the communication mode, wherein the communication mode is a configuration parameter acquisition method adopted for different types of configuration parameters;
after acquiring configuration parameters corresponding to a production environment end for providing business services, transmitting the configuration parameters to a daily environment end for carrying out business test or business development;
establishing communication with the production environment end through a hypertext transfer protocol, and further acquiring distributed non-persistent configuration parameters of the production environment end for providing business services, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware; or alternatively, the process may be performed,
establishing communication with the production environment end through a network socket, and further acquiring distributed persistent configuration parameters of the production environment end for providing business services, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware; or alternatively, the process may be performed,
Establishing communication with the production environment end through a network socket, and further acquiring a local cache configuration parameter of the production environment end for providing business service, wherein the local cache configuration parameter is a configuration parameter of a server stand-alone;
the production environment server is used for establishing a communication mode corresponding to the configuration server according to a request initiated by the configuration server according to the configuration parameter type of the production environment end; providing configuration parameters of the production environment for the configuration server by adopting the communication mode, so as to transmit the configuration parameters to a daily environment end for carrying out service test or service development;
establishing communication with the configuration server through a hypertext transfer protocol, and further providing distributed non-persistent configuration parameters of the production environment end for providing business services, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware; or alternatively, the process may be performed,
establishing communication with the configuration server through a network socket, and further providing distributed persistent configuration parameters of the production environment end for providing business services, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware; or alternatively, the process may be performed,
And establishing communication with the configuration server through a network socket, and further providing local cache configuration parameters of the production environment end for providing business services, wherein the local cache configuration parameters are configuration parameters of a server stand-alone.
17. The system for managing configuration parameters of claim 16 further comprising a daily environment server;
the daily environment server is used for obtaining configuration parameters pushed by the configuration server according to at least one of the following modes: obtaining distributed non-persistent configuration parameters of the production environment pushed by the configuration server through a hypertext communication protocol established between the configuration server and the configuration server; obtaining distributed persistent configuration parameters pushed by the configuration server through a network socket mechanism established between the configuration server and the configuration server; and obtaining the local cache configuration parameters pushed by the configuration server through a network socket mechanism established between the configuration server and the configuration server.
18. A service providing method, comprising:
the configuration server obtains configuration parameters of a production environment for providing business services according to at least one of the following modes, wherein the at least one of the following modes is a configuration parameter acquisition method adopted for different types of the configuration parameters:
The configuration server obtains distributed non-persistent configuration parameters of the production environment through a hypertext communication protocol established between the configuration server and a main server cluster, wherein the distributed non-persistent configuration parameters are configuration parameters of a distributed switch and a dynamic configuration item management middleware;
the configuration server obtains distributed persistent configuration parameters of the production environment through a network socket mechanism established between the configuration server and the main server cluster, wherein the distributed persistent configuration parameters are configuration parameters of distributed configuration management middleware;
the configuration server obtains local cache configuration parameters of the production environment through a network socket mechanism established between the configuration server and the main server cluster, wherein the local cache configuration parameters are configuration parameters of a server stand-alone;
after the configuration server obtains the configuration parameters of the production environment, the configuration parameters of the production environment are provided for a daily environment for carrying out service test or service development;
the configuration server obtains information that the production environment cannot provide business services;
and the configuration server indicates the daily environment to provide the business service by utilizing the configuration parameters of the production environment according to the information that the production environment cannot provide the business service.
19. The service providing method according to claim 18, further comprising:
the configuration server obtains the information of the production environment to resume providing business service;
and the configuration server recovers the information for providing the business service according to the production environment and indicates the daily environment to stop providing the business service.
CN201910037724.6A 2019-01-15 2019-01-15 Method, device and system for managing configuration parameters Active CN111435919B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910037724.6A CN111435919B (en) 2019-01-15 2019-01-15 Method, device and system for managing configuration parameters

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910037724.6A CN111435919B (en) 2019-01-15 2019-01-15 Method, device and system for managing configuration parameters

Publications (2)

Publication Number Publication Date
CN111435919A CN111435919A (en) 2020-07-21
CN111435919B true CN111435919B (en) 2023-08-08

Family

ID=71579965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910037724.6A Active CN111435919B (en) 2019-01-15 2019-01-15 Method, device and system for managing configuration parameters

Country Status (1)

Country Link
CN (1) CN111435919B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104040545A (en) * 2012-01-06 2014-09-10 苹果公司 Intelligent data delivery and storage based on data characteristics
CN105930945A (en) * 2015-12-30 2016-09-07 中国银联股份有限公司 Business processing method and apparatus
CN108900324A (en) * 2018-06-13 2018-11-27 平安科技(深圳)有限公司 Verify the method and device of virtual machine communication performance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4932413B2 (en) * 2006-09-29 2012-05-16 株式会社日立製作所 Environment migration system, terminal device, information processing device, management server, portable storage medium
CN103747490B (en) * 2014-02-19 2018-06-26 林强 A kind of framing method, transmission information configuring methods, device and communication node
CN106681861A (en) * 2016-12-08 2017-05-17 杭州销冠网络科技有限公司 New environment isolation configuration data management method and system
CN108763419A (en) * 2018-05-24 2018-11-06 郑州云海信息技术有限公司 A kind of method, apparatus and computer storage media of migration process

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104040545A (en) * 2012-01-06 2014-09-10 苹果公司 Intelligent data delivery and storage based on data characteristics
CN105930945A (en) * 2015-12-30 2016-09-07 中国银联股份有限公司 Business processing method and apparatus
CN108900324A (en) * 2018-06-13 2018-11-27 平安科技(深圳)有限公司 Verify the method and device of virtual machine communication performance

Also Published As

Publication number Publication date
CN111435919A (en) 2020-07-21

Similar Documents

Publication Publication Date Title
US9684524B1 (en) Service-oriented system optimization using trace data
CN111078504A (en) Distributed call chain tracking method and device, computer equipment and storage medium
CN106933548B (en) Global information obtaining, processing and updating method, device and system
CN106933550B (en) Global information obtaining, processing and updating method, device and system
CN111225012A (en) Transaction processing method, device and equipment
CN107181821A (en) A kind of information push method and device based on SSE specifications
CN107070752B (en) Testing method and testing system for long connection capacity
CN106790744B (en) IP scheduling method and system
CN103607476A (en) System and method for distributed multi-stage persistence of huge number of messages
CN101729316A (en) Test method and system and remote management platform equipment for different types of home gateways
CN104486379A (en) Parameter updating method as well as relevant equipment and system
CN109542754B (en) Access method of mobile equipment, debugging method, device and system of application program
CN113076251A (en) Test method and device
US10812346B1 (en) Application discovery and dependency mapping
US20210064473A1 (en) Method and device for failover in hbase system, and non-transitory computer-readable storage medium
CN115705190A (en) Method and device for determining dependence degree
CN105245622A (en) Configurable data processing method and system and mobile platform
CN111435919B (en) Method, device and system for managing configuration parameters
CN112579406B (en) Log call chain generation method and device
EP3306471B1 (en) Automatic server cluster discovery
CN106790521B (en) System and method for distributed networking by using node equipment based on FTP
CN109408467A (en) A kind of method and device for realizing data storage
CN113835625B (en) Data storage method, device, equipment and storage medium based on sub-path
CN109062744A (en) A kind of method and system for realizing batch testing server memory
CN103236954A (en) Web service evaluation system in mobile network

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