CN107506218A - The management method and management system of a kind of configuration file - Google Patents

The management method and management system of a kind of configuration file Download PDF

Info

Publication number
CN107506218A
CN107506218A CN201710826986.1A CN201710826986A CN107506218A CN 107506218 A CN107506218 A CN 107506218A CN 201710826986 A CN201710826986 A CN 201710826986A CN 107506218 A CN107506218 A CN 107506218A
Authority
CN
China
Prior art keywords
configuration file
configuration
profile data
application services
management
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
CN201710826986.1A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710826986.1A priority Critical patent/CN107506218A/en
Publication of CN107506218A publication Critical patent/CN107506218A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses the management method of configuration file and management system, it is related to field of computer technology.One embodiment of the collocation method includes:Receive the operation requests to configuration file;The operation requests are parsed, perform corresponding configuration operation, generation and the configuration corresponding operating result of operation.The profile management systems of a set of High Availabitity are effectively established by the embodiment of the present invention, can not only to configuration file carry out dynamic configuration, and by the profile management systems can externally provide it is reliable, stably, efficient configuration file access service.In addition, the embodiment of the present invention can also provide interactive, visual configuration file management service to user, realize that additions and deletions of the user to configuration file change and the operation such as look into, and then effectively reduce service arrangement, renewal, management cost.

Description

