CN110190997A - Configuration information obtaining method, device, equipment and computer readable storage medium - Google Patents

Configuration information obtaining method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN110190997A
CN110190997A CN201910474315.2A CN201910474315A CN110190997A CN 110190997 A CN110190997 A CN 110190997A CN 201910474315 A CN201910474315 A CN 201910474315A CN 110190997 A CN110190997 A CN 110190997A
Authority
CN
China
Prior art keywords
configuration information
configuration
operation system
local memory
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910474315.2A
Other languages
Chinese (zh)
Inventor
曹威
卢三雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910474315.2A priority Critical patent/CN110190997A/en
Publication of CN110190997A publication Critical patent/CN110190997A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Exchange Systems With Centralized Control (AREA)

Abstract

The present invention relates to financial technology and distributed structure/architecture field, and disclose a kind of configuration information obtaining method, this method comprises: judging in operation system caching when receiving the configuration information call request for calling service to send with the presence or absence of configuration information corresponding with the configuration information call request;If the configuration information is not present in the operation system caching, judge in the operation system local memory with the presence or absence of the configuration information;If the configuration information is not present in the operation system local memory, the configuration information is pulled from preset configuration management platform;The configuration information pulled is returned into the calling service.The invention also discloses a kind of configuration information acquisition device, equipment and a kind of computer readable storage mediums.The present invention can be improved the flexibility that operation system obtains configuration information, avoid configuring redundancy.

Description

