CN110471697A - Configuration method and Related product - Google Patents
Configuration method and Related product Download PDFInfo
- Publication number
- CN110471697A CN110471697A CN201910630721.3A CN201910630721A CN110471697A CN 110471697 A CN110471697 A CN 110471697A CN 201910630721 A CN201910630721 A CN 201910630721A CN 110471697 A CN110471697 A CN 110471697A
- Authority
- CN
- China
- Prior art keywords
- configuration file
- configuration
- update
- module
- memory system
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 63
- 230000015654 memory Effects 0.000 claims abstract description 96
- 238000012544 monitoring process Methods 0.000 claims abstract description 31
- 238000004590 computer program Methods 0.000 claims description 15
- 238000004891 communication Methods 0.000 claims description 6
- 238000013497 data interchange Methods 0.000 claims 1
- 238000010586 diagram Methods 0.000 description 11
- 230000006870 function Effects 0.000 description 10
- 230000008569 process Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 238000005192 partition Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000012216 screening Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 239000000725 suspension Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/3006—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system is distributed, e.g. networked systems, clusters, multiprocessor systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Software Systems (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Computer Security & Cryptography (AREA)
- Mathematical Physics (AREA)
- Quality & Reliability (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the present application discloses a kind of configuration method and Related product, and wherein method includes: the configuration file update event in monitoring distributed storage system, determines in distributed memory system whether carried out configuration file update;If it is determined that having carried out configuration file update in distributed memory system, then more new configuration file is obtained;It determines object module corresponding with more new configuration file, and local profile update is carried out according to more new configuration file to object module.The embodiment of the present application is by storing configuration file using distributed memory system, then after monitoring the configuration file in distributed memory system and updating, configuration file is updated according to local of the more new configuration file to module, has achieved the purpose that reliablely and stablely storage and more new configuration file.
Description
Technical field
This application involves technical field of data processing, and in particular to configuration method and Related product.
Background technique
Configuration file needs to carry out different configuration of file i.e. to different objects in registration terminal or system.System
In include multiple modules (or functional unit), in the case where multiple modules are configured, each module needs are corresponding
Configuration file.Under remote scenario, configuration file generation mostly uses the mode remotely pushed to configuration file.Push configuration
The mode of file depends on the stability of push side and recipient and the stability of network, when there are abnormal conditions, is easy
Lose configuration, after abnormal restoring can not timely recovery configuring, reliability is difficult to ensure.
Summary of the invention
The embodiment of the present application provides a kind of configuration method and Related product, to by configuration file using distributed
Storage system is stored, literary according to configuration is updated then after monitoring the configuration file in distributed memory system and updating
Part is updated the local of module to configuration file, to achieve the purpose that reliablely and stablely storage and more new configuration file.
In a first aspect, the embodiment of the present application provides a kind of configuration method, the configuration method includes:
Configuration file update event in monitoring distributed storage system, determine in the distributed memory system whether into
Configuration file update is gone;
If it is determined that having carried out configuration file update in the distributed memory system, then more new configuration file is obtained;
It determines object module corresponding with the more new configuration file, and the object module is configured according to the update
File carries out local profile update.
In an optional example, before the configuration file update event in the monitoring distributed storage system,
The method also includes:
Configuration specification is obtained by user interface, and generates the configuration item of configuration file according to the configuration specification, and connect
Receive configuration information corresponding with the configuration item;
Configuration file is generated according to the configuration information;
By configuration file storage into the distributed memory system, determines and generate configuration file update event.
It is described to store the configuration file into distributed memory system in an optional example, comprising:
Determine the corresponding module hierarchical location of the configuration file;
The configuration file is stored to the distributed memory system corresponding level, institute according to the module hierarchical location
Stating level includes NameSpace, service or configuration file.
In an optional example, determination object module corresponding with more new configuration file includes:
More new configuration file storage relationship corresponding with module is obtained, the correspondence storage relationship includes the configuration
Corresponding relationship between the storage tier of file and the module hierarchical location;
Corresponding first module of the more new configuration file is determined according to the corresponding storage relationship;
Obtain the corresponding update event time of origin of more new configuration file and first module is locally configured text
Part renewal time;
Determine the local profile renewal time prior to the update event time of origin the first module be target
Module.
In an optional example, it is updated in the local profile for carrying out module according to the more new configuration file
Afterwards, the method also includes:
The status information of the local profile is modified, newest status information is obtained, the status information includes described
The renewal time of local profile;
The newest status information is uploaded in the distributed memory system, is carried out pair with the more new configuration file
It should store.
In an optional example, before determining object module corresponding with the more new configuration file, the side
Method further include:
It is sent to the distributed memory system and updates request, the update request is for obtaining the distributed storage system
More new configuration file of the update event time of origin closest to current time in system.
Second aspect, the embodiment of the present application provide a kind of configuration device, and described device includes:
Monitoring unit, the configuration file update event in monitoring distributed storage system, determines the distributed storage system
Whether configuration file update has been carried out in system;
Acquiring unit, however, it is determined that carried out configuration file update in the distributed memory system, then obtained update configuration
File;
Updating unit determines object module corresponding with the more new configuration file, and to the object module according to institute
It states more new configuration file and carries out local profile update.
The third aspect, the embodiment of the present application provide a kind of electronic device, including processor, memory, communication interface, and
One or more programs, one or more of programs are stored in the memory, and are configured by the processor
It executes, described program is included the steps that for executing the instruction in first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, and storage is handed over for electronic data
The computer program changed, wherein the computer program makes computer execute step described in first aspect either method
Instruction.
5th aspect, the embodiment of the present application provide a kind of computer program product, wherein above-mentioned computer program product
Non-transient computer readable storage medium including storing computer program, above-mentioned computer program are operable to make to calculate
Machine executes the step some or all of as described in the embodiment of the present application first aspect either method.The computer program product
It can be a software installation packet.
It can be seen that configuration method provided by the embodiments of the present application and device, by monitoring distributed storage system
Configuration file update event determines in distributed memory system whether carried out configuration file update;If it is determined that distributed storage
Configuration file update has been carried out in system, then obtains more new configuration file;Determine object module corresponding with more new configuration file,
And local profile update is carried out according to more new configuration file to object module.In this process, from distributed storage system
More new configuration file is obtained in system, improve the stability of more new configuration file and obtains efficiency, while the update that will acquire
Configuration file carries out corresponding with object module, carries out more further according to more new configuration file to the local profile of object module
Newly, the reliability and accuracy of update be ensure that.
Detailed description of the invention
Attached drawing involved by the embodiment of the present application will be briefly described below.
Figure 1A is a kind of configuration center schematic diagram provided by the embodiments of the present application;
Figure 1B is a kind of flow diagram of configuration method provided by the embodiments of the present application;
Fig. 2 is the flow diagram of another configuration method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of another configuration method provided by the embodiments of the present application;
Fig. 4 is the structural schematic diagram of another electronic equipment provided by the embodiments of the present application;
Fig. 5 is a kind of functional unit composition block diagram of configuration device provided by the embodiments of the present application;
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only
Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art
Every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
Electronic equipment involved by the embodiment of the present application may include the various handheld devices with wireless communication function,
Mobile unit, wearable device (smartwatch, Intelligent bracelet, wireless headset, augmented reality/virtual reality device, Brilliant Eyes
Mirror), calculate equipment or be connected to radio modem other processing equipments and various forms of user equipment (user
Equipment, UE), mobile station (mobile station, MS), terminal device (terminal device) etc..For convenience
Description, apparatus mentioned above are referred to as electronic equipment.
It describes in detail below to the embodiment of the present application.
Figure 1A is please referred to, Figure 1A is a kind of configuration center schematic diagram provided by the embodiments of the present application, as shown in Figure 1A, configuration
Center 10 is connect with user interface 20, and wherein user interface can be web visual page, raw for receiving the operation of user
At configuration file content.Then configuration file is sent to progress distribution in the distributed memory system of configuration center 10 to deposit
Configuration file, i.e., be dispersedly stored in multiple independent memories by storage.Because of the configuration text stored in distributed memory
Part and system module are corresponding, then when configuring to module, so that it may obtain configuration file corresponding with itself and carry out
Configuration.Multiple modules in Figure 1A independently belong to different services, such as service A, and service B etc. or multiple modules can also
To belong to the same service simultaneously.Can also deposit with distribution with postponing according to the configuration file got in module
Storage system further interacts, such as configuration management tool is in real time monitored distributed memory system, obtains distribution and deposits
The update notification of storage system obtains the more new configuration file in distributed memory system, the sheet of modified module according to update notification
Ground configuration file, module timing read local profile and update configuration, and then module will update the update of time stamp of configuration
To local profile, the state (timestamp) that configuration management tool checks local profile updates, that is, reports to distribution
Formula management system, the state that distributed management system is reported according to configuration management tool, it is determined whether need again to configuration management
Tool sends update notification.
Figure 1B is please referred to, Figure 1B is a kind of flow diagram of configuration method provided by the embodiments of the present application, is applied to such as
Configuration center shown in figure 1A, this configuration method method include:
101, the configuration file update event in monitoring distributed storage system, determining in the distributed memory system is
It is no to have carried out configuration file update.
The corresponding configuration file of different system modules (or functional unit) is stored in distributed memory system, then
, can be with the configuration file update event in monitoring distributed storage system when module is configured, it can be according to week
Event in the monitoring distributed storage system of phase T, can also uninterruptedly monitor.If having monitored update event hair
It is raw, it is determined that configuration file update has been carried out in distributed memory system.Configuration file update can be establishes configuration for the first time
File is also possible to update of the midway to configuration file, including part updates or global update.
Optionally, before the configuration file update event in monitoring distributed storage system, this method further includes generating
Configuration file update event, specifically includes: obtaining configuration specification by user interface, configuration specification includes generating configuration file
Respective rule;The configuration item of configuration file is generated according to configuration specification, and receives configuration information corresponding with configuration item;Reception is matched
Confidence breath, and configuration file is generated according to configuration information;By configuration file storage into distributed memory system, determines to generate and match
Set file update event.
User creates configuration specification corresponding with system module (or functional unit) in user interface, it is assumed that module is to step on
Record module, then register account title when using English name, the password etc. of precomposed character type is needed when password is set, all
Belong to the configuration specification of login module.Then according to configuration specification user interface generate configuration file configuration item, such as with
Then family and password receive the configuration information of user's filling, and generate configuration file according to configuration information, then configuration file is deposited
Storage then triggers in distributed memory system and generates configuration file update event.Optionally, configuration file can also be from other system
System export, therefore do not have to generate in user interface, it can directly obtain and store in distributed memory system.Configuration file is more
New events are also possible to the update notification that distributed memory system is issued to configuration management tool, i.e., are accused by distributed memory system
Know that service system or functional module configuration file are updated.
Optionally, by configuration file storage into distributed memory system, comprising: determine the corresponding module layer of configuration file
Level position;Configuration file is stored to distributed memory system corresponding level according to module hierarchical location, level includes that name is empty
Between, service or configuration file.
Be by configuration file it is corresponding with module, module is to realize the aggregate of some function, such as login module
For, corresponding configuration file includes the specific use of " user name " and " password " the two configuration items and user setting
Name in an account book and code content are used to login system as configuration content.Therefore, " user name " and " password " the two configuration items should
The NameSpace level of distributed memory system is stored, login system belongs to service type, it should which distributed storage is arrived in storage
The service level of system, specific username and password content should store the configuration file level of distributed memory system.
As it can be seen that in the embodiment of the present application, matching confidence by obtaining configuration specification, and according to configuration specification reception user
Breath generates configuration file, and by configuration file storage into distributed memory system corresponding level, generates configuration file and update thing
Part;The configuration file update event of monitoring distributed storage system, determines in distributed memory system and has carried out configuration file more
Newly.During this, configuration file is generated according to configuration specification, validity check can be carried out to configuration information, ensure that life
At the specification row and correctness of configuration file can be with by configuration file storage into the corresponding level of distributed memory system
Promote the efficiency of management to configuration file.It is finally by the configuration file update event determination in monitoring distributed storage system
It is no to have carried out configuration file update, determining efficiency can be promoted, and then promote the subsequent timeliness for updating local profile.
102, if it is determined that having carried out configuration file update in the distributed memory system, then more new configuration file is obtained.
Specifically, if it is determined that carried out configuration file update in distributed memory system, matched then needing to obtain update
File is set, because more new configuration file is to be stored in distributed memory system according to corresponding level, then can also be with
Trace back to the corresponding other information of more new configuration file, including namespace information or information on services etc., and these information
Aid in determining whether the corresponding module of more new configuration file.
103, object module corresponding with the more new configuration file is determined, and to the object module according to the update
Configuration file carries out local profile update.
Before the local profile that the more new configuration file that will acquire is used to carry out module updates, it is thus necessary to determine that more
New configuration file is corresponding with which module, then obtains the module as object module, the configuration management tool of object module
The more new configuration file is obtained, for carrying out corresponding update to local profile.
Optionally, determine that object module corresponding with more new configuration file includes: to obtain more new configuration file and module
Corresponding storage relationship, corresponding storage relationship include the corresponding relationship between the storage tier of configuration file and module hierarchical location;
Corresponding first module of more new configuration file is determined according to corresponding storage relationship;Obtain the corresponding update event of more new configuration file
Time of origin;Obtain the local profile renewal time of the first module;Determine local profile renewal time prior to updating
First module of Time To Event is object module.
In the above-described embodiments, configuration file is stored according to module hierarchical location to distributed memory system respective layer
Grade, then can also determine the corresponding module layer of configuration file by the distributed memory system corresponding level that configuration file stores
Level position, and then determine the corresponding module of configuration file.The process is as shown in table 1:
Table 1 stores relation table
According to the corresponding relationship in table 1 between the storage tier of configuration file and module hierarchical location, more new configuration file
Corresponding first module is modules A, then obtains the more new configuration file corresponding time, is on July 1st, 2019, then obtain the
The local profile renewal time of one module is on June 29th, 2019, and local profile renewal time is prior to update event
Time of origin, it is thus determined that modules A is object module, the configuration management tool of modules A obtains more new configuration file and is used for this
Ground configuration file is updated.
If module B is also corresponding first module of more new configuration file, but when the update of the local profile of module B
Between be 2019.7.2, this time be later than update event generation time, then it is newest to can be determined that module B had been carried out
It updates, does not need to carry out local profile update again.
In the embodiment of the present application, it by obtaining more new configuration file storage relationship corresponding with module, determines to update and match
Corresponding first module of file is set, then matching according to the corresponding update event time of origin of more new configuration file and the first module
Setting file renewal time determines whether the first module is the object module for needing to carry out local profile update, avoids to
The first module for updating local profile carries out repeating update, improves the specific aim and standard for carrying out local profile update
True property.
Optionally, after the local profile for carrying out module according to more new configuration file updates, this method further include:
The status information of local profile is modified, newest status information is obtained, when status information includes the update of local profile
Between;Newest status information is uploaded in distributed memory system, carries out corresponding storage with more new configuration file.
Specifically, after the local profile of module updates, newest status information, such as local profile can be generated
Renewal time or update mark etc., renewal time can be showed with the form of timestamp, status information is uploaded to distribution
Storage system, and carry out corresponding storage with more new configuration file, then user interface can be corresponding to more new configuration file
Module status information is checked, determines whether certain module needs to carry out local profile update so that user observes.
Optionally, before obtaining more new configuration file, method further include: send to update to distributed memory system and ask
It asks, it is literary to update update configuration of the request for determining update event time of origin closest to current time in distributed memory system
Part.
Specifically, module can be determined whether by the configuration file renewal time in real time monitoring distributed memory system
More new configuration file is obtained, but in some cases, module may be because that the reasons such as deactivated or suspension occur to update and interrupt, i.e.,
Without monitoring configuration file renewal time in certain period of time, also without the update of any local profile of progress.That
After a period of time, when module, which terminates to update, interrupts, needs to update request to distributed memory system transmission, divide for obtaining
More new configuration file of the update event time of origin closest to current time in cloth storage system.Update event time of origin is most
It is the more new configuration file of latest edition close to current time.And the object module determination side of the latest edition configuration file
Method can be inputted directly by user by user interface, can also carry out screening matching by configuration center.
In the embodiment of the present application, by the configuration file update event in monitoring distributed storage system, distribution is determined
Whether configuration file update has been carried out in formula storage system;If it is determined that configuration file update has been carried out in distributed memory system,
Then obtain more new configuration file;It determines object module corresponding with more new configuration file, and object module is configured according to update
File carries out local profile update.In this process, more new configuration file is obtained from distributed memory system, is promoted
The stability of more new configuration file and efficiency is obtained, while the more new configuration file that will acquire and object module carry out pair
It answers, is updated further according to local profile of the more new configuration file to object module, ensure that the reliability and standard of update
True property.
Referring to Fig. 2, Fig. 2 is another configuration method flow diagram provided by the embodiments of the present application, as shown in Fig. 2,
The configuration method includes the following steps:
201, configuration specification is obtained by user interface, the configuration item of configuration file is generated according to the configuration specification;
202, configuration information corresponding with the configuration item is received, configuration file is generated according to the configuration information;
203, the corresponding module hierarchical location of the configuration file is determined;
204, the configuration file is stored to the distributed memory system respective layer according to the module hierarchical location
Grade, the level includes NameSpace, and service or configuration file determine and generate configuration file update event;
205, the configuration file update event in monitoring distributed storage system, determining in the distributed memory system is
It is no to have carried out configuration file update;
206, if it is determined that having carried out configuration file update in the distributed memory system, then more new configuration file is obtained;
207, more new configuration file storage relationship corresponding with module is obtained, the correspondence storage relationship includes described
Corresponding relationship between the storage tier of configuration file and the module hierarchical location;
208, corresponding first module of the more new configuration file is determined according to the corresponding storage relationship;
209, it obtains the corresponding update event time of origin of more new configuration file and the local of first module is matched
Set file renewal time;
210, determine that the local profile renewal time is prior to the first module of the update event time of origin
Object module, and local profile update is carried out according to the more new configuration file to the object module.
Wherein, the specific descriptions of above-mentioned steps 201- step 210 are referred to the described configuration of step 101- step 103
The corresponding description of method, details are not described herein.
In the embodiment of the present application, configuration file is generated according to configuration specification, validity school can be carried out to configuration information
It tests, ensure that the specification row and correctness of the configuration file of generation, by the correspondence of configuration file storage to distributed memory system
In level, the efficiency of management to configuration file can be promoted.Thing is updated by the configuration file in monitoring distributed storage system
Part determines whether to have carried out configuration file update, can promote determining efficiency, and then promotes the subsequent local profile that updates
Timeliness.By obtaining more new configuration file storage relationship corresponding with module, corresponding first mould of more new configuration file is determined
Then block is determined according to the configuration file renewal time of the corresponding update event time of origin of more new configuration file and the first module
Whether the first module is the object module for needing to carry out local profile update, is avoided to having updated local profile
First module carries out repeating update, improves the specific aim and accuracy for carrying out local profile update.
Referring to Fig. 3, Fig. 3 is another configuration method flow diagram provided by the embodiments of the present application, as shown in figure 3,
The configuration method includes the following steps:
301, the configuration file update event in monitoring distributed storage system, determining in the distributed memory system is
It is no to have carried out configuration file update;
302, if it is determined that having carried out configuration file update in the distributed memory system, then more new configuration file is obtained;
303, object module corresponding with the more new configuration file is determined, and to the object module according to the update
Configuration file carries out local profile update.
304, the status information of the local profile is modified, newest status information is obtained, the status information includes
The renewal time of the local profile;
305, the newest status information is uploaded in the distributed memory system, with the more new configuration file into
The corresponding storage of row.
Wherein, the specific descriptions of above-mentioned steps 301- step 305 are referred to the described configuration of step 101- step 103
The corresponding description of method, details are not described herein.
As it can be seen that in the embodiment of the present application, updating it in the local profile for carrying out module according to more new configuration file
Afterwards, by the status information of the local profile of modified module, newest status information is obtained, then newest status information is uploaded
It is stored to distributed memory system, more easily can check and obtain the local profile update status of module, have
Help promote the efficiency whether determining module carries out subsequent update.
As it is above-mentioned consistently, referring to Fig. 4, Fig. 4 is the structural representation of a kind of electronic equipment provided by the embodiments of the present application
Figure, as shown in figure 4, the electronic equipment includes processor 401, memory 402, communication interface 403 and one or more program,
Wherein, said one or multiple programs are stored in above-mentioned memory 402, and are configured to be executed by above-mentioned processor, on
Stating program includes the instruction for executing following steps:
Configuration file update event in monitoring distributed storage system, determine in the distributed memory system whether into
Configuration file update is gone;
If it is determined that having carried out configuration file update in the distributed memory system, then more new configuration file is obtained;
It determines object module corresponding with the more new configuration file, and the object module is configured according to the update
File carries out local profile update.
In the embodiment of the present application, by the configuration file update event in monitoring distributed storage system, distribution is determined
Whether configuration file update has been carried out in formula storage system;If it is determined that configuration file update has been carried out in distributed memory system,
Then obtain more new configuration file;It determines object module corresponding with more new configuration file, and object module is configured according to update
File carries out local profile update.In this process, more new configuration file is obtained from distributed memory system, is promoted
The stability of more new configuration file and efficiency is obtained, while the more new configuration file that will acquire and object module carry out pair
It answers, is updated further according to local profile of the more new configuration file to object module, ensure that the reliability and standard of update
True property.
In a possible example, before the configuration file update event in the monitoring distributed storage system,
Above procedure includes the instruction for executing following steps:
Configuration specification is obtained by user interface, and generates the configuration item of configuration file according to the configuration specification, and connect
Receive configuration information corresponding with the configuration item;
Configuration file is generated according to the configuration information;
By configuration file storage into the distributed memory system, determines and generate configuration file update event.
In a possible example, the configuration file is stored into distributed memory system aspect described, on
Stating program includes the instruction for executing following steps:
Determine the corresponding module hierarchical location of the configuration file;
The configuration file is stored to the distributed memory system corresponding level, institute according to the module hierarchical location
Stating level includes NameSpace, service or configuration file.
In a possible example, in terms of determination object module corresponding with more new configuration file, above-mentioned journey
Sequence includes the instruction for executing following steps:
More new configuration file storage relationship corresponding with module is obtained, the correspondence storage relationship includes the configuration
Corresponding relationship between the storage tier of file and the module hierarchical location;
Corresponding first module of the more new configuration file is determined according to the corresponding storage relationship;
Obtain the corresponding update event time of origin of more new configuration file and first module is locally configured text
Part renewal time;
Determine the local profile renewal time prior to the update event time of origin the first module be target
Module.
In a possible example, it is updated in the local profile for carrying out module according to the more new configuration file
Afterwards, above procedure includes the instruction for executing following steps:
The status information of the local profile is modified, newest status information is obtained, the status information includes described
The renewal time of local profile;
The newest status information is uploaded in the distributed memory system, is carried out pair with the more new configuration file
It should store.
In a possible example, before determining object module corresponding with the more new configuration file, above-mentioned journey
Sequence includes the instruction for executing following steps:
It is sent to the distributed memory system and updates request, the update request is for obtaining the distributed storage system
More new configuration file of the update event time of origin closest to current time in system.
It is above-mentioned that mainly the scheme of the embodiment of the present application is described from the angle of method side implementation procedure.It is understood that
, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or software mould for electronic device
Block.Those skilled in the art should be readily appreciated that, in conjunction with each exemplary unit of embodiment description presented herein
And algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function actually with
Hardware or computer software drive the mode of hardware to execute, the specific application and design constraint item depending on technical solution
Part.Professional technician can specifically realize described function to each using distinct methods, but this reality
Now it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to above method example to electronic device, for example, can
With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit
In.Above-mentioned integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs
It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real
It is current that there may be another division manner.
Fig. 5 is the functional unit composition block diagram of configuration device 500 involved in the embodiment of the present application.The configuration device
500 are applied to electronic equipment, which includes:
Monitoring unit 501, the configuration file update event in monitoring distributed storage system, determines the distributed storage
Whether configuration file update has been carried out in system;
Acquiring unit 502, however, it is determined that carried out configuration file update in the distributed memory system, then obtained update and match
Set file;
Updating unit 503, determines corresponding with more new configuration file object module, and to the object module according to
The more new configuration file carries out local profile update.
As can be seen that the embodiment of the present application in, configuration device by the configuration file in monitoring distributed storage system more
New events determine in distributed memory system whether carried out configuration file update;If it is determined that being carried out in distributed memory system
Configuration file update, then obtain more new configuration file;Determine object module corresponding with more new configuration file, and to target mould
Root tuber carries out local profile update according to more new configuration file.In this process, it is obtained more from distributed memory system
New configuration file, improve more new configuration file stability and obtain efficiency, while the more new configuration file that will acquire with
Object module is corresponded to, and is updated, is ensure that more further according to local profile of the more new configuration file to object module
New reliability and accuracy.
In a possible example, the configuration device 500 further includes configuration unit 504, described monitoring distributed
Before configuration file update event in storage system, the configuration unit 504 is used for:
Configuration specification is obtained by user interface, and generates the configuration item of configuration file according to the configuration specification, and connect
Receive configuration information corresponding with the configuration item;
Configuration file is generated according to the configuration information;
By configuration file storage into the distributed memory system, determines and generate configuration file update event.
In a possible example, the configuration file is stored into distributed memory system aspect, institute described
Configuration unit 504 is stated to be also used to:
Determine the corresponding module hierarchical location of the configuration file;
The configuration file is stored to the distributed memory system corresponding level, institute according to the module hierarchical location
Stating level includes NameSpace, service or configuration file.
In a possible example, in terms of determination object module corresponding with more new configuration file, it is described more
New unit 503 is specifically used for:
More new configuration file storage relationship corresponding with module is obtained, the correspondence storage relationship includes the configuration
Corresponding relationship between the storage tier of file and the module hierarchical location;
Corresponding first module of the more new configuration file is determined according to the corresponding storage relationship;
Obtain the corresponding update event time of origin of more new configuration file and first module is locally configured text
Part renewal time;
Determine the local profile renewal time prior to the update event time of origin the first module be target
Module.
In a possible example, it is updated in the local profile for carrying out module according to the more new configuration file
Afterwards, the updating unit 503 is also used to:
The status information of the local profile is modified, newest status information is obtained, the status information includes described
The renewal time of local profile;
The newest status information is uploaded in the distributed memory system, is carried out pair with the more new configuration file
It should store.
In a possible example, the configuration device 500 further includes request unit 505, is used for:
It is sent to the distributed memory system and updates request, the update request is for obtaining the distributed storage system
More new configuration file of the update event time of origin closest to current time in system.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity
The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment
Some or all of method step.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of either record method step in method embodiment.The computer program product can be a software installation
Packet.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because
According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and when sold or used as an independent product,
It can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or
Say that all or part of the part that contributes to existing technology or the technical solution can embody in the form of software products
Out, which is stored in a memory, including some instructions are used so that a computer equipment (can
For personal computer, server or network equipment etc.) execute all or part of step of each embodiment above method of the application
Suddenly.And memory above-mentioned includes: USB flash disk, read-only memory (Read-Only Memory, ROM), random access memory
The various media that can store program code such as (Random Access Memory, RAM), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
It may include: flash disk, ROM, RAM, disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and
Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application
There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.
Claims (10)
1. a kind of configuration method, which is characterized in that the described method includes:
Configuration file update event in monitoring distributed storage system determines in the distributed memory system whether carry out
Configuration file updates;
If it is determined that having carried out configuration file update in the distributed memory system, then more new configuration file is obtained;
Determine object module corresponding with the more new configuration file, and to the object module according to the more new configuration file
Carry out local profile update.
2. the method according to claim 1, wherein the configuration file in the monitoring distributed storage system
Before update event, the method also includes:
Configuration specification is obtained by user interface, and generates the configuration item of configuration file according to the configuration specification;
Configuration information corresponding with the configuration item is received, configuration file is generated according to the configuration information;
By configuration file storage into the distributed memory system, determines and generate configuration file update event.
3. according to the method described in claim 2, it is characterized in that, described by configuration file storage to distributed storage system
In system, comprising:
Determine the corresponding module hierarchical location of the configuration file;
The configuration file is stored to the distributed memory system corresponding level, the layer according to the module hierarchical location
Grade includes NameSpace, service or configuration file.
4. according to the method described in claim 3, it is characterized in that, determination object module corresponding with more new configuration file
Include:
More new configuration file storage relationship corresponding with module is obtained, the correspondence storage relationship includes the configuration file
Storage tier and the module hierarchical location between corresponding relationship;
Corresponding first module of the more new configuration file is determined according to the corresponding storage relationship;
The corresponding update event time of origin of more new configuration file described in obtaining and the local profile of first module are more
The new time;
Determine the local profile renewal time prior to the update event time of origin the first module be object module.
5. method according to claim 1-4, which is characterized in that carrying out mould according to the more new configuration file
After the local profile of block updates, the method also includes:
The status information of the local profile is modified, obtains newest status information, the status information includes the local
The renewal time of configuration file;
The newest status information is uploaded in the distributed memory system, carries out corresponding deposit with the more new configuration file
Storage.
6. the method according to claim 1, wherein determining target mould corresponding with the more new configuration file
Before block, the method also includes:
It is sent to the distributed memory system and updates request, the update request is for obtaining in the distributed memory system
More new configuration file of the update event time of origin closest to current time.
7. a kind of configuration device, which is characterized in that described device includes:
Monitoring unit, the configuration file update event in monitoring distributed storage system, determines in the distributed memory system
Whether configuration file update has been carried out;
Acquiring unit, however, it is determined that carried out configuration file update in the distributed memory system, then obtained more new configuration file;
Updating unit, determines corresponding with more new configuration file object module, and to the object module according to more
New configuration file carries out local profile update.
8. device according to claim 7, which is characterized in that the configuration device further includes configuration unit, in the prison
Before controlling the configuration file update event in distributed memory system, the configuration unit is used for:
Configuration specification is obtained by user interface, and generates the configuration item of configuration file according to the configuration specification;
Configuration information corresponding with the configuration item is received, configuration file is generated according to the configuration information;
By configuration file storage into the distributed memory system, determines and generate configuration file update event.
9. a kind of electronic device, which is characterized in that including processor, memory, communication interface, and one or more programs,
One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet
Include the instruction for executing the step in as the method according to claim 1 to 6.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange,
In, the computer program makes computer execute as the method according to claim 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630721.3A CN110471697A (en) | 2019-07-12 | 2019-07-12 | Configuration method and Related product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910630721.3A CN110471697A (en) | 2019-07-12 | 2019-07-12 | Configuration method and Related product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110471697A true CN110471697A (en) | 2019-11-19 |
Family
ID=68508471
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910630721.3A Pending CN110471697A (en) | 2019-07-12 | 2019-07-12 | Configuration method and Related product |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110471697A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113031979A (en) * | 2021-05-26 | 2021-06-25 | 武汉众邦银行股份有限公司 | Galaxy-based framework configuration separation device and implementation method |
CN113238777A (en) * | 2021-05-20 | 2021-08-10 | 网易(杭州)网络有限公司 | Application program updating method, device, equipment and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015188501A1 (en) * | 2014-06-12 | 2015-12-17 | 中兴通讯股份有限公司 | Configuration file updating method, device, system and computer storage medium |
CN105354058A (en) * | 2015-10-29 | 2016-02-24 | 无锡天脉聚源传媒科技有限公司 | File updating method and apparatus |
CN107483250A (en) * | 2017-08-21 | 2017-12-15 | 郑州云海信息技术有限公司 | Decentralized configuration management method, device and the system for realizing decentralized configuration management |
CN108108181A (en) * | 2017-12-14 | 2018-06-01 | 深圳市雷鸟信息科技有限公司 | The function renewal method, apparatus and computer readable storage medium of application program |
CN109582381A (en) * | 2018-10-12 | 2019-04-05 | 中国建设银行股份有限公司 | File type configuration information synchronization system, method and storage medium |
-
2019
- 2019-07-12 CN CN201910630721.3A patent/CN110471697A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015188501A1 (en) * | 2014-06-12 | 2015-12-17 | 中兴通讯股份有限公司 | Configuration file updating method, device, system and computer storage medium |
CN105354058A (en) * | 2015-10-29 | 2016-02-24 | 无锡天脉聚源传媒科技有限公司 | File updating method and apparatus |
CN107483250A (en) * | 2017-08-21 | 2017-12-15 | 郑州云海信息技术有限公司 | Decentralized configuration management method, device and the system for realizing decentralized configuration management |
CN108108181A (en) * | 2017-12-14 | 2018-06-01 | 深圳市雷鸟信息科技有限公司 | The function renewal method, apparatus and computer readable storage medium of application program |
CN109582381A (en) * | 2018-10-12 | 2019-04-05 | 中国建设银行股份有限公司 | File type configuration information synchronization system, method and storage medium |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113238777A (en) * | 2021-05-20 | 2021-08-10 | 网易(杭州)网络有限公司 | Application program updating method, device, equipment and storage medium |
CN113238777B (en) * | 2021-05-20 | 2023-08-22 | 网易(杭州)网络有限公司 | Application program updating method, device, equipment and storage medium |
CN113031979A (en) * | 2021-05-26 | 2021-06-25 | 武汉众邦银行股份有限公司 | Galaxy-based framework configuration separation device and implementation method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107819829B (en) | Method and system for accessing block chain, block chain node point equipment and user terminal | |
CN106502769B (en) | Distributed transaction processing method, apparatus and system | |
CN103404113B (en) | A kind of notice method for pushing, device and system | |
CN109949111A (en) | Electronic bill mark distributing method, electronic bill generation method, apparatus and system | |
CN109542865A (en) | Distributed cluster system configuration file synchronous method, device, system and medium | |
US20140310243A1 (en) | Heart beacon cycle | |
CN106294713A (en) | The method of data synchronization resolved based on Incremental Log and data synchronization unit | |
CN104683161B (en) | Network management and device based on SaaS | |
CN109213792A (en) | Method, server-side, client, device and the readable storage medium storing program for executing of data processing | |
CN109120444B (en) | Cloud resource management method, processor and storage medium | |
CN109144785A (en) | Method and apparatus for Backup Data | |
CN102917012A (en) | Storage and communication de-duplication | |
CN110471697A (en) | Configuration method and Related product | |
CN108965003A (en) | A kind of dispositions method of distributed type assemblies, device, system and storage medium | |
CN110515762A (en) | Data reconstruction method, device, terminal device and storage medium | |
CN104936156A (en) | Short message sending method and device | |
CN105404530B (en) | It is a kind of to realize easy deployment and the system and method using private clound | |
CN106209931A (en) | The update method of the information of a kind of resource, device and system | |
CN108306787A (en) | A kind of application monitoring method and relevant device | |
CN104793981B (en) | A kind of online snapshot management method and device of cluster virtual machine | |
CN103905441A (en) | Data acquisition method and device | |
CN102984174B (en) | Reliability guarantee method and system in a kind of distribution subscription system | |
CN109165261A (en) | Method of data synchronization, device, server and computer storage medium | |
CN102594874B (en) | Synchronization processing method and device | |
CN103001989A (en) | Parameter receiving method and system |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20191119 |
|
RJ01 | Rejection of invention patent application after publication |