The management method and management system of a kind of configuration file
Technical field
The present invention relates to the management method and management system of field of computer technology, more particularly to a kind of configuration file.
Background technology
In distributed environment, for various reasons such as load, disaster tolerances, almost all of service is required in multiple machines Multiple examples are disposed on node, meanwhile, it always can't do without various types of configuration files in business item, in this case, sometimes The only modification of a configuration content, just needs to re-start that code is submitted, packing, delivery of services are reached the standard grade.It is in distribution In system, in face of magnanimity machine, it also will be a very numerous and diverse job that delivery of services, which is reached the standard grade, and the modification frequency of configuration file It is far longer than modification code in itself.Trace to source, all troublesome roots are due to that we are being managed configuration file and code Caused by not being distinguish between in issuing process.Configuration file comes from code in itself, is carried to improve the flexibility of code It is that some taken out often change or need the content that customizes, and be exactly this born variation characteristic that configures to we with Very big trouble.
Traditional processing method is such as the database configuration, slow connected by the configuration information of some service routines at present Deposit the information such as size, Thread Count to be stored in text, when service routine starts, service routine can read this article herein Part, obtain the configuration information required for it.Or service routine monitors whether this article this document is changed in the process of running, such as Fruit this article this document is modified, then service routine re-reads this article this document, obtains newest configuration information.
However, in process of the present invention is realized, inventor has found that at least there are the following problems in the prior art:
(1) dispose and update cost height
In distributed environment, for reasons such as load, disaster tolerances, usually using multiple machines, in each machine node Service routine is deployed with, if necessary to change the configuration file of service routine, then needs to sign in one by one to be deployed with service routine Machine, then more new configuration file finally restarts service routine, and O&M cost is high.
(2) management cost is high
From service routine exploitation to reaching the standard grade, we usually have multiple environment, such as development environment (develop by application program-oriented method Person), test environment (application program-oriented method tester), issue in advance environment (being used for application program verification), on line environment (towards most Whole user) etc..Under every kind of environment, the configuration file of service routine is all different.The switching of different environment, is required for people Work manual modification, so as to cost it is higher, particularly when making across combination, it is easier to go wrong, such as by development environment, Service routine configuration file under test environment, pre- issue environment is mistakenly considered the service routine configuration file of environment on line and issued Environment on to line, have influence on the use of user on line.
The content of the invention
In view of this, it is an object of the invention to provide a kind of management method of configuration file and management system, so as to build Found a set of High Availabitity profile management systems, dynamic configuration can be carried out to configuration file, so realize externally provide it is reliable, Stable, efficient configuration access and more new demand servicing.
To achieve the above object, a kind of one side according to embodiments of the present invention, there is provided manager of configuration file Method, this method include:
Receive the operation requests to configuration file;
The operation requests are parsed, perform corresponding configuration operation, generation and the configuration corresponding operating result of operation.
Alternatively, this method also includes:Receive external user and configure text to described using what WEB page management platform was passed to The write operation requests of part;
Profile data is preserved into caching and/or database according to the write operation requests that parsing obtains, so Return to write operation result afterwards, wherein, the write operation requests include increasing to the configuration file, delete, look into, change in one or Multiple requests.
Alternatively, this method also includes:Receive external user using application services be passed to the configuration file Read operation request;
Corresponding Query Result is obtained from caching and/or database according to the read operation request that parsing obtains, so After return to the Query Result.
Alternatively, if it is possible to the profile data is obtained from the caching, then by the profile data The application services is back to as the Query Result;
Conversely, then obtaining the profile data from the database, the profile data is preserved to institute State in caching, and the application services is back to using the profile data as the Query Result.
Alternatively, the profile data is stored in the form of configuration file table.
Alternatively, the configuration file table includes following at least one field:Filename, module name, key, value, configuration are said Bright, creation time, renewal time.
Alternatively, this method also includes:Generate with it is described configure the corresponding operating result of operation after, by the operation As a result send to the application services and/or the WEB page management platform.
One side according to embodiments of the present invention, there is provided a kind of management system of configuration file, the system include:
Receiving module, for receiving the operation requests to configuration file;
Execution module, for parsing the operation requests, perform corresponding configuration operation, generation and the configuration operation pair The operating result answered.
Alternatively, the receiving module is additionally operable to:Receive external user using WEB page management platform be passed to described The write operation requests of configuration file;And the execution module is additionally operable to:It will be matched somebody with somebody according to the write operation requests that parsing obtains Document data saving is put into caching and/or database, is then back to write operation result, wherein, the write operation requests include Increasing to the configuration file, one or more of delete, look into, changing request.
Alternatively, the receiving module is additionally operable to:External user is received using what application services was passed to described to match somebody with somebody Put the read operation request of file;And the execution module is additionally operable to:According to the obtained read operation request of parsing from caching And/or corresponding Query Result is obtained in database, it is then back to the Query Result.
Alternatively, the execution module is additionally operable to:If the profile data can be obtained from the caching, The application services is back to using the profile data as the Query Result;
Conversely, then obtaining the profile data from the database, the profile data is preserved to institute State in caching, and the application services is back to using the profile data as the Query Result.
Alternatively, the profile data is stored in the form of configuration file table.
Alternatively, the configuration file table includes following at least one field:Filename, module name, key, value, configuration are said Bright, creation time, renewal time.
Alternatively, the execution module is additionally operable to:Generate with it is described configure the corresponding operating result of operation after, by institute Operating result is stated to send to application services and/or WEB page management platform.
The embodiment of the present invention also provides a kind of terminal device, and the terminal device includes:One or more processors;Storage dress Put, for storing one or more programs, when one or more of programs are by one or more of computing devices so that One or more of processors realize the management method such as configuration file provided in an embodiment of the present invention.
The embodiment of the present invention also provides a kind of computer-readable medium, is stored thereon with computer program, wherein, the journey The management method such as configuration file provided in an embodiment of the present invention is realized when sequence is executed by processor.
The profile management systems of a set of High Availabitity are effectively established by the embodiment of the present invention, can not only to Put file and carry out dynamic configuration, and by the profile management systems can externally provide it is reliable, stably, efficient configuration File access services.Taken in addition, the embodiment of the present invention can also provide user interactive, visual configuration file management Business, realize that additions and deletions of the user to configuration file change and the operation such as look into, and then effectively reduce service arrangement, renewal, management cost.
Further effect adds hereinafter in conjunction with embodiment possessed by above-mentioned non-usual optional mode With explanation.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.In the accompanying drawings:
Fig. 1 is the schematic diagram of the main flow of the management method of configuration file according to embodiments of the present invention;
Fig. 2 is the schematic flow sheet that application services according to embodiments of the present invention reads configuration file;
Fig. 3 is the schematic flow sheet that Web page management platform according to embodiments of the present invention writes configuration file;
Fig. 4 is the schematic diagram of the main modular of the management system of configuration file according to embodiments of the present invention;
Fig. 5 is the interaction schematic diagram of the management method of configuration file according to embodiments of the present invention;
Fig. 6 is the Organization Chart of the management system of configuration file according to embodiments of the present invention;
Fig. 7 is adapted for the structural representation of the computer system of the terminal device for realizing the embodiment of the present invention.
Embodiment
The one exemplary embodiment of the present invention is explained below in conjunction with accompanying drawing, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize Arrive, various changes and modifications can be made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, the description to known function and structure is eliminated in following description.
Herein, it is to be understood that in involved term:
TTC:Tencent Table Cache, TTC are a kind of can to provide the general of hot spot data high speed access service Cache Server。
Redis:Redis be one increase income write using ANSI C languages, support network, can also can be lasting based on internal memory Log type, the Key-Value databases of change, and the API of a variety of development languages is provided.
Mysql:Mysql is a kind of Relational DBMS.
Illustrative methods
As shown in figure 1, it is the schematic diagram of the main flow of the management method of configuration file according to embodiments of the present invention.Its In, this method includes:
Step S101:Receive the operation requests to configuration file;
Step S102:The operation requests are parsed, perform corresponding configuration operation, generation is corresponding with the configuration operation Operating result.
Alternatively, this method also includes:Receive external user and configure text to described using what WEB page management platform was passed to The write operation requests of part;
Profile data is preserved into caching and/or database according to the write operation requests that parsing obtains, so Return to write operation result afterwards, wherein, the write operation requests include increasing to the configuration file, delete, look into, change in one or Multiple requests.
Alternatively, this method also includes:Receive external user using application services be passed to the configuration file Read operation request;
Corresponding Query Result is obtained from caching and/or database according to the read operation request that parsing obtains, so After return to the Query Result.
Alternatively, if it is possible to the profile data is obtained from the caching, then by the profile data The application services is back to as the Query Result;
Conversely, then obtaining the profile data from the database, the profile data is preserved to institute State in caching, and the application services is back to using the profile data as the Query Result.
Alternatively, the profile data is stored in the form of configuration file table.
Alternatively, the configuration file table includes following at least one field:Filename, module name, key, value, configuration are said Bright, creation time, renewal time.
Alternatively, this method also includes:Generate with it is described configure the corresponding operating result of operation after, by the operation As a result send to the application services and/or the WEB page management platform.
Embodiment
The present invention is specifically described with reference to a specific embodiment, however, it should be noted that the specific implementation Example merely to preferably description the present invention, do not form inappropriate limitation of the present invention.
First, according to operation of the application services manager to WEB page management platform, generate and configuration file is carried out The operation requests of configuration.Wherein, the configuration operation carried out to the configuration file includes:Increase, delete, inquire about, modification.
Then, the operation requests to the configuration file are received by interface service layer (hereinafter referred to as api layer), in order to obtain Take the profile data required for application services manager.
Specifically, in an embodiment of the present invention, api layer can provide the api interface of a variety of development languages, in order to Different types of application services manager uses according to the development language of its own.Specifically, the api interface can prop up Hold a variety of development languages including but not limited to:JAVA, C++ and PHP, and the api interface of every kind of development language can Enough functions that " increase, delete, inquire about, modification " operation is provided, so as to which application services can be by calling corresponding API to connect Mouthful, perform corresponding operation.
Finally, the operation requests to the configuration file sent from api layer are parsed, confirm the reality corresponding to the operation requests Border action type, corresponding configuration operation is performed, the configuration file in caching is stored in by inquiry, profile data is returned Shown back to api layer, and by WEB page management platform to application services manager.
It is described in detail respectively below for the different operating of configuration file.
As shown in Fig. 2 it is the stream that application services according to embodiments of the present invention reads configuration file (inquiry operation) Journey schematic diagram.Idiographic flow is as follows:
(1) api interface that client (application services) is externally provided by the embodiment of the present invention, sent out to configuration file Send read operation request, acquisition request profile data;
(2) after the request that client (application services) is sent is received, according to analysis protocol, currently please confirm Seeking Truth is to the read operation of configuration file, then to caching query profile data;
(3) if profile data is present in caching, directly from caching obtain profile data and Directly say that the profile data is back to client (application services);If profile data is no in the buffer, Profile data is then obtained from database, and by profile data deposit caching, is reconfigured at file data and is back to Client (application services).
As shown in figure 3, it is that Web page management platform according to embodiments of the present invention writes configuration file and (increases, deletes, repairing Change operation) schematic flow sheet.Idiographic flow is as follows:
(1) the configuration file management page modification that application services manager is provided by WEB page management platform should With service routine configuration file;
(2) api interface that WEB page management platform is externally provided by the embodiment of the present invention, send and write to configuration file Operation requests, request modification profile data;
(3) after the request that WEB page management platform is sent is received, according to analysis protocol, confirm that current request is To the write operation of configuration file, then profile data is write to caching;
(4) when by profile data write-in caching, while also need to profile data writing data Storehouse, and write-in result is back to caching, cache and returning result is back to WEB page management platform, final WEB page management Platform shows that this writes whether configuration file operation succeeds to application services manager.
As shown in figure 4, it is the schematic diagram of the main modular of the management system of configuration file according to embodiments of the present invention;Its In, the management system includes:
Receiving module 401, for receiving the operation requests to configuration file;
Execution module 402, for parsing the operation requests, corresponding configuration operation is performed, generation is grasped with the configuration Operating result corresponding to work.
Alternatively, the receiving module 401 is additionally operable to:Receive pair that external user utilizes WEB page management platform to be passed to The write operation requests of the configuration file;And
The execution module 402 is additionally operable to:Profile data is preserved according to the write operation requests that parsing obtains Into caching and/or database, write operation result is then back to, wherein, the write operation requests are included to the configuration file Increasing, one or more of delete, look into, changing request.
Alternatively, the receiving module 401 is additionally operable to:Receive external user using application services be passed to described The read operation request of configuration file;And
The execution module 402 is additionally operable to:The read operation request obtained according to parsing is from caching and/or database Corresponding Query Result is obtained, is then back to the Query Result.
Alternatively, the execution module 402 is additionally operable to:If the configuration file number can be obtained from the caching According to being then back to the application services using the profile data as the Query Result;
Conversely, then obtaining the profile data from the database, the profile data is preserved to institute State in caching, and the application services is back to using the profile data as the Query Result.
Alternatively, the profile data is stored in the form of configuration file table.
Alternatively, the configuration file table includes following at least one field:Filename, module name, key, value, configuration are said Bright, creation time, renewal time.
Alternatively, the execution module 402 is additionally operable to:Generate with it is described configure the corresponding operating result of operation after, The operating result is sent to application services and/or WEB page management platform.
Embodiment
The present invention is specifically described with reference to a specific embodiment, however, it should be noted that the specific implementation Example merely to preferably description the present invention, do not form inappropriate limitation of the present invention.
As shown in figure 5, it is the interaction schematic diagram of the management method of configuration file according to embodiments of the present invention.It is specific next Say, the present embodiments relate to application services (user), profile management systems, WEB page management platform (application clothes Be engaged in manager) interaction between three.Wherein, application services (user) and (application of WEB page management platform Service routine manager) be able to access the profile management systems, and by perform configuration file management service to Put file and perform corresponding read or write.
Fig. 6 is the Organization Chart of the management system of configuration file according to embodiments of the present invention.Specifically, WEB page pipe Platform provides the function of query configuration file data to application services, and provides increasing to application services manager Add, delete, inquiring about, changing the function of profile data.Wherein, application services manager can pass through WEB page pipe Platform performs write operation to profile data and (increases, deletes, changing) operation, and user can be by application services to configuration File performs read operation, and the profile data required for itself application services is obtained from profile management systems.
WEB page management platform towards be application services manager, provide friend for application services manager Good, visual management platform.WEB page management platform provides increase, deletion, inquiry, modification configuration file function.Example Such as, if necessary to more application services profile data, then application services manager put down by WEB page management The corresponding configuration of platform modification, application services inquire newest configuration data from profile management systems.
Interface module (api layer) provided in an embodiment of the present invention towards be each application services, and can be right It is outer that the interface (API) for supporting a variety of development languages is provided, so that each user uses according to itself programming language, wherein developing Language can include:JAVA API, C++API and PHP API.In addition, interface module (api layer) can provide and read or write behaviour Make, i.e., application services can be by calling " inquiry " interface (API) or " increase, delete, change " interface, to configuration file management system System, which is sent, to be read and/or write request, so as to obtain and/or " increase, delete, change " corresponding profile data.
In addition, execution module includes:General purpose web service layer and data Layer.Wherein, general purpose web service layer includes multiple Configuration file management service, profile data is increased, delete, change, the operation such as look into for what Processing Interface module (api layer) was sent Request, realize inquiry or increase, deletion and modification operation to profile data.Specifically, according to analysis protocol, pass through " inquiry " or " increase, delete, changing " operation is performed to the profile data in the caching of data Layer, and implementing result is returned to and connect Mouth mold block (api layer), implementing result is finally back to client and/or WEB page management platform again.Specifically, at this General purpose web service layer in the profile management systems that inventive embodiments provide is designed as stateless structure, hence in so that matching somebody with somebody Dilatation, capacity reducing can dynamically be carried out by putting file management system.
In addition, data Layer is the storage center of profile management systems, and data Layer includes:Caching and relationship type number According to storehouse.Wherein, cache for providing focus profile data high speed access service, so as to improve the response of profile service Speed.In practical application scene, the embodiment of the present invention can select the conventional caching product of industry to build, such as Memcache, Redis, TTc etc..Relevant database is used to carry out permanent storage to profile data, to ensure slow Profile data will not be lost by depositing in the case that the machine machine of delaying is restarted.In practical application scene, the embodiment of the present invention can be with The relevant databases such as Mysql, SQL server are selected to build.
Because traditional configuration file is made up of filename (File) and multiple configuration modules (Module), wherein, each Configuration module (Module) is formed by key (Key) and value (Value).However, the embodiments of the invention provide following structures Configuration file table is with storage configuration file data, so that unified profile service is externally provided, wherein, the configuration file table Comprise at least:Filename (File), module name (Fmodule), key (Key), value (Fvalue), configuration instruction (Fnote), establishment Time (FcreateTime), renewal time (FupdateTime), one or more of totally 7 fields.
Below with reference to Fig. 7, it illustrates suitable for for realizing the computer system 700 of the terminal device of the embodiment of the present invention Structural representation.Terminal device shown in Fig. 7 is only an example, to the function of the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in fig. 7, computer system 700 includes CPU (CPU) 701, it can be read-only according to being stored in Program in memory (ROM) 702 or be loaded into program in random access storage device (RAM) 703 from storage part 708 and Perform various appropriate actions and processing.In RAM 703, also it is stored with system 700 and operates required various programs and data. CPU 701, ROM 702 and RAM 703 are connected with each other by bus 704.Input/output (I/O) interface 705 is also connected to always Line 704.
I/O interfaces 705 are connected to lower component:Importation 706 including keyboard, mouse etc.;Penetrated including such as negative electrode The output par, c 707 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage part 708 including hard disk etc.; And the communications portion 709 of the NIC including LAN card, modem etc..Communications portion 709 via such as because The network of spy's net performs communication process.Driver 710 is also according to needing to be connected to I/O interfaces 705.Detachable media 711, such as Disk, CD, magneto-optic disk, semiconductor memory etc., it is arranged on as needed on driver 710, in order to read from it Computer program be mounted into as needed storage part 708.
Especially, according to embodiment disclosed by the invention, may be implemented as counting above with reference to the process of flow chart description Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product, it includes being carried on computer Computer program on computer-readable recording medium, the computer program include the program code for being used for the method shown in execution flow chart. In such embodiment, the computer program can be downloaded and installed by communications portion 709 from network, and/or from can Medium 711 is dismantled to be mounted.When the computer program is performed by CPU (CPU) 701, system of the invention is performed The above-mentioned function of middle restriction.
It should be noted that the computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer-readable recording medium can be for example but not limited to Electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.It is computer-readable The more specifically example of storage medium can include but is not limited to:Electrical connection, portable computing with one or more wires Machine disk, hard disk, random access storage device (RAM), read-only storage (ROM), erasable programmable read only memory (EPROM Or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device or above-mentioned Any appropriate combination.In the present invention, computer-readable recording medium can be it is any include or storage program it is tangible Medium, the program can be commanded the either device use or in connection of execution system, device.And in the present invention, Computer-readable signal media can be included in a base band or as a part of data-signal propagated of carrier wave, wherein carrying Computer-readable program code.The data-signal of this propagation can take various forms, and including but not limited to electromagnetism is believed Number, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable storage medium Any computer-readable medium beyond matter, the computer-readable medium can be sent, propagated or transmitted for being held by instruction Row system, device either device use or program in connection.The program code included on computer-readable medium It can be transmitted, included but is not limited to any appropriate medium:Wirelessly, electric wire, optical cable, RF etc., or above-mentioned any conjunction Suitable combination.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of various embodiments of the invention, method and computer journey Architectural framework in the cards, function and the operation of sequence product.At this point, each square frame in flow chart or block diagram can generation The part of one module of table, program segment or code, a part for above-mentioned module, program segment or code include one or more For realizing the executable instruction of defined logic function.It should also be noted that some as replace realization in, institute in square frame The function of mark can also be with different from the order marked in accompanying drawing generation.For example, two square frames succeedingly represented are actual On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also It is noted that the combination of each square frame and block diagram in block diagram or flow chart or the square frame in flow chart, can use and perform rule Fixed function or the special hardware based system of operation are realized, or can use the group of specialized hardware and computer instruction Close to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module can also be set within a processor, for example, can be described as:A kind of processor bag Include receiving module 401, execution module 402.
As on the other hand, present invention also offers a kind of computer-readable medium, the computer-readable medium can be Included in equipment described in above-described embodiment;Can also be individualism, and without be incorporated the equipment in.Above-mentioned calculating Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the equipment, makes Obtaining the equipment includes:
Step S101:Receive the operation requests to configuration file;
Step S102:The operation requests are parsed, perform corresponding configuration operation, generation is corresponding with the configuration operation Operating result.
The profile management systems of a set of High Availabitity are effectively established by the embodiment of the present invention, can not only to Put file and carry out dynamic configuration, and by the profile management systems can externally provide it is reliable, stably, efficient configuration File access services.Taken in addition, the embodiment of the present invention can also provide user interactive, visual configuration file management Business, realize that additions and deletions of the user to configuration file change and the operation such as look into, and then effectively reduce service arrangement, renewal, management cost.
Above-mentioned embodiment, does not form limiting the scope of the invention.Those skilled in the art should be bright It is white, depending on design requirement and other factors, various modifications, combination, sub-portfolio and replacement can occur.It is any Modifications, equivalent substitutions and improvements made within the spirit and principles in the present invention etc., should be included in the scope of the present invention Within.

Claims (16)

  1. A kind of 1. management method of configuration file, it is characterised in that including:
    Receive the operation requests to configuration file;
    The operation requests are parsed, perform corresponding configuration operation, generation and the configuration corresponding operating result of operation.
  2. 2. management method according to claim 1, it is characterised in that also include:
    Receive the write operation requests to the configuration file that external user utilizes WEB page management platform to be passed to;
    Profile data is preserved into caching and/or database according to the write operation requests that parsing obtains, then returned One or more of write back operations result, wherein, the write operation requests include increasing to the configuration file, delete, look into, changing Request.
  3. 3. management method according to claim 1, it is characterised in that also include:
    Receive the read operation request to the configuration file that external user utilizes application services to be passed to;
    Corresponding Query Result is obtained from caching and/or database according to the read operation request that parsing obtains, then returned Return the Query Result.
  4. 4. management method according to claim 3, it is characterised in that if the configuration can be obtained from the caching File data, then it is back to the application services using the profile data as the Query Result;
    Conversely, then obtaining the profile data from the database, the profile data is preserved to described slow In depositing, and the application services is back to using the profile data as the Query Result.
  5. 5. management method according to claim 2, it is characterised in that the profile data is with the shape of configuration file table Formula stores.
  6. 6. management method according to claim 5, it is characterised in that the configuration file table includes following at least one word Section:
    Filename, module name, key, value, configuration instruction, creation time, renewal time.
  7. 7. the management method according to Claims 2 or 3, it is characterised in that also include:
    Generating with after the configuration corresponding operating result of operation, the operating result is sent to the application service journey Sequence and/or the WEB page management platform.
  8. A kind of 8. management system based on configuration file, it is characterised in that including:
    Receiving module, for receiving the operation requests to configuration file;
    Execution module, for parsing the operation requests, corresponding configuration operation is performed, generation is corresponding with the configuration operation Operating result.
  9. 9. management system according to claim 8, it is characterised in that the receiving module is additionally operable to:Receive external user The write operation requests to the configuration file being passed to using WEB page management platform;And
    The execution module is additionally operable to:Profile data is preserved to caching according to the write operation requests that parsing obtains And/or in database, be then back to write operation result, wherein, the write operation requests include increasing to the configuration file, One or more of delete, look into, changing request.
  10. 10. management system according to claim 8, it is characterised in that the receiving module is additionally operable to:Receive external user The read operation request to the configuration file being passed to using application services;And
    The execution module is additionally operable to:Phase is obtained from caching and/or database according to the read operation request that parsing obtains The Query Result answered, it is then back to the Query Result.
  11. 11. management system according to claim 9, it is characterised in that the execution module is additionally operable to:
    If the profile data can be obtained from the caching, using the profile data as the inquiry As a result it is back to the application services;
    Conversely, then obtaining the profile data from the database, the profile data is preserved to described slow In depositing, and the application services is back to using the profile data as the Query Result.
  12. 12. management system according to claim 9, it is characterised in that the profile data is with configuration file table Form storage.
  13. 13. management system according to claim 12, it is characterised in that the configuration file table includes following at least one Field:
    Filename, module name, key, value, configuration instruction, creation time, renewal time.
  14. 14. the management system according to claim 9 or 10, it is characterised in that the execution module is additionally operable to:
    Generating with after the configuration corresponding operating result of operation, the operating result is sent to application services And/or WEB page management platform.
  15. A kind of 15. terminal device, it is characterised in that including:
    One or more processors;
    Storage device, for storing one or more programs,
    When one or more of programs are by one or more of computing devices so that one or more of processors are real The now method as described in any in claim 1-7.
  16. 16. a kind of computer-readable medium, is stored thereon with computer program, it is characterised in that described program is held by processor The method as described in any in claim 1-7 is realized during row.
CN201710826986.1A 2017-09-14 2017-09-14 The management method and management system of a kind of configuration file Pending CN107506218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710826986.1A CN107506218A (en) 2017-09-14 2017-09-14 The management method and management system of a kind of configuration file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710826986.1A CN107506218A (en) 2017-09-14 2017-09-14 The management method and management system of a kind of configuration file

Publications (1)

Publication Number Publication Date
CN107506218A true CN107506218A (en) 2017-12-22

Family

ID=60696525

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710826986.1A Pending CN107506218A (en) 2017-09-14 2017-09-14 The management method and management system of a kind of configuration file

Country Status (1)

Country Link
CN (1) CN107506218A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108763327A (en) * 2018-05-07 2018-11-06 中山易能智达电子有限公司 A method of using switch quick search lamp light control system configuration file
CN109995805A (en) * 2017-12-29 2019-07-09 深圳市优必选科技有限公司 A kind of management method of intelligent robot, terminal device and medium
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction
CN110196725A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Configuration file management method, apparatus, computer equipment and storage medium
CN110365788A (en) * 2019-07-22 2019-10-22 广东商路信息科技有限公司 Data managing method and device based on isomery message
CN113342423A (en) * 2021-06-29 2021-09-03 北京奇艺世纪科技有限公司 Configuration file updating method and device
CN113687904A (en) * 2021-10-26 2021-11-23 成都中科合迅科技有限公司 Interface dynamic generation method based on configuration file
CN114417425A (en) * 2022-03-28 2022-04-29 成都智达万应科技有限公司 OAuth-based document security preview and tracing method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7119809B1 (en) * 2000-05-15 2006-10-10 S3 Graphics Co., Ltd. Parallel architecture for graphics primitive decomposition
CN104133548A (en) * 2013-05-03 2014-11-05 中国移动通信集团公司 Method and device for determining viewpoint area and controlling screen luminance
CN106603281A (en) * 2016-12-07 2017-04-26 乐视控股(北京)有限公司 Configuration file management method and system
CN106685706A (en) * 2016-12-14 2017-05-17 深圳中顺易金融服务有限公司 Zookeeper based configuration update method and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7119809B1 (en) * 2000-05-15 2006-10-10 S3 Graphics Co., Ltd. Parallel architecture for graphics primitive decomposition
CN104133548A (en) * 2013-05-03 2014-11-05 中国移动通信集团公司 Method and device for determining viewpoint area and controlling screen luminance
CN106603281A (en) * 2016-12-07 2017-04-26 乐视控股(北京)有限公司 Configuration file management method and system
CN106685706A (en) * 2016-12-14 2017-05-17 深圳中顺易金融服务有限公司 Zookeeper based configuration update method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109995805A (en) * 2017-12-29 2019-07-09 深圳市优必选科技有限公司 A kind of management method of intelligent robot, terminal device and medium
CN109995805B (en) * 2017-12-29 2021-12-17 深圳市优必选科技有限公司 Intelligent robot management method, terminal device and medium
CN108763327A (en) * 2018-05-07 2018-11-06 中山易能智达电子有限公司 A method of using switch quick search lamp light control system configuration file
CN110175807A (en) * 2019-04-17 2019-08-27 平安普惠企业管理有限公司 Document data processing method, device and computer equipment in loan transaction
CN110196725A (en) * 2019-04-23 2019-09-03 平安科技(深圳)有限公司 Configuration file management method, apparatus, computer equipment and storage medium
CN110365788A (en) * 2019-07-22 2019-10-22 广东商路信息科技有限公司 Data managing method and device based on isomery message
CN113342423A (en) * 2021-06-29 2021-09-03 北京奇艺世纪科技有限公司 Configuration file updating method and device
CN113342423B (en) * 2021-06-29 2023-09-05 北京奇艺世纪科技有限公司 Configuration file updating method and device
CN113687904A (en) * 2021-10-26 2021-11-23 成都中科合迅科技有限公司 Interface dynamic generation method based on configuration file
CN114417425A (en) * 2022-03-28 2022-04-29 成都智达万应科技有限公司 OAuth-based document security preview and tracing method
CN114417425B (en) * 2022-03-28 2022-06-17 成都智达万应科技有限公司 Document security preview and tracing method based on OAuth

Similar Documents

Publication Publication Date Title
CN107506218A (en) The management method and management system of a kind of configuration file
CN110019350B (en) Data query method and device based on configuration information
CN110472207A (en) List generation method and device
CN109413127A (en) A kind of method of data synchronization and device
CN111538774B (en) Data storage and display method, system, equipment and storage medium
AU2018200693A1 (en) Method and design for automated testing system
CN107273369B (en) Table data modification method and device
CN108984549A (en) Table data pick-up method and apparatus are divided in an a kind of point library based on dynamic configuration data library
CN107729176A (en) The disaster recovery method and disaster tolerance system of a kind of profile management systems
CN111666293A (en) Database access method and device
US11442930B2 (en) Method, apparatus, device and storage medium for data aggregation
CN110019539A (en) A kind of method and apparatus that the data of data warehouse are synchronous
CN110019346A (en) A kind of data processing method and device based on double primary databases
CN109960212B (en) Task sending method and device
CN111125064A (en) Method and device for generating database mode definition statement
CN110109983A (en) A kind of method and apparatus operating Redis database
CN110020349A (en) The method and device of page rendering
CN112817562A (en) Service processing method and device
Choi et al. Improving database system performance by applying NoSQL
CN110502560A (en) A kind of method and server of Database Connection Parameters encapsulation
CN110895591A (en) Method and device for positioning self-picking point
CN107729394A (en) Data Mart management system and its application method based on Hadoop clusters
CN109947736A (en) The method and system calculated in real time
CN113535220A (en) Code packet management method and device
CN110858199A (en) Document data distributed computing method and device

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: 20171222

RJ01 Rejection of invention patent application after publication