CN109309588B - Method and device for ensuring consistency of dynamic configuration data - Google Patents

Method and device for ensuring consistency of dynamic configuration data Download PDF

Info

Publication number
CN109309588B
CN109309588B CN201811197351.0A CN201811197351A CN109309588B CN 109309588 B CN109309588 B CN 109309588B CN 201811197351 A CN201811197351 A CN 201811197351A CN 109309588 B CN109309588 B CN 109309588B
Authority
CN
China
Prior art keywords
data
dynamic configuration
configuration data
record
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811197351.0A
Other languages
Chinese (zh)
Other versions
CN109309588A (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.)
Netease Media Technology Beijing Co Ltd
Original Assignee
Netease Media Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Media Technology Beijing Co Ltd filed Critical Netease Media Technology Beijing Co Ltd
Priority to CN201811197351.0A priority Critical patent/CN109309588B/en
Publication of CN109309588A publication Critical patent/CN109309588A/en
Application granted granted Critical
Publication of CN109309588B publication Critical patent/CN109309588B/en
Active legal-status Critical Current
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/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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/0866Checking the configuration

Landscapes

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

Abstract

The embodiment of the invention provides a method for ensuring the consistency of dynamic configuration data. The method comprises the following steps: receiving a use request for the dynamic configuration data; and according to the use record aiming at the dynamic configuration data, feeding back persistent data or network data of the dynamic configuration data to a sender of a use request. According to the method provided by the embodiment of the invention, when the use request is received, the persistent data or the network data is fed back to the service sending the use request according to the use record of the dynamic configuration data, so that the consistency of the dynamic configuration data received by the service is ensured, and the problem of processing confusion caused by inconsistency of the dynamic configuration data is avoided. In addition, the embodiment of the invention also provides a device for ensuring the consistency of the dynamic configuration data.

Description