Configuration information obtaining method, device, equipment and computer readable storage medium
Technical field
The present invention relates to financial technology (Fintech) technical field more particularly to configuration information obtaining method, device, set Standby and computer readable storage medium.
Background technique
With the development of computer technology, more and more technology (big data, distribution, block chain Blockchain, people Work intelligence etc.) it applies in financial field, traditional financial industry gradually changes to financial technology (Fintech), but due to finance The safety of industry, requirement of real-time, also to technology, more stringent requirements are proposed.
Currently, all kinds of financial institutions (such as business bank, securities broker company etc.) by distributed business system handle and Storage service data.In order to realize that the heat of operation system configuration updates, existing scheme is usually that a unified configuration pipe is arranged Platform is first configured in configuration management platform modifying, when the configuration information of operation system needs to modify or update then by matching It sets management platform and new configuration information is pushed to each operation system, operation system is received newly with postponing, is updated directly into In memory, Dynamic Thermal can be realized in this way and update configuration.
The defect of the hot update mode of above-mentioned configuration is: operation system is only capable of passively receiving what configuration management platform issued Configuration information, the flexibility for causing operation system to obtain configuration information is not high, in addition, certain configurations that configuration management platform issues The possible operation system of information all takes less than for a long time, so leads to operation system configuring redundancy.
Summary of the invention
It is a primary object of the present invention to propose a kind of configuration information obtaining method, device, equipment and computer-readable deposit Storage media, it is intended to improve the flexibility that operation system obtains configuration information, avoid configuring redundancy.
To achieve the above object, the present invention provides a kind of configuration information obtaining method, the configuration information obtaining method packet Include following steps:
When receive call service send configuration information call request when, judge operation system caching in the presence or absence of with The corresponding configuration information of the configuration information call request;
If the configuration information is not present in operation system caching, judge be in the operation system local memory It is no that there are the configuration informations;
If the configuration information is not present in the operation system local memory, pulled from preset configuration management platform The configuration information;
The configuration information pulled is returned into the calling service.
Preferably, described the step of pulling the configuration information from preset configuration management platform, includes:
By distributed message middleware, configuration information is sent to preset configuration management platform and pulls request;
Receive the configuration information of the distributed message middleware forwarding returned by the configuration management platform.
Preferably, the configuration information obtaining method further include:
When receiving the broadcast message for the change configuration that the distributed message middleware is sent, determine that the broadcast disappears The type for the configuration change event for including in breath;
Corresponding configuration change operation is executed according to the type of the configuration change event.
Preferably, described when receiving the configuration information call request for calling service to send, judge that operation system caches In whether there is configuration information corresponding with the configuration information call request the step of before, further includes:
Services package installation instruction is received, according to the services package installation instruction when the operation system installs services package, institute Services package is stated for realizing the monitoring of the broadcast message sent to the distributed message middleware.
Preferably, described the step of executing the operation of corresponding configuration change according to the type of the configuration change event, wraps It includes:
When the type of the configuration change event is newly-increased configuration event, updates configuration event or full dose configuration update event When, judge latest configuration information corresponding with the configuration change event whether is carried in the broadcast message;
If not carrying latest configuration information corresponding with the configuration change event in the broadcast message, pass through institute Distributed message middleware is stated, pulls the latest configuration information from the configuration management platform;
According to the latest configuration information pulled, the operation system local memory and the operation system are cached It carries out corresponding newly-increased configuration, update configuration or full dose configuration update operation;
When the type of the configuration change event is to delete configuration event, from the operation system local memory and described Corresponding configuration information is deleted in operation system caching.
Preferably, described to judge whether to carry newest match corresponding with the configuration change event in the broadcast message After the step of confidence ceases, further includes:
If latest configuration information corresponding with the configuration change event is carried in the broadcast message, according to carrying The latest configuration information, corresponding newly-increased match is carried out to the operation system local memory and operation system caching It sets, update configuration or full dose configuration update operation.
Preferably, the configuration information that will be pulled return to the calling service the step of include:
The configuration information pulled is saved into the operation system local memory, and flushes to the business system After in system caching, the calling service is returned to.
Preferably, described when receiving the configuration information call request for calling service to send, judge that operation system caches In whether there is configuration information corresponding with the configuration information call request the step of before, further includes:
When operation system starting, the starting being pre-stored in the operation system local memory is read with confidence Breath;
The operation system starting is controlled according to the starting configuration information.
In addition, to achieve the above object, the present invention also provides a kind of configuration information acquisition device, the configuration information is obtained Device includes:
First judgment module, for judging business system when receiving the configuration information call request for calling service to send It whether there is configuration information corresponding with the configuration information call request in system caching;
Second judgment module, if judging the industry for the configuration information to be not present in operation system caching It whether there is the configuration information in business system local memory;
Module is pulled, if matching for the configuration information to be not present in the operation system local memory from preset It sets management platform and pulls the configuration information;
Return module is serviced for the configuration information pulled to be returned to the calling.
Preferably, the module that pulls is also used to:
By distributed message middleware, configuration information is sent to preset configuration management platform and pulls request;
Receive the configuration information of the distributed message middleware forwarding returned by the configuration management platform.
Preferably, the configuration information acquisition device further include:
Determining module, for when receiving the broadcast message for the change configuration that the distributed message middleware is sent, Determine the type for the configuration change event for including in the broadcast message;
Execution module is operated for executing corresponding configuration change according to the type of the configuration change event.
Preferably, the configuration information acquisition device further include:
Module is installed, for receiving services package installation instruction, the operation system is worked as according to the services package installation instruction Install services package, the services package for realizing the broadcast message that the distributed message middleware is sent monitoring.
Preferably, the execution module is also used to:
When the type of the configuration change event is newly-increased configuration event, updates configuration event or full dose configuration update event When, judge latest configuration information corresponding with the configuration change event whether is carried in the broadcast message;
If not carrying latest configuration information corresponding with the configuration change event in the broadcast message, pass through institute Distributed message middleware is stated, pulls the latest configuration information from the configuration management platform;
According to the latest configuration information pulled, the operation system local memory and the operation system are cached It carries out corresponding newly-increased configuration, update configuration or full dose configuration update operation;
When the type of the configuration change event is to delete configuration event, from the operation system local memory and described Corresponding configuration information is deleted in operation system caching.
Preferably, the execution module is also used to:
If latest configuration information corresponding with the configuration change event is carried in the broadcast message, according to carrying The latest configuration information, corresponding newly-increased match is carried out to the operation system local memory and operation system caching It sets, update configuration or full dose configuration update operation.
Preferably, the return module is also used to:
The configuration information pulled is saved into the operation system local memory, and flushes to the business system After in system caching, the calling service is returned to.
Preferably, the configuration information acquisition device further include:
Read module, for when operation system starting, reading to be pre-stored in the operation system local memory In starting configuration information;
Starting module starts for controlling the operation system according to the starting configuration information.
In addition, to achieve the above object, the present invention also provides a kind of configuration informations to obtain equipment, the configuration information is obtained Equipment includes: memory, processor and is stored in the configuration information that can be run on the memory and on the processor and obtains Program fetch, the configuration information obtain when program is executed by the processor and realize configuration information obtaining method as described above Step.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium It is stored with configuration information on storage medium and obtains program, the configuration information obtains when program is executed by processor and realizes institute as above The step of configuration information obtaining method stated.
The present invention when receive call service send configuration information call request when, judge operation system caching in whether In the presence of configuration information corresponding with the configuration information call request;If matching confidence there is no described in the operation system caching Breath then judges in the operation system local memory with the presence or absence of the configuration information;If in the operation system local memory There is no the configuration informations, then pull the configuration information from preset configuration management platform;The configuration that will be pulled Information returns to the calling service.Compared with the prior art, the present invention realizes operation system according to current calling service It needs, when required configuration information is locally not present, from configuration information needed for configuration management platform active pull, thus this Invention improves the flexibility that operation system obtains configuration information, avoids configuring redundancy.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of configuration information obtaining method first embodiment of the present invention;
Fig. 3 pulls configuration from configuration management platform by distributed message middleware for operation system in the embodiment of the present invention The schematic diagram of information;
Fig. 4 issues configuration to operation system by distributed message middleware for configuration management platform in the embodiment of the present invention The schematic diagram of altering event.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Configuration information of the embodiment of the present invention, which obtains equipment, can be the equipment such as PC machine, server.
As shown in Figure 1, it may include: processor 1001, such as CPU that the configuration information, which obtains equipment, network interface 1004, User interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing between these components Connection communication.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional User interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard Wireline interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable Memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned The storage device of processor 1001.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe that module, Subscriber Interface Module SIM and configuration information obtain program.
In equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for that the configuration information stored in memory 1005 is called to obtain program, and execute following configuration information obtaining methods Operation in embodiment.
Based on above-mentioned hardware configuration, configuration information obtaining method embodiment of the present invention is proposed.
It is the flow diagram of configuration information obtaining method first embodiment of the present invention, the method packet referring to Fig. 2, Fig. 2 It includes:
Step S10 judges that operation system is in caching when receiving the configuration information call request for calling service to send It is no to there is configuration information corresponding with the configuration information call request;
The present embodiment configuration information obtaining method be applied to operation system, the operation system can for bank, securities broker company, The operation system of the financial institutions such as insurance company, for the various financial circles such as handling and recording the savings of user, transfer accounts, invest Business.
When operation system receive call service send configuration information call request when, first determine whether be in own cache It is no to there is configuration information corresponding with the configuration information call request.Wherein, configuration information includes system operational parameters and business Operating parameter, system operational parameters include but is not limited to the parameters such as database name, system account, password, mainly serve for ensuring industry The normal operation of business system itself, service operation parameter include but is not limited to service parameter initial value, file path, file address Etc. parameters, mainly serve for ensuring in operation system all kinds of business (such as save, transfer accounts, investing various financial business) according to reality Business demand runs well.The service of calling refers to needing to call that the service of configuration information, such as document analysis service need to adjust With relevant file configuration information, data query service needs to call the configuration information etc. of Relational database table.
If there is configuration information corresponding with configuration information call request in operation system caching, directly read from caching It takes the configuration information to return to calling service to use, so ensure that the effective acquisition of configuration information.
Step S20 judges that the operation system is local if the configuration information is not present in operation system caching It whether there is the configuration information in memory;
In the step, configuration information corresponding with configuration information call request is not present in operation system caching, illustrates this Configuration information is called for the first time after operation system enables, and is further judged in operation system local memory at this time with the presence or absence of corresponding Configuration information.
If there is configuration information corresponding with configuration information call request in operation system local memory, first by the configuration Information is loaded into caching from local memory, and the configuration information is then read from caching and returns to calling service use.
Step S30, if the configuration information is not present in the operation system local memory, from preset configuration management Platform pulls the configuration information;
In the step, when there is no configuration informations corresponding with configuration information call request in operation system local memory When, operation system needs actively to pull required configuration information from preset configuration management platform.Wherein, configuration management platform is used It is managed in the configuration information to all operation systems for accessing it, and preserves each business always on the configuration management platform The latest configuration information of system.
In one embodiment, above-mentioned steps S30 may include: by distributed message middleware, to preset configuration Management platform sends configuration information and pulls request;Receive distributed message middleware forwarding by the configuration management platform The configuration information of return.
It is that operation system passes through distributed message middleware from configuration management platform in the embodiment of the present invention referring to Fig. 3, Fig. 3 Pull the schematic diagram of configuration information.In the present embodiment, a distribution can be set between configuration management platform and operation system Formula message-oriented middleware, wherein configuration management platform is as server-side (Server), operation system as client (Client), Client request, which pulls configuration information from Server, to be realized by the synchronization message mode of distributed message middleware, When Client pulls message, request message is issued into distributed message middleware, distributed message middleware can be by this message It being consumed to service provider Server, Server can return to one response message of distributed message middleware after having consumed, point Cloth message-oriented middleware can find the corresponding origination message of this response message, and response message is transmitted to Client.
By the way that distributed message middleware is arranged, the decoupling of configuration management platform and operation system is realized, this point is passed through Cloth framework, the configuration information that can satisfy high concurrent pull demand.
In another embodiment, distributed message middleware can also be not provided with, but from operation system directly to matching It sets management platform and sends configuration information and pull request, to pull configuration information, when specific implementation can flexible setting.
The configuration information pulled is returned to the calling and serviced by step S40.
In the step, as an implementation, operation system is pulled from configuration management platform to after configuration information, can be with The configuration information pulled is only returned into calling service, for calling service to use.
As another embodiment, above-mentioned steps S40 may further include: the configuration information pulled is protected It deposits into the operation system local memory, and after flushing in operation system caching, returns to callings and service.
That is, operation system can first save the configuration information pulled into local memory, then flush in caching, It finally returns to and is serviced to calling.So ensure that operation system, to be all stored in local memory gentle for used configuration information for the first time In depositing, in order to it is subsequent need using when directly from local acquisition, improve the acquisition efficiency of configuration information.
In the present embodiment, when receiving the configuration information call request for calling service to send, judge that operation system is slow It whether there is configuration information corresponding with the configuration information call request in depositing;If institute is not present in the operation system caching Configuration information is stated, then is judged in the operation system local memory with the presence or absence of the configuration information;If the operation system sheet The configuration information is not present in ground memory, then pulls the configuration information from preset configuration management platform;By what is pulled The configuration information returns to the calling service.Compared with the prior art, the present embodiment realizes operation system according to current The needs for calling service, when required configuration information is locally not present, from configuration needed for configuration management platform active pull Information, to avoid configuring redundancy embodiment improves the flexibility that operation system obtains configuration information.
Further, it is based on configuration information obtaining method first embodiment of the present invention, proposes that configuration information of the present invention obtains Method second embodiment.
In the present embodiment, the configuration information obtaining method can also include: and work as to receive in the distributed message Between part send change configuration broadcast message when, determine the type for the configuration change event for including in the broadcast message;Root Corresponding configuration change operation is executed according to the type of the configuration change event.
It is that configuration management platform passes through distributed message middleware to operation system in the embodiment of the present invention referring to Fig. 4, Fig. 4 Issue the schematic diagram of configuration change event.The configuration update event at the end Server is all the broadcast by distributed message middleware Message informing is to the end Client, and specifically, the end Server sends broadcast messages to distributed message middleware, and Server will not It waits and subscribes to message person (Client) response message, as long as can return to after issuing the success of distributed message middleware, it is believed that hair Send success, distributed message middleware receives all message subscribing persons (Client) that registration can be searched after broadcast message, so This broadcast message is sent to all subscribers (Client) one by one afterwards.
In the present embodiment, operation system is configured based on event update, specifically, when operation system receives distributed message When the broadcast message for the change configuration that middleware is sent, the type for the configuration change event for including in the broadcast message is first determined, Then corresponding configuration change is executed according to the type of the configuration change event to operate.Wherein, distributed message middleware can be with It is based on Apache Kafka, ActiveMQ (Message Queue, messaging bus), RabbitMQ or RocketMQ equal distribution The distributed message middleware of formula message queue, when specific implementation, can flexible choices.
Further, to guarantee that operation system can normally receive the broadcast message of distributed message middleware transmission, It can also include: to receive services package installation instruction before step S10, the business is worked as according to the services package installation instruction System install services package, the services package for realizing the broadcast message that the distributed message middleware is sent monitoring.
In the present embodiment, configuration management platform client services package can be provided to operation system, which can be real The acquisition of existing configuration information, the monitoring for updating and broadcasting the message to distributed message middleware.When there is new operation system to think When accessing configuration management platform, it is only necessary to the services package be installed, the monitoring of corresponding broadcast service is added, configuration pipe can be realized The access of platform does not need the corresponding code for realizing a set of configuration management platform client of each operation system, therefore has Extremely strong portability.
Further, the type of configuration change event may include newly-increased configuration event, update configuration event, full dose configuration Update event and deletion configuration event, at this point, described execute corresponding configuration change according to the type of the configuration change event The step of operation may include:
When the type of the configuration change event is newly-increased configuration event, updates configuration event or full dose configuration update event When, judge latest configuration information corresponding with the configuration change event whether is carried in the broadcast message;If described wide Broadcast and do not carry latest configuration information corresponding with the configuration change event in message, then by the distributed message among Part pulls the latest configuration information from the configuration management platform;According to the latest configuration information pulled, to described Operation system local memory and operation system caching carry out corresponding newly-increased configuration, update configuration or full dose configuration and update behaviour Make;When the type of the configuration change event is to delete configuration event, from the operation system local memory and the business Corresponding configuration information is deleted in system cache.
Specifically, when the type of configuration change event is newly-increased configuration event, updates configuration event or full dose configuration update When event, operation system first determines whether carry corresponding latest configuration information in broadcast message, if in broadcast message not Corresponding latest configuration information is carried, then operation system is actively drawn by distributed message middleware from configuration management platform Latest configuration information is taken, then, deposits into capable correspondence according to the latest configuration information pulled is gentle to operation system local memory Newly-increased configuration, update configuration or full dose configuration update operation.It should be noted that this actively managed from configuration by operation system The method that platform pulls latest configuration information can also carry out pulling retrying operation, to guarantee if once pulling unsuccessful The reliability of latest configuration acquisition of information.When the type of configuration change event is to delete configuration event, then directly from business system Corresponding configuration information is deleted in system local memory and caching.
Further, it is described judge whether to carry in the broadcast message it is corresponding newest with the configuration change event After the step of configuration information, further includes: if being carried in the broadcast message corresponding newest with the configuration change event Configuration information, then it is slow to the operation system local memory and the operation system according to the latest configuration information of carrying It deposits into the corresponding newly-increased configuration of row, update configuration or full dose configuration and updates operation.
Specifically, if carrying latest configuration information corresponding with configuration change event, operation system in broadcast message Can be directly according to the latest configuration information, the corresponding newly-increased configuration of row, update configuration or the full dose of depositing into gentle to local memory is matched Set update operation.
Hereby it is achieved that operation system is configured based on the configuration change event update in broadcast message.
Further, it is based on configuration information obtaining method first embodiment of the present invention, proposes that configuration information of the present invention obtains Method 3rd embodiment.
It in the present embodiment, can also include: to be read preparatory when operation system starting before above-mentioned steps S10 The starting configuration information being stored in the operation system local memory;The business system is controlled according to the starting configuration information System starting.
In view of in the prior art, operation system does not save configuration information locally, and operation system on startup must be from Configuration management platform, which pulls all configuration informations, normally to be started, and this mode is flat due to being strongly dependent upon unified configuration management Platform, when the exception of starting failure or delay machine etc occurs in configuration management platform, will lead to operation system can not normally make With for this purpose, can save starting configuration information in operation system local memory in advance in the present embodiment, which matches confidence Breath is that operation system normally starts required configuration information, such as system start-up parameter;When operation system starting, only need to read The starting configuration information being pre-stored in operation system local memory controls operation system according to the starting configuration information and opens Dynamic, thus operation system can start use without relying on configuration management platform.And after operation system starting, also simultaneously It does not need to go to pull all configuration informations at the first time, only when using a certain configuration for the first time, just needs to be implemented configuration The acquisition of information thus avoids configuration information redundancy, is conducive to the resource utilization for improving operation system.
The present invention also provides a kind of configuration information acquisition device.The configuration information acquisition device includes:
First judgment module, for judging business system when receiving the configuration information call request for calling service to send It whether there is configuration information corresponding with the configuration information call request in system caching;
Second judgment module, if judging the industry for the configuration information to be not present in operation system caching It whether there is the configuration information in business system local memory;
Module is pulled, if matching for the configuration information to be not present in the operation system local memory from preset It sets management platform and pulls the configuration information;
Return module is serviced for the configuration information pulled to be returned to the calling.
Further, the module that pulls is also used to:
By distributed message middleware, configuration information is sent to preset configuration management platform and pulls request;
Receive the configuration information of the distributed message middleware forwarding returned by the configuration management platform.
Further, the configuration information acquisition device further include:
Determining module, for when receiving the broadcast message for the change configuration that the distributed message middleware is sent, Determine the type for the configuration change event for including in the broadcast message;
Execution module is operated for executing corresponding configuration change according to the type of the configuration change event.
Further, the configuration information acquisition device further include:
Module is installed, for receiving services package installation instruction, the operation system is worked as according to the services package installation instruction Install services package, the services package for realizing the broadcast message that the distributed message middleware is sent monitoring.
Further, the execution module is also used to:
When the type of the configuration change event is newly-increased configuration event, updates configuration event or full dose configuration update event When, judge latest configuration information corresponding with the configuration change event whether is carried in the broadcast message;
If not carrying latest configuration information corresponding with the configuration change event in the broadcast message, pass through institute Distributed message middleware is stated, pulls the latest configuration information from the configuration management platform;
According to the latest configuration information pulled, the operation system local memory and the operation system are cached It carries out corresponding newly-increased configuration, update configuration or full dose configuration update operation;
When the type of the configuration change event is to delete configuration event, from the operation system local memory and described Corresponding configuration information is deleted in operation system caching.
Further, the execution module is also used to:
If latest configuration information corresponding with the configuration change event is carried in the broadcast message, according to carrying The latest configuration information, corresponding newly-increased match is carried out to the operation system local memory and operation system caching It sets, update configuration or full dose configuration update operation.
Further, the return module is also used to:
The configuration information pulled is saved into the operation system local memory, and flushes to the business system After in system caching, the calling service is returned to.
Further, the configuration information acquisition device further include:
Read module, for when operation system starting, reading to be pre-stored in the operation system local memory In starting configuration information;
Starting module starts for controlling the operation system according to the starting configuration information.
Method performed by above-mentioned each program module can refer to each embodiment of configuration information obtaining method of the present invention, herein It repeats no more.
The present invention also provides a kind of computer readable storage mediums.
It is stored with configuration information on computer readable storage medium of the present invention and obtains program, the configuration information obtains program The step of configuration information obtaining method as described above is realized when being executed by processor.
Wherein, the configuration information acquisition program run on the processor is performed realized method and can refer to this The each embodiment of invention configuration information obtaining method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (18)