Method and device for ensuring consistency of dynamic configuration data
Technical Field
The embodiment of the invention relates to the field of dynamic configuration, in particular to a method and a device for ensuring consistency of dynamic configuration data.
Background
This section is intended to provide a background or context to the embodiments of the invention that are recited in the claims. The description herein is not admitted to be prior art by inclusion in this section.
For changes in the functional configuration of the client, the traditional approach is to need to be addressed by publishing new versions. However, if some changes are urgent for the client, such as a large crash of the client due to an online function, or a change in some active function causes the client to need to go offline for the function, such urgency is obviously not satisfied by the release version, and the release version does not solve the configuration problem of the user who still uses the old version.
To address these issues, dynamic configuration data systems were derived. The dynamic configuration data system is provided with a configuration center background system, maintenance personnel can configure the functional attributes of the client through the system, and the client functions are checked for validity by reading the background and do not need to be separately solved through a release version.
Under the condition that the user environment has no network or network data of dynamic configuration data is not completely issued, the service of the client defaults to use persistent data of the dynamic configuration data; when the network data is obtained, the service of the client uses the network data of the dynamic configuration data, which generates a phenomenon that the dynamic configuration data is inconsistent. Because the large amount of dynamic configuration data corresponds to the switch of each service, the phenomenon can directly cause the problem of disordered processing in service logic judgment.
Disclosure of Invention
In this context, embodiments of the present invention are intended to provide a method and apparatus for ensuring consistency of dynamic configuration data.
In a first aspect of the embodiments of the present invention, a method for ensuring consistency of dynamic configuration data is provided, including:
receiving a use request for the dynamic configuration data;
and according to the use record aiming at the dynamic configuration data, feeding back persistent data or network data of the dynamic configuration data to a sender of the use request.
In a second aspect of the embodiments of the present invention, an apparatus for guaranteeing consistency of dynamic configuration data is provided, including:
the request receiving module is used for receiving a use request aiming at the dynamic configuration data;
and the distribution module is used for feeding back persistent data or network data of the dynamic configuration data to a sender of the use request according to the use record aiming at the dynamic configuration data.
In a third aspect of embodiments of the present invention, a computer-readable medium is provided, on which a computer program is stored, which program is executed by a processor to perform the steps of the above-mentioned method for ensuring consistency of dynamic configuration data.
In a fourth aspect of embodiments of the present invention, there is provided a computing device comprising: the dynamic configuration data consistency ensuring method comprises the following steps of a memory, a processor and a computer program which are stored on the memory and can run on the processor, wherein the processor executes the program to ensure the consistency of the dynamic configuration data.
According to the method and the device for ensuring the consistency of the dynamic configuration data, when a use request aiming at the dynamic configuration data is received, the persistent data or the network data are determined to be fed back to the service sending the use request according to the use record of the dynamic configuration data, the consistency of the dynamic configuration data received by the service is ensured, and the problem of processing confusion caused by inconsistency of the dynamic configuration data is avoided.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
fig. 1 schematically shows an application scenario of an embodiment of the present invention;
FIG. 2 schematically illustrates a flow diagram of a method of ensuring consistency of dynamic configuration data, in accordance with an embodiment of the present invention;
FIG. 3 schematically illustrates a flow diagram of a method of ensuring consistency of dynamic configuration data according to yet another embodiment of the present invention;
FIG. 4 is a schematic diagram illustrating a record and feedback of a dynamic configuration data cache hit system in a method for guaranteeing consistency of dynamic configuration data according to an embodiment of the present invention;
FIG. 5 is a media diagram that schematically illustrates a method for ensuring dynamic configuration data consistency, in accordance with an embodiment of the present invention;
FIG. 6 is a schematic diagram illustrating an apparatus for ensuring consistency of dynamic configuration data according to an embodiment of the present invention;
FIG. 7 schematically shows a structural diagram of a computing device according to an embodiment of the invention.
In the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given solely for the purpose of enabling those skilled in the art to better understand and to practice the invention, and are not intended to limit the scope of the invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
As will be appreciated by one skilled in the art, embodiments of the present invention may be embodied as a system, apparatus, device, method, or computer program product. Accordingly, the present disclosure may be embodied in the form of: entirely hardware, entirely software (including firmware, resident software, micro-code, etc.), or a combination of hardware and software.
According to the embodiment of the invention, a method, a medium, a device and a computing device for ensuring consistency of dynamic configuration data are provided.
In this document, any number of elements in the drawings is by way of example and not by way of limitation, and any nomenclature is used solely for differentiation and not by way of limitation.
The principles and spirit of the present invention are explained in detail below with reference to several representative embodiments of the invention.
Summary of The Invention
The inventor finds that when the network data of the dynamic configuration data is not received, the service of the client uses the persistent data of the dynamic configuration data; then, after receiving the network data of the dynamic configuration data, the service of the client uses the network data of the dynamic configuration data; this may cause inconsistency of dynamic configuration data used by the service, which may lead to confusion of service processing.
In view of the above, the present invention provides a method and an apparatus for ensuring consistency of dynamic configuration data, where in a case of receiving network data of the dynamic configuration data, when a request for using the dynamic configuration data from a service is received, persistent data or network data is fed back to the service according to a usage record of the dynamic configuration data, so as to ensure consistency of the dynamic configuration data received by the service, and avoid a problem of service processing confusion.
Having described the general principles of the invention, various non-limiting embodiments of the invention are described in detail below.
Application scene overview
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of an embodiment of the present invention. In fig. 1, when a service first sends a use request to the dynamic configuration data system, since the client has not received network data of the dynamic configuration data, the dynamic configuration data system feeds back persistent data to the service, for example, the configuration field Config1 is persistent data. When the service sends a use request to the dynamic configuration data system for the second time, since the client has received the network data of the dynamic configuration data, the dynamic configuration data system feeds back the network data to the service, for example, the configuration field Config1 is the network data. It can be seen that, for the same configuration field Config1, the contents received by the service twice are inconsistent, which leads to a problem that processing confusion errors may occur subsequently.
The embodiment of the invention is applied to the scene, and the cache hit device based on the dynamic configuration data system is arranged, namely the dynamic configuration data cache hit system. And the dynamic configuration data cache hit system receives a service use request and feeds back persistent data or network data of the dynamic configuration data to the service according to the use record, so that the consistency of the data received by the service is ensured.
Specific embodiments are described in detail below with reference to the accompanying drawings.
Exemplary method
In the following, in connection with the application scenario of fig. 1, a method for guaranteeing consistency of dynamic configuration data according to an exemplary embodiment of the present invention is described with reference to fig. 2. It should be noted that the above application scenarios are merely illustrated for the convenience of understanding the spirit and principles of the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention may be applied to any scenario where applicable.
As shown in fig. 2, the method for guaranteeing the consistency of the dynamic configuration data according to the embodiment of the present invention includes the following steps:
s21: a usage request for the dynamic configuration data is received.
In this embodiment, a preset dynamic configuration data cache hit system may be adopted to receive a usage request from a service.
S22: and according to the use record aiming at the dynamic configuration data, feeding back persistent data or network data of the dynamic configuration data to a sender of the use request.
In one possible implementation, step S22 may include: when network data of dynamic configuration data is obtained, for configuration fields with records in the use records, feeding back the configuration fields in the persistent data to a sender of the use request; and for the configuration field of which no record exists in the usage record, feeding back the configuration field in the network data to a sender of the usage request.
Specifically, in the case that the dynamic configuration data cache hit system has obtained network data of dynamic configuration data, for the usage request, for a configuration field in which a record exists in a usage record, the dynamic configuration data cache hit system feeds back the configuration field in persistent data to a sender (in this embodiment, the sender is an application) of the usage request; for configuration fields where no record exists in the usage record, the configuration field in the network data is fed back to the sender of the usage request.
In this embodiment, the usage record refers to a record saved when the dynamic configuration data cache hits the system and feeds back persistent data to the application according to the usage request of the dynamic configuration data before network data is not obtained.
Specifically, in a possible implementation, after the step S21, the method may further include: when the network data of the dynamic configuration data is not obtained, the persistent data of the dynamic configuration data is fed back to a sender of a use request, and the record of each configuration field in the persistent data is stored in the use record.
It can be seen that if a certain configuration field exists in the usage record, this configuration field in the persistent data is indicated to have been received and used by the application; if a configuration field does not exist in the usage record, it indicates that the configuration field has not been received and used by the application. Therefore, according to the usage record, the dynamic configuration data cache hit system can choose to feed back persistent data (for configuration fields with usage records existing) or network data (for configuration fields without usage records existing) to the application, thereby ensuring that dynamic configuration data received by the application for multiple times is consistent.
In a possible implementation manner, in order to be able to identify that a certain configuration field in the persistent data corresponds to a certain configuration field in the network data, a unique identifier may be set for each configuration field in the persistent data and each configuration field in the network data.
In one possible embodiment, the parent node information of the configuration field may be used as the unique identifier of the configuration field.
For persistent data, the manner of setting a unique identifier for each configuration field may include: when persistent data of the dynamic configuration data are obtained, unique identifiers are injected into each configuration field in the persistent data in a reflection mode.
For network data, a unique identifier is set for each configuration field, and at least the following two forms can be adopted:
firstly, when network data of dynamic configuration data is obtained, a unique identifier is injected into each configuration field in the network data in a reflection mode.
Secondly, when the network data of the dynamic configuration data is obtained, if the use record exists, a unique identifier is injected into each configuration field in the network data in a reflection mode.
For the second way, when the dynamic configuration data cache hit system obtains the network data, the usage record is firstly queried. If there is a usage record indicating that persistent data was previously fed back to the application, there is a possibility that the dynamic configuration data will be inconsistent subsequently, so that a unique identifier can be injected into each configuration field in the network data for use in subsequently identifying and feeding back the dynamic configuration data. If the usage record does not exist, the persistent data is not fed back to the application before, and the possibility that the dynamic configuration data is inconsistent does not exist subsequently, so that all the configuration fields in the network data need to be fed back subsequently, and the unique identifier does not need to be injected into the configuration fields in the network data.
In addition, for some configuration fields which do not influence consistency operation, a unique identifier does not need to be injected into the configuration fields; for these configuration fields, the filtering operation of the injection identification may be performed in the form of annotations.
In a possible implementation manner, after the step S22, the method may further include:
s23: and deleting the use record when the service which sends the use request aiming at the dynamic configuration data exits the client or the client is hot started.
As shown in fig. 3, on the basis of the above embodiment, the method for guaranteeing consistency of dynamic configuration data according to another embodiment of the present invention includes the following steps:
s31: when the network data is not obtained, the dynamic configuration data cache hit system receives a use request aiming at the dynamic configuration data, and the use request is sent by an application of a client.
S32: the dynamic configuration data cache hit system feeds back the persistent data to the application, and adopts a reflection mode to inject father node information into each configuration field in the persistent data.
S33: the dynamic configuration data cache hit system stores usage records in a local cache pool, the usage records including configuration fields in the persistent data and parent node information thereof.
S34: when the dynamic configuration data cache hit system receives the network data of the dynamic configuration data, father node information is injected into each configuration field in the network data in a reflection mode.
S35: the dynamic configuration data cache hit system receives a use request for the dynamic configuration data, which is also sent by the application.
S36: the dynamic configuration data cache hit system checks the use records existing in the cache pool, and once a certain configuration field of the persistent data is hit (namely the record of the configuration field existing in the use record), the configuration field in the persistent data is fed back to the application; for configuration fields that do not hit (i.e., records in which the configuration field does not exist in the usage record), the configuration field in the network data is fed back to the application.
Fig. 4 is a schematic diagram illustrating the recording and feedback of the dynamic configuration data cache hit system in this embodiment.
In fig. 4, when the dynamic configuration data cache hit system has not received network data, it receives a use request from an application for the first time, and persistent data fed back to the application includes a configuration field Config 1. The dynamic configuration data cache hit system records the Config1 and its parent information in the persistent data in a locally maintained usage record.
The dynamic configuration data cache hit system receives a second use request from the application after having received the network data. When the dynamic configuration data cache hit system inquires that the use record stores the Config1 and the father node information of the persistent data, the Config1 in the persistent data is directly fed back to the application; for configuration fields for which no record exists in the usage record, the configuration field in the network data is fed back to the application.
By adopting the method of the embodiment, when the network data of the dynamic configuration data is not obtained yet, and the use request aiming at the dynamic configuration data is received, the persistent data of the dynamic configuration data is fed back to the sender of the use request, and the record of each configuration field in the persistent data is saved in the use record. Then, under the condition that the network data of the dynamic configuration data is obtained, when a use request aiming at the dynamic configuration data is received, feeding back the configuration field in the persistent data to a sender for the configuration field with a record in the use record; for configuration fields where no record exists in the usage record, the configuration field in the network data is fed back to the sender. In this way, consistency of the dynamic configuration data fed back to the application is guaranteed.
Exemplary Medium
Having described the method of the exemplary embodiment of the present invention, the medium of the exemplary embodiment of the present invention will be described next with reference to fig. 5.
In some possible embodiments, the various aspects of the present invention may also be implemented as a computer-readable medium, on which a program is stored, which, when being executed by a processor, is adapted to carry out the steps of the method of guaranteeing consistency of dynamic configuration data according to various exemplary embodiments of the present invention described in the above section "exemplary method" of this specification.
Specifically, the processor, when executing the program, is configured to implement the following steps:
receiving a use request for the dynamic configuration data;
and according to the use record aiming at the dynamic configuration data, feeding back persistent data or network data of the dynamic configuration data to a sender of the use request.
In a possible embodiment, feeding back persistent data or network data of the dynamic configuration data to a sender of the usage request according to a usage record for the dynamic configuration data includes:
when network data of dynamic configuration data is obtained, for configuration fields with records in the use records, feeding back the configuration fields in the persistent data to a sender of the use request; and for the configuration field of which no record exists in the usage record, feeding back the configuration field in the network data to a sender of the usage request.
In one possible embodiment, after receiving the request for use of the dynamic configuration data, the method further includes:
and when the network data of the dynamic configuration data is not obtained, feeding back the persistent data of the dynamic configuration data to the sender of the use request, and storing the record of each configuration field in the persistent data in the use record.
In one possible embodiment, the method further comprises: and setting unique identifiers for each configuration field in the persistent data of the dynamic configuration data and each configuration field in the network data of the dynamic configuration data.
The unique identifier is the parent node information of the configuration field.
In a possible embodiment, setting a unique identifier for each configuration field in the persistent data of the dynamic configuration data includes: when persistent data of dynamic configuration data are obtained, unique identifiers are injected into each configuration field in the persistent data in a reflection mode.
In one possible embodiment, setting a unique identifier for each configuration field in the network data of the dynamic configuration data includes: when network data of dynamic configuration data is obtained, if the use record exists, unique identification is injected into each configuration field in the network data in a reflection mode.
In one possible embodiment, the method further comprises: and deleting the use record when the service which sends the use request aiming at the dynamic configuration data exits the client or the client is hot started.
It should be noted that: the above-mentioned medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
As shown in fig. 5, a medium 50 according to an embodiment of the present invention is depicted, which may employ a portable compact disc read only memory (CD-ROM) and include a program, and may run on a device. However, the invention is not limited in this respect, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take a variety of forms, including, but not limited to: an electromagnetic signal, an optical signal, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN).
Exemplary devices
Having described the media of an exemplary embodiment of the present invention, the apparatus of an exemplary embodiment of the present invention is next described with reference to FIG. 6.
As shown in fig. 6, the apparatus for guaranteeing consistency of dynamic configuration data according to an embodiment of the present invention may include:
a request receiving module 601, configured to receive a use request for the dynamic configuration data;
the allocating module 602 is configured to feed back persistent data or network data of the dynamic configuration data to a sender of the usage request according to the usage record for the dynamic configuration data.
In a possible implementation, the allocating module 602 is configured to:
in the case of network data of dynamic configuration data being obtained, for a configuration field of a record existing in the usage record, feeding back the configuration field in the persistent data to a sender of the usage request; and for the configuration field of which no record exists in the usage record, feeding back the configuration field in the network data to a sender of the usage request.
In a possible implementation manner, the allocating module 602 is further configured to, in a case that network data of dynamic configuration data is not obtained, feed back persistent data of the dynamic configuration data to a sender of the usage request;
the above-mentioned device still includes:
a recording module 603, configured to store, in the usage record, a record of each configuration field in persistent data, where the persistent data is fed back by the allocation module without obtaining the network data.
In a possible embodiment, the above apparatus further comprises:
an identifier setting module 604, configured to set a unique identifier for each configuration field in the persistent data of the dynamic configuration data and each configuration field in the network data of the dynamic configuration data.
The unique identifier is the parent node information of the configuration field.
In one possible implementation, the identity setting module 604 is configured to:
when persistent data of dynamic configuration data are obtained, unique identifiers are injected into each configuration field in the persistent data in a reflection mode;
when network data of dynamic configuration data are obtained, unique identifiers are injected into each configuration field in the network data in a reflection mode; or, when obtaining the network data of the dynamic configuration data, if the usage record exists, injecting a unique identifier into each configuration field in the network data in a reflection mode.
In a possible implementation manner, the recording module 603 is further configured to delete the usage record when the service sending the usage request for the dynamic configuration data exits from the client or the client is booted.
Exemplary computing device
Having described the method, medium, and apparatus of exemplary embodiments of the present invention, a computing device of exemplary embodiments of the present invention is described next with reference to FIG. 7.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
In some possible implementations, a computing device according to an embodiment of the invention may include at least one processing unit, and at least one memory unit. Wherein the storage unit stores program code which, when executed by the processing unit, causes the processing unit to perform the steps of the method of ensuring consistency of dynamic configuration data according to various exemplary embodiments of the present invention described in the above section "exemplary method" of the present specification.
Computing device 70 according to this embodiment of the invention is described below with reference to FIG. 7. The computing device 70 shown in FIG. 7 is only one example and should not be taken to limit the scope of use and functionality of embodiments of the present invention.
As shown in fig. 7, computing device 70 is embodied in the form of a general purpose computing device. Components of computing device 70 may include, but are not limited to: the at least one processing unit 701 and the at least one memory unit 702 are connected to a bus 703 that connects different system components (including the processing unit 701 and the memory unit 702).
The bus 703 includes a data bus, a control bus, and an address bus.
The storage unit 702 can include readable media in the form of volatile memory, such as Random Access Memory (RAM)7021 and/or cache memory 7022, and can further include readable media in the form of non-volatile memory, such as Read Only Memory (ROM) 7023.
Storage unit 702 may also include a program/utility 7025 having a set (at least one) of program modules 7024, such program modules 7024 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Computing device 70 may also communicate with one or more external devices 704 (e.g., keyboard, pointing device, etc.). Such communication may occur via input/output (I/O) interfaces 705. Moreover, computing device 70 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) through network adapter 706. As shown in fig. 7, network adapter 706 communicates with the other modules of computing device 70 via bus 703. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computing device 70, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
It should be noted that although in the above detailed description several units/modules or sub-units/sub-modules of the apparatus ensuring consistency of the dynamic configuration data are mentioned, such division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.
While the spirit and principles of the invention have been described with reference to several particular embodiments, it is to be understood that the invention is not limited to the disclosed embodiments, nor is the division of aspects, which is for convenience only as the features in such aspects may not be combined to benefit. The invention is intended to cover various modifications and equivalent arrangements included within the spirit and scope of the appended claims.

Claims (14)

1. A method for ensuring consistency of dynamic configuration data, comprising:
receiving a use request for the dynamic configuration data;
in the case of network data of dynamic configuration data, feeding back a configuration field in persistent data to a sender of the use request for the configuration field of a record existing in a use record of the dynamic configuration data; and for the configuration field of which no record exists in the usage record, feeding back the configuration field in the network data to the sender of the usage request.
2. The method of claim 1, wherein after receiving the request for use of the dynamic configuration data, further comprising:
and under the condition that the network data of the dynamic configuration data is not obtained, feeding back the persistent data of the dynamic configuration data to the sender of the use request, and storing the record of each configuration field in the persistent data in the use record.
3. The method of any of claims 1-2, further comprising:
and setting unique identifiers for each configuration field in the persistent data of the dynamic configuration data and each configuration field in the network data of the dynamic configuration data.
4. The method of claim 3, wherein the unique identifier is parent node information of a configuration field.
5. The method according to claim 3, wherein the setting a unique identifier for each configuration field in the persistent data of the dynamic configuration data comprises: under the condition of obtaining persistent data of dynamic configuration data, injecting unique identification into each configuration field in the persistent data in a reflection mode;
the setting of the unique identifier for each configuration field in the network data of the dynamic configuration data includes: under the condition of obtaining network data of dynamic configuration data, injecting unique identification into each configuration field in the network data in a reflection mode; or, in the case of obtaining network data of dynamic configuration data, if the usage record exists, injecting a unique identifier into each configuration field in the network data in a reflection manner.
6. The method of any of claims 1-2, further comprising: and deleting the use record when the service which sends the use request aiming at the dynamic configuration data exits the client or the client is started in a hot mode.
7. An apparatus for ensuring consistency of dynamic configuration data, comprising:
the request receiving module is used for receiving a use request aiming at the dynamic configuration data;
the allocation module is used for feeding back the configuration field in the persistent data to the sender of the use request for the configuration field with the record in the use record aiming at the dynamic configuration data under the condition that the network data of the dynamic configuration data is obtained; and for the configuration field of which no record exists in the usage record, feeding back the configuration field in the network data to the sender of the usage request.
8. The apparatus of claim 7, wherein the allocating module is further configured to, in a case that network data of dynamic configuration data is not obtained, feed back persistent data of dynamic configuration data to a sender of the usage request;
the device further comprises:
and the recording module is used for storing a record of each configuration field in persistent data in the use record, wherein the persistent data is fed back by the allocation module under the condition that the network data is not obtained.
9. The apparatus of any of claims 7-8, further comprising:
and the identification setting module is used for setting unique identifications for each configuration field in the persistent data of the dynamic configuration data and each configuration field in the network data of the dynamic configuration data.
10. The apparatus of claim 9, wherein the unique identifier is parent node information of a configuration field.
11. The apparatus of claim 9, wherein the identity setting module is configured to:
under the condition of obtaining persistent data of dynamic configuration data, injecting unique identification into each configuration field in the persistent data in a reflection mode;
under the condition of obtaining network data of dynamic configuration data, injecting unique identification into each configuration field in the network data in a reflection mode; or, in the case of obtaining network data of dynamic configuration data, if the usage record exists, injecting a unique identifier into each configuration field in the network data in a reflection manner.
12. The apparatus according to any of claims 7-8, wherein the allocating module is further configured to delete the usage record when a service sending the usage request for the dynamic configuration data exits the client or the client is booted.
13. A medium storing a computer program, characterized in that the program, when being executed by a processor, carries out the method according to any one of claims 1-6.
14. A computing device, comprising:
one or more processors;
storage means for storing one or more programs;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method recited in any of claims 1-6.
CN201811197351.0A 2018-10-15 2018-10-15 Method and device for ensuring consistency of dynamic configuration data Active CN109309588B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811197351.0A CN109309588B (en) 2018-10-15 2018-10-15 Method and device for ensuring consistency of dynamic configuration data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811197351.0A CN109309588B (en) 2018-10-15 2018-10-15 Method and device for ensuring consistency of dynamic configuration data