1. a kind of configuration information obtaining method, which is characterized in that the configuration information obtaining method includes the following steps:
When receive call service send configuration information call request when, judge operation system caching in the presence or absence of with it is described The corresponding configuration information of configuration information call request;
If the configuration information is not present in the operation system caching, judge whether deposit in the operation system local memory In the configuration information;
If the configuration information is not present in the operation system local memory, pulled from preset configuration management platform described Configuration information;
The configuration information pulled is returned into the calling service.
2. configuration information obtaining method as described in claim 1, which is characterized in that described to be drawn from preset configuration management platform The step of taking the configuration information include:
By distributed message middleware, configuration information is sent to preset configuration management platform and pulls request;
Receive the configuration information of the distributed message middleware forwarding returned by the configuration management platform.
3. configuration information obtaining method as claimed in claim 2, which is characterized in that the configuration information obtaining method also wraps It includes:
When receiving the broadcast message for the change configuration that the distributed message middleware is sent, determine in the broadcast message The type for the configuration change event for including;
Corresponding configuration change operation is executed according to the type of the configuration change event.
4. configuration information obtaining method as claimed in claim 3, which is characterized in that described ought receive calls service transmission When configuration information call request, judge in operation system caching with the presence or absence of configuration corresponding with the configuration information call request Before the step of information, further includes:
Services package installation instruction is received, according to the services package installation instruction when the operation system installs services package, the clothes The monitoring that business is wrapped for realizing the broadcast message sent to the distributed message middleware.
5. configuration information obtaining method as described in claim 3 or 4, which is characterized in that described according to the configuration change thing The type of part executes the step of corresponding configuration change operation and includes:
When the type of the configuration change event is newly-increased configuration event, updates configuration event or full dose configuration update event, Judge latest configuration information corresponding with the configuration change event whether is carried in the broadcast message;
If not carrying latest configuration information corresponding with the configuration change event in the broadcast message, pass through described point Cloth message-oriented middleware pulls the latest configuration information from the configuration management platform;
According to the latest configuration information pulled, the operation system local memory and operation system caching are carried out Corresponding newly-increased configuration updates configuration or full dose configuration update operation;
When the type of the configuration change event is to delete configuration event, from the operation system local memory and the business Corresponding configuration information is deleted in system cache.
6. configuration information obtaining method as claimed in claim 5, which is characterized in that it is described judge in the broadcast message whether After the step of carrying latest configuration information corresponding with the configuration change event, further includes:
If latest configuration information corresponding with the configuration change event is carried in the broadcast message, according to the institute of carrying State latest configuration information, to the operation system local memory and the operation system caching carry out it is corresponding it is newly-increased configuration, more New configuration or full dose configuration update operation.
7. configuration information obtaining method as described in claim 1, which is characterized in that the configuration information that will be pulled Returning to the step of calling services includes:
The configuration information pulled is saved into the operation system local memory, and it is slow to flush to the operation system After depositing, the calling service is returned to.
8. configuration information obtaining method as described in claim 1, which is characterized in that described ought receive calls service transmission When configuration information call request, judge in operation system caching with the presence or absence of configuration corresponding with the configuration information call request Before the step of information, further includes:
When operation system starting, the starting configuration information being pre-stored in the operation system local memory is read;
The operation system starting is controlled according to the starting configuration information.
9. a kind of configuration information acquisition device, which is characterized in that the configuration information acquisition device includes:
First judgment module, for when receiving the configuration information call request for calling service to send, judging that operation system is slow It whether there is configuration information corresponding with the configuration information call request in depositing;
Second judgment module, if judging the business system for the configuration information to be not present in operation system caching It whether there is the configuration information in local memory of uniting;
Module is pulled, if managing for the configuration information to be not present in the operation system local memory from preset configuration Platform pulls the configuration information;
Return module is serviced for the configuration information pulled to be returned to the calling.
10. configuration information acquisition device as claimed in claim 9, which is characterized in that the module that pulls is also used to:
By distributed message middleware, configuration information is sent to preset configuration management platform and pulls request;
Receive the configuration information of the distributed message middleware forwarding returned by the configuration management platform.
11. configuration information acquisition device as claimed in claim 10, which is characterized in that the configuration information acquisition device also wraps It includes:
Determining module, for determining when receiving the broadcast message for the change configuration that the distributed message middleware is sent The type for the configuration change event for including in the broadcast message;
Execution module is operated for executing corresponding configuration change according to the type of the configuration change event.
12. configuration information acquisition device as claimed in claim 11, which is characterized in that the configuration information acquisition device also wraps It includes:
Module is installed, for receiving services package installation instruction, according to the services package installation instruction when the operation system is installed Services package, the services package for realizing the broadcast message that the distributed message middleware is sent monitoring.
13. the configuration information acquisition device as described in claim 11 or 12, which is characterized in that the execution module is also used to:
When the type of the configuration change event is newly-increased configuration event, updates configuration event or full dose configuration update event, Judge latest configuration information corresponding with the configuration change event whether is carried in the broadcast message;
If not carrying latest configuration information corresponding with the configuration change event in the broadcast message, pass through described point Cloth message-oriented middleware pulls the latest configuration information from the configuration management platform;
According to the latest configuration information pulled, the operation system local memory and operation system caching are carried out Corresponding newly-increased configuration updates configuration or full dose configuration update operation;
When the type of the configuration change event is to delete configuration event, from the operation system local memory and the business Corresponding configuration information is deleted in system cache.
14. configuration information acquisition device as claimed in claim 13, which is characterized in that the execution module is also used to:
If latest configuration information corresponding with the configuration change event is carried in the broadcast message, according to the institute of carrying State latest configuration information, to the operation system local memory and the operation system caching carry out it is corresponding it is newly-increased configuration, more New configuration or full dose configuration update operation.
15. configuration information acquisition device as claimed in claim 9, which is characterized in that the return module is also used to:
The configuration information pulled is saved into the operation system local memory, and it is slow to flush to the operation system After depositing, the calling service is returned to.
16. configuration information acquisition device as claimed in claim 9, which is characterized in that the configuration information acquisition device also wraps It includes:
Read module, for when operation system starting, reading to be pre-stored in the operation system local memory Start configuration information;
Starting module starts for controlling the operation system according to the starting configuration information.
17. a kind of configuration information obtains equipment, which is characterized in that it includes: memory, processor that the configuration information, which obtains equipment, And be stored in the configuration information that can be run on the memory and on the processor and obtain program, the configuration information obtains It realizes when program is executed by the processor such as the step of configuration information obtaining method described in any item of the claim 1 to 8.
18. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium with confidence Breath obtains program, and the configuration information is obtained when program is executed by processor and realized as described in any item of the claim 1 to 8 The step of configuration information obtaining method.
CN201910474315.2A 2019-05-31 2019-05-31 Configuration information obtaining method, device, equipment and computer readable storage medium Pending CN110190997A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910474315.2A CN110190997A (en) 2019-05-31 2019-05-31 Configuration information obtaining method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910474315.2A CN110190997A (en) 2019-05-31 2019-05-31 Configuration information obtaining method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN110190997A true CN110190997A (en) 2019-08-30