Publications (2)

Publication Number Publication Date
CN109309588A CN109309588A (en) 2019-02-05
CN109309588B true CN109309588B (en) 2022-01-11

Family

ID=65225239

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811197351.0A Active CN109309588B (en) 2018-10-15 2018-10-15 Method and device for ensuring consistency of dynamic configuration data

Country Status (1)

Country Link
CN (1) CN109309588B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113722007B (en) * 2021-08-24 2023-11-03 杭州迪普科技股份有限公司 Configuration method, device and system of VPN branch equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316443A (en) * 2011-09-21 2012-01-11 中兴通讯股份有限公司 Storage system for use information of mobile terminal and method
CN106452810A (en) * 2015-08-05 2017-02-22 中兴通讯股份有限公司 Network management system configuration data management method and apparatus
CN108073630A (en) * 2016-11-16 2018-05-25 北京京东尚科信息技术有限公司 A kind of service search access management method and system based on mobilism configuration
CN108632078A (en) * 2018-03-13 2018-10-09 网宿科技股份有限公司 A kind of acquisition methods of configuration

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10250449B2 (en) * 2016-03-08 2019-04-02 Nicira, Inc. Method and mechanism for efficiently managing flows

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102316443A (en) * 2011-09-21 2012-01-11 中兴通讯股份有限公司 Storage system for use information of mobile terminal and method
CN106452810A (en) * 2015-08-05 2017-02-22 中兴通讯股份有限公司 Network management system configuration data management method and apparatus
CN108073630A (en) * 2016-11-16 2018-05-25 北京京东尚科信息技术有限公司 A kind of service search access management method and system based on mobilism configuration
CN108632078A (en) * 2018-03-13 2018-10-09 网宿科技股份有限公司 A kind of acquisition methods of configuration

Also Published As

Publication number Publication date
CN109309588A (en) 2019-02-05

Similar Documents

Publication Publication Date Title
US11875171B2 (en) Blockchain network transaction processing method, apparatus, device, and storage medium
US10067692B2 (en) Method and apparatus for backing up and restoring cross-virtual machine application
CN110196729B (en) Application program updating method, device and apparatus and storage medium
CN105100051A (en) Method and system for realizing data resource access right control
US20160210184A1 (en) Managing spaces in memory
EP4052126A1 (en) Management of multiple physical function non-volatile memory devices
US20160196079A1 (en) Reusing storage blocks of a file system
EP2549381A2 (en) Control computer and data accessing method
CN112787795A (en) Cloud server clock synchronization method, computer storage medium and electronic device
US11194629B2 (en) Handling expiration of resources allocated by a resource manager running a data integration job
CN109309588B (en) Method and device for ensuring consistency of dynamic configuration data
CN114356521A (en) Task scheduling method and device, electronic equipment and storage medium
US20170315854A1 (en) Error determination from logs
CN104517067A (en) Method, device and system for data access
US10002066B2 (en) Targeted multi-tiered software stack serviceability
CN111767169B (en) Data processing method, device, electronic equipment and storage medium
US9870234B2 (en) Automatic identification of returned merchandise in a data center
CN111858020B (en) User resource limiting method and device and computer storage medium
CN113127258A (en) Data backup method, device, equipment and medium
CN105069081A (en) Shared resource access method and device
CN113158173B (en) Account number allocation method, medium, device and computing equipment
CN115469807A (en) Disk function configuration method, device, equipment and storage medium
CN108984238A (en) Gesture processing method, device and the electronic equipment of application program
US10503722B2 (en) Log management apparatus and log management method
US20160210139A1 (en) Managing a code load

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