Family

ID=67719683

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910474315.2A Pending CN110190997A (en) 2019-05-31 2019-05-31 Configuration information obtaining method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN110190997A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597600A (en) * 2019-09-20 2019-12-20 中国银行股份有限公司 Method for modifying application configuration parameters of distributed system and distributed system
CN111046102A (en) * 2019-11-27 2020-04-21 复旦大学 High-performance block chain service system based on ether house
CN111083219A (en) * 2019-12-11 2020-04-28 深信服科技股份有限公司 Request processing method, device, equipment and computer readable storage medium
CN111221587A (en) * 2019-11-14 2020-06-02 杭州安恒信息技术股份有限公司 Management scheduling method and device for configuration center
CN111694868A (en) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 Data caching method and device, electronic equipment and storage medium
CN112882741A (en) * 2019-11-29 2021-06-01 北京沃东天骏信息技术有限公司 Application management system and method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09251414A (en) * 1996-03-15 1997-09-22 N T T Data Tsushin Kk Network communication system and method therefor
CN101267341A (en) * 2008-03-28 2008-09-17 华为技术有限公司 A distributed network management system, network management server and method
CN106790322A (en) * 2015-11-19 2017-05-31 中国移动通信集团公司 Cache policy forming method and device
CN106878376A (en) * 2016-12-23 2017-06-20 微梦创科网络科技(中国)有限公司 A kind of configuring management method and system
WO2017185961A1 (en) * 2016-04-26 2017-11-02 中兴通讯股份有限公司 Method and apparatus for processing service discovery
CN107392766A (en) * 2017-07-25 2017-11-24 上海壹账通金融科技有限公司 Method for processing business, adapter and computer-readable recording medium
CN107483250A (en) * 2017-08-21 2017-12-15 郑州云海信息技术有限公司 Decentralized configuration management method, device and the system for realizing decentralized configuration management
CN107968798A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 A kind of network management resources label acquisition method, cache synchronization method, apparatus and system
US10216508B1 (en) * 2018-01-05 2019-02-26 Bank Of America Corporation System and method for configurable services platform
CN109445937A (en) * 2018-10-17 2019-03-08 山东易通发展集团有限公司 A kind of modularization programming and seamless execution method

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09251414A (en) * 1996-03-15 1997-09-22 N T T Data Tsushin Kk Network communication system and method therefor
CN101267341A (en) * 2008-03-28 2008-09-17 华为技术有限公司 A distributed network management system, network management server and method
CN106790322A (en) * 2015-11-19 2017-05-31 中国移动通信集团公司 Cache policy forming method and device
WO2017185961A1 (en) * 2016-04-26 2017-11-02 中兴通讯股份有限公司 Method and apparatus for processing service discovery
CN107968798A (en) * 2016-10-19 2018-04-27 中兴通讯股份有限公司 A kind of network management resources label acquisition method, cache synchronization method, apparatus and system
CN106878376A (en) * 2016-12-23 2017-06-20 微梦创科网络科技(中国)有限公司 A kind of configuring management method and system
CN107392766A (en) * 2017-07-25 2017-11-24 上海壹账通金融科技有限公司 Method for processing business, adapter and computer-readable recording medium
CN107483250A (en) * 2017-08-21 2017-12-15 郑州云海信息技术有限公司 Decentralized configuration management method, device and the system for realizing decentralized configuration management
US10216508B1 (en) * 2018-01-05 2019-02-26 Bank Of America Corporation System and method for configurable services platform
CN109445937A (en) * 2018-10-17 2019-03-08 山东易通发展集团有限公司 A kind of modularization programming and seamless execution method

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110597600A (en) * 2019-09-20 2019-12-20 中国银行股份有限公司 Method for modifying application configuration parameters of distributed system and distributed system
CN111221587A (en) * 2019-11-14 2020-06-02 杭州安恒信息技术股份有限公司 Management scheduling method and device for configuration center
CN111046102A (en) * 2019-11-27 2020-04-21 复旦大学 High-performance block chain service system based on ether house
CN111046102B (en) * 2019-11-27 2023-10-31 复旦大学 High performance blockchain service system
CN112882741A (en) * 2019-11-29 2021-06-01 北京沃东天骏信息技术有限公司 Application management system and method
CN111083219A (en) * 2019-12-11 2020-04-28 深信服科技股份有限公司 Request processing method, device, equipment and computer readable storage medium
CN111694868A (en) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 Data caching method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN110190997A (en) Configuration information obtaining method, device, equipment and computer readable storage medium
CN101656789B (en) Method for managing application information of mobile phone and application program manager
US9591428B2 (en) Method, software and apparatus for performing actions on a wireless device using action lists and versioning
EP2871809B1 (en) Message processing method, device and system for internet of things
CN102255752B (en) Configuration management system and method of server cluster
US8108344B2 (en) Method and system for maintaining current data for wireless devices
CN105190555B (en) Centralized task schedule
US20130191526A1 (en) Open plug-in management platform and plug-in management method implemented on browser
CN107864175A (en) Gray scale distribution control method, device, equipment and storage medium
CN101247362B (en) Instant communication system and updating method for its linkman data
US20050108299A1 (en) Real-time Web sharing system
RU2316131C2 (en) Method for storing pages in memory of mobile device (variants) and mobile device for realization of the method
CN110196722A (en) Cloud host batch management method, system, equipment and storage medium
EP4287023A1 (en) Service processing method and device
US20030172046A1 (en) Method and system for managing systems as databases
CN114697232B (en) System and method for acquiring index data of Skywalk probe and electronic equipment
CN113726566A (en) Service gateway device
CN105824660A (en) Application program updating method and terminal
CN114327606A (en) Configuration management method and device, electronic equipment and computer readable storage medium
US6675381B1 (en) Software-module dynamic loader, a software-module dynamic loading method and a medium storing the software-module dynamic loading method
CN115033656B (en) Data processing method and device based on map caching technology and electronic device
CN113515458B (en) Method and system for reducing test environment resource consumption based on Envoy plug-in
JPH09130426A (en) Information providing system
US20030126135A1 (en) Remote resource management of local devices
CN109327740A (en) Popularization and application operation method, terminal and the computer readable storage medium of terminal

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