CN109032654A - The method and apparatus of configuration parameter, server and storage medium in the server - Google Patents

The method and apparatus of configuration parameter, server and storage medium in the server Download PDF

Info

Publication number
CN109032654A
CN109032654A CN201710430401.4A CN201710430401A CN109032654A CN 109032654 A CN109032654 A CN 109032654A CN 201710430401 A CN201710430401 A CN 201710430401A CN 109032654 A CN109032654 A CN 109032654A
Authority
CN
China
Prior art keywords
expression formula
server
cache server
configuration parameter
parameter
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.)
Granted
Application number
CN201710430401.4A
Other languages
Chinese (zh)
Other versions
CN109032654B (en
Inventor
余欢
柏桂秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201710430401.4A priority Critical patent/CN109032654B/en
Publication of CN109032654A publication Critical patent/CN109032654A/en
Application granted granted Critical
Publication of CN109032654B publication Critical patent/CN109032654B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

Present disclose provides a kind of methods for configuration parameter in the server, comprising: receives the first expression formula of input;It parses and executes the first expression formula with configuration parameter;If run succeeded, first expression formula is stored to cache server via network;And the second expression formula is obtained from cache server via network, it parses and executes second expression formula with configuration parameter.The disclosure realizes multiple servers one modification of distributed system, the function of the more dynamic modification system configurations to come into force.

Description

The method and apparatus of configuration parameter, server and storage medium in the server
Technical field
This disclosure relates to Internet technical field, and in particular to for configuration parameter in the server method and apparatus, Server and storage medium.
Background technique
In general, a Web system during developing operation, has the configuration text that a support system operates normally Part.Database address, interface IP address of interaction needed for not only containing system operation in configuration file etc., possibly incorporates also The switch of control system program torsion and the default parameter value of some other influence system.It, may during system operation It will appear and need the case where modifying system configuration.Such as some page does permission control, only allows specific personnel to access, permission Control by the way that the name of these personnel is configured in configuration file, when personnel change, need to modify in configuration file Relevant configuration.
In the implementation of the present invention, inventor has found that the prior art at least has the following technical problems.
A kind of prior art directly modifies corresponding parameter value in configuration file, then restarts system.But if on line Have and cover different server groupings (for example, the corresponding server room of a grouping, one configuration of a grouping) more, needs Corresponding configuration is successively modified, system is successively restarted.
Another prior art then relies on an external system, and parameter value is configured to this external system in advance, owns Server timing obtains the value of the parameters such as switch from this external system.However, it is desirable to be configured in external system in advance well originally Parameter needed for system, and need to configure corresponding parameter in the present system to receive the value in external system, if necessary to new The parameters such as pass are increased, external system only needs a newly-increased configuration, but this system needs to modify coding also to receive external system The value of the parameter configured.If external system goes wrong, it is likely to result in the parameter value for needing to update in this system not It can timely update.
Summary of the invention
In view of this, it is desirable to provide it is a kind of independent of external system can dynamic configuration parameters in the server skill Art scheme.
According to the disclosure in a first aspect, providing a kind of method for configuration parameter in the server, comprising: receive First expression formula of input;It parses and executes the first expression formula with configuration parameter;It, will via network if parsing and running succeeded First expression formula is stored to cache server;And the second expression formula is obtained from cache server via network, parsing is simultaneously Second expression formula is executed with configuration parameter.
In one embodiment, simultaneously executable expressions may include: to be extracted from expression formula according to character string rule for parsing The type of the format and execution object that execute object, and be based at least partially on expression formula carrys out configuration parameter.
In one embodiment, the cache server is key-value cache server.The method can also include by institute The storage of the first expression formula is stated to the assignment key of the key-value cache server, and the expired time of the assignment key is set.
In one embodiment, the method can also include obtaining the second expression from cache server according to gap periods Formula, the expired time that the gap periods depend on as second expression formula setting, for example, the expired time is greater than or waits In the gap periods, and less than or equal to twice of the gap periods, so that server can only execute in gap periods Expression formula.
According to the second aspect of the disclosure, a kind of device for configuration parameter in the server is provided, comprising: input Unit is configured as receiving the first expression formula of input;First resolution executing is configured as parsing and executing the first expression Formula is with configuration parameter;Release unit stores first expression formula via network if being configured as parsing and run succeeded To cache server;And acquiring unit, it is configured as obtaining the second expression formula from cache server via network;Second parsing Execution unit is configured as parsing and executing second expression formula with configuration parameter.
In one embodiment, each of the first resolution executing and the second resolution executing can also be matched It is set to: being extracted from expression formula according to character string rule and execute object, and be based at least partially on the format of expression formula and hold The type of row object carrys out configuration parameter.
In one embodiment, the cache server can be key-value cache server.The release unit can be with It is configured as the assignment key stored the first expression formula to the key-value cache server, and the expired of the assignment key is set Time.
In one embodiment, the acquiring unit can be additionally configured to obtain according to gap periods from cache server Second expression formula, the expired time that the gap periods depend on as second expression formula setting, for example, expired time is greater than Or it is equal to the gap periods, and be less than or equal to twice of the gap periods, so that server only meeting in gap periods Execute an expression formula.
According to the third aspect of the disclosure, a kind of server is provided, comprising: one or more processors;Storage device, For storing one or more programs, wherein when one or more of programs are executed by one or more of processors, make Obtain the method for one or more of processors realizations as described in relation to the first aspect.
According to the fourth aspect of the disclosure, a kind of computer readable storage medium is provided, is stored on the storage medium There is computer instruction, the computer instruction is executed by processor, so that the processor executes side as described in relation to the first aspect Method.
The disclosure will input in the case where not needing to restart system also not dependent on external system and successfully parsing held Capable expression formula is published to the cache server on network, and the expression issued from caching other servers of server sync Formula realizes multiple servers one modification of distributed system, the function of the more dynamic modification system configurations to come into force.
Detailed description of the invention
By referring to the drawings to the description of the embodiment of the present disclosure, the above-mentioned and other purposes of the disclosure, feature and Advantage will be apparent from, in the accompanying drawings:
Fig. 1 shows the example of the distributed system including multiple servers according to the embodiment of the present disclosure;
Parameter is executed Fig. 2 shows the reception according to the embodiment of the present disclosure and is published to the signal of the method for cache server Flow chart;
Fig. 3, which is shown, obtains the method for executing parameter and parsing execution via cache server according to the embodiment of the present disclosure Schematic flow diagram;
Fig. 4 shows the schematic block diagram according to an embodiment of the present invention for the device of configuration parameter in the server.
Fig. 5 shows the schematic flow diagram according to the parsing of the embodiment of the present disclosure and the process of executable expressions;And
Fig. 6 shows the structural schematic diagram for being suitable for use in the computer system for realizing the embodiment of the present disclosure.
Specific embodiment
Hereinafter, will be described with reference to the accompanying drawings embodiment of the disclosure.However, it should be understood that these descriptions are only exemplary , and it is not intended to limit the scope of the present disclosure.In addition, in the following description, descriptions of well-known structures and technologies are omitted, with Avoid unnecessarily obscuring the concept of the disclosure.
Term as used herein is not intended to limit the disclosure just for the sake of description specific embodiment.Used here as Word " one ", " one (kind) " and "the" etc. also should include " multiple ", " a variety of " the meaning, unless in addition context clearly refers to Out.In addition, the terms "include", "comprise" as used herein etc. show the presence of the feature, step, operation and/or component, But it is not excluded that in the presence of or add other one or more features, step, operation or component.
There are all terms (including technical and scientific term) as used herein those skilled in the art to be generally understood Meaning, unless otherwise defined.It should be noted that term used herein should be interpreted that with consistent with the context of this specification Meaning, without that should be explained with idealization or excessively mechanical mode.
Shown in the drawings of some block diagrams and/or flow chart.It should be understood that some sides in block diagram and/or flow chart Frame or combinations thereof can be realized by computer program instructions.These computer program instructions can be supplied to general purpose computer, The processor of special purpose computer or other programmable data processing units, so that these instructions are when executed by this processor can be with Creation is for realizing function/operation device illustrated in these block diagrams and/or flow chart.
According to the embodiment of the present disclosure, can be added on each server of distributed system for realizing the disclosure in advance One unified interface receives in the interface and executes parameter, and executing parameter can be inputted and be resolved in the form of expression formula. If Parameter analysis of electrochemical correctly if parameter encapsulated, parsed parameter is executed by server.If run succeeded, show corresponding Execution parameter it is available, the parameter received can be added to caching (such as Redis) by server, and the execution parameter of input is same Walk other servers.Therefore, each of distributed system server can also be obtained from caching and be connect by other servers The execution parameter received and executed, so as to dynamically modify system configuration.
Fig. 1 shows the example of the distributed system 100 including multiple servers according to the embodiment of the present disclosure.
As shown in Figure 1, distributed system 100 may include multiple servers 101,102,103,104 and buffer service Device 105.Server 101,102,103,104 can be communicated via network with cache server 105, for example, taking to caching Business device 105, which sends to execute parameter and/or receive from cache server 105, executes parameter.The network to server 101, 102, the medium of communication link is provided between 103,104 and cache server 105, and may include various connection types, such as Wired, wireless communication link or fiber optic cables etc..
Server 101 to 104 can be to provide the server of various services, such as be browsed to user using terminal device Shopping class website provide support back-stage management server.Back-stage management server can be to the information query received The data such as request analyze etc. processing, and instead by processing result (such as target push information, product information -- merely illustrative) It feeds terminal device.
Cache server 105 may include the memory for storing various data informations, such as various volatibility or non-volatile Property memory.The data information stored is, for example, the currently used system configuration of each server 101 to 104, executes ginseng Number etc..As shown in Figure 1, server 101 to 104 can synchronize execution parameter by server 105, it is described in detail below. In one embodiment, cache server 105 may include Redis caching, and a kind of this open source is compiled using ANSI C Write, support network, can based on memory also can persistence log type, Key-Value (key-value) cache server.
It should be noted that various methods provided by the embodiment of the present disclosure can generally be held by server 101 to 104 Row, corresponding device generally can be set in server 101 to 104.
It should be understood that the number of server and cache server in Fig. 1 is only schematical.According to realize needs, It can have any number of server and cache server.
Parameter is executed Fig. 2 shows the reception according to the embodiment of the present disclosure and is published to the method 200 of cache server Schematic flow diagram.This method can execute at server (for example, above-mentioned server 101 to 104).
In step 201, front-end interface, which receives, executes parameter.For example, user can be at the interface of seeking unity of action that system provides In, the parameter to be executed is inputted, for example inputted with the form of expression formula.In the disclosure, executing parameter and expression formula be can be interchanged It uses.
In step 202, parsing executes parameter.When server receives the parameter with expression formula form to be executed, It can carry out analytic parameter format according to character string rule, parameter is packaged to (hereinafter reference will be made to the drawings 5 in detail if correct Description), interface directly gives corresponding prompt if incorrect.
In step 203, parsing result is executed.Server is according to the parsing result of step 202, after internal execute encapsulation Parameter, that is to say, that modify the configuration parameter of server.
In step 204, synchronization caching.After step 203 execution, then ginseng can be executed by what is be passed in interface via network Number is cached to an assignment key (key) of for example above-mentioned cache server 105 (such as Redis caching) of cache server, and can Think that expired time is arranged in this key.Therefore, the execution parameter that step 204 will input is via Web Publishing to buffer service Device.If step 203 executes failure, interface provides corresponding prompt.In one embodiment, the assignment key can also refer to Determine one in the server (for example, above-mentioned server 101 to 104) of distributed system (for example, above-mentioned distributed system 100) Sub-server, so that the only available expression formula for being cached to the assignment key of these servers.
In step 205, interface returns implementing result.That is, showing the implementing result that server returns.
By above method 200, each of distributed system server can receive the execution parameter of input, and Parsing and after executing, will execute the parameter synchronization system that can obtain and modify them to cache server so as to other servers Configuration.The processing of other servers execution is described below.
Fig. 3, which is shown, obtains the method for executing parameter and parsing execution via cache server according to the embodiment of the present disclosure 300 schematic flow diagram.
In step 301, opening timing task.Server Command Line Parsing and the executing parameter of the task.The gap periods of configuration The expired time (such as the expired time for the assignment key being arranged in step 204) that set execution parameter can be referred to, makes An expression formula can only be executed within this period by obtaining server.
In step 302, obtains and execute parameter.Parameter assignment key is executed for example, obtaining via network from cache server Value.If this value is sky, illustrate the parameter for not needing the server to execute.
In step 303, parsing executes parameter.Whether server is correct according to rule parsing parameter format.If correct The step of parameter is packaged, is no longer executed below if incorrect.
Parameter after step 304, server execute encapsulation, that is to say, that the system configuration of server is modified, in this Fig. 2 Step 203 it is equivalent.
It should be noted that each of distributed system server can carry out the above method 200 and 300, and And method 200 and 300 can be executed in each server with random order or parallel mode.Therefore, each server can To receive to entered by himself parameter and the parameter uploaded by other servers obtained from cache server, and based on these ginsengs Number is dynamically to modify system configuration.
Fig. 4 shows the schematic block diagram according to an embodiment of the present invention for the device 400 of configuration parameter in the server.
Device 400 may include input unit 410, the first resolution executing 420, release unit 430, acquiring unit 440 and second resolution executing 450.Wherein, input unit 410, the first resolution unit 420 and release unit 430 can be with Expression formula for receiving input can carry out dynamic configuration to system parameter by expression formula, can be with if configuration successful The expression formula of input is published on network, such as storage is into cache server, so as to by its in entire distributed system His server obtains the expression formula to carry out Dynamical parameter configuration.
Specifically, input unit 410 is configured as receiving the first expression formula of input;First resolution executing, 420 quilt It is configured to parse and execute the first expression formula with configuration parameter;If release unit 430 is configured as running succeeded, via network By first expression formula storage to cache server.
Acquiring unit 440 and the second resolution executing 450 in device 400, which can then be used, has obtained other servers Parameter (be distributed to cache server, expression formula form) of the success being locally configured configures the server where itself.Tool Body, acquiring unit 440, which can be configured as, obtains the second expression formula from cache server via network;Second parsing executes list Member 450 is configured as parsing and executing second expression formula with configuration parameter.
It should be noted that the first resolution executing 420 and the second resolution executing 440 can execute it is substantially similar Processing.In one embodiment, each of the first resolution executing 420 and the second resolution executing 440 go back quilt Be configured that extracted from expression formula according to character string rule execute object, and be based at least partially on expression formula format and The type for executing object carrys out configuration parameter.
In one embodiment, the cache server is key-value cache server.Release unit 430 can also be matched It is set to the assignment key of the first expression formula storage to the key-value cache server, and the expired time of the assignment key is set.
In one embodiment, the acquiring unit 430 can be additionally configured to according to gap periods from cache server Obtain the second expression formula, the expired time that gap periods depend on as second expression formula setting, for example, expired time is greater than Or it is equal to gap periods, and be less than or equal to twice of gap periods.
Fig. 5 shows the schematic flow diagram according to the parsing of the embodiment of the present disclosure and the process 500 of executable expressions.Process 500 can for example execute in above-mentioned steps 202 and 203 and step 303 and 304.Process 500 is with Spring Development Framework Example describes parsing and executable expressions, and but the invention is not restricted to this.
Firstly, in step 501, according to execution parameter expression (for example, inputting from interface or being obtained from cache server Take) format, configure the rule of some character strings to parse the last object bean for executing parameter configuration.
For example, for # { systemConstant.setPermissionSwitchOn (false) } this expression formula, according to Going out to execute the bean of parameter configuration according to character string rule parsing is systemConstant.For another example for # { validPerson [1] } this expression formula, the bean parsed are validPerson.Then corresponding name can be taken out in Spring container bean.If not provided, providing corresponding prompt, can directly return.
Secondly, in step 502, whether " [] " is contained according to expression formula and distinguishes processing, because " [] " is generally used for marking Show subscript (index).Then the value of " [] " is parsed, corresponding lower target value can be obtained according to the type of bean.For example, working as When expression formula contains " [] ", can in step 503, determine Bean whether be a Collection type object, if so, Then can further step 504 determine Bean whether be a List or Map type object.If it is pair of List type As then, according to the subscript (index) parsed in " [] ", the result of list.get (index) can be returned in step 505. If it is the object of Map type, then value can be parsed in step 506, return to the result of map.get (value).
It should be noted that if determining that Bean is not a Collection object in step 503, or in step 504 determine Bean neither Map is also not List object, then proceed to step 507, construct Spel executing rule and environment, and Executing rule.Specifically, the name that the parameter entirely inputted is removed to bean, the execution parameter as Spel expression formula.Example Such as, # { systemConstant.setPermissionSwitchOn (false) } this expression formula, corresponding Spel after parsing Expression formula is # { setPermissionSwitchOn (false) }.It is then possible to construct the execution context of bean, it is passed to Spel expression formula after the above parsing, finally obtains implementing result, is shown for example, returning it into interface.
Return step 502, if it is determined that when not containing " [] " in expression formula, proceed to step 508, check in expression formula Whether containing the format for being directly # { bean }.If so, directly returning to this bean in step 509.If it is not, then same advance To step 507, Spel executing rule and environment, executing rule are constructed.
As shown in figure 5, server is the dynamic for completing system parameter after executing step 505,506,507 and 509 Configuration, at this moment can return to interface and be shown, for example, step 205 shown in Fig. 2.
Below with reference to Fig. 6, it illustrates be suitable for use in the structural representation for realizing the computer system 600 of the embodiment of the present disclosure Figure.Computer system shown in Fig. 6 is only an example, should not function to the embodiment of the present disclosure and use scope bring and appoint What is limited.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and Execute various movements appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data. CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always Line 604.
I/O interface 605 is connected to lower component: the importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 607 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 608 including hard disk etc.; And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because The network of spy's net executes communication process.Driver 610 is also connected to I/O interface 605 as needed.Detachable media 611, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 610, in order to read from thereon Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communications portion 609, and/or from detachable media 611 are mounted.When the computer program is executed by central processing unit (CPU) 601, executes and limited in the system of the disclosure Above-mentioned function.
It should be noted that computer-readable medium described herein can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this application, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In application, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
As on the other hand, the disclosure additionally provides a kind of computer-readable medium, which can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes The equipment executes and describes either method in above-described embodiment.
Embodiment of the disclosure is described above.But the purpose that these embodiments are merely to illustrate that, and It is not intended to limit the scope of the present disclosure.Although respectively describing each embodiment above, but it is not intended that each reality Use cannot be advantageously combined by applying the measure in example.The scope of the present disclosure is defined by the appended claims and the equivalents thereof.It does not take off From the scope of the present disclosure, those skilled in the art can make a variety of alternatives and modifications, these alternatives and modifications should all fall in this Within scope of disclosure.

Claims (14)

1. a kind of method for configuration parameter in the server, comprising:
Receive the first expression formula of input;
It parses and executes the first expression formula with configuration parameter;
If parsing and running succeeded, first expression formula is stored to cache server via network;And
The second expression formula is obtained from cache server via network,
It parses and executes second expression formula with configuration parameter.
2. according to the method described in claim 1, wherein, parsing and executable expressions including:
It is extracted from expression formula according to character string rule and executes object, and be based at least partially on format and the execution of expression formula The type of object carrys out configuration parameter.
3. according to the method described in claim 1, wherein, the cache server is key-value cache server.
4. according to the method described in claim 3, further including by first expression formula storage to the key-value cache server Assignment key, and the expired time of the assignment key is set.
5. according to the method described in claim 1, further including obtaining the second expression formula, institute from cache server according to gap periods It states gap periods and depends on the expired time being arranged for second expression formula.
6. according to the method described in claim 5, wherein, the expired time is greater than or equal to the gap periods, and is less than Or twice equal to the gap periods.
7. a kind of device for configuration parameter in the server, comprising:
Input unit is configured as receiving the first expression formula of input;
First resolution executing is configured as parsing and executing the first expression formula with configuration parameter;
First expression formula is stored to caching via network and is taken if being configured as parsing and run succeeded by release unit Business device;And
Acquiring unit is configured as obtaining the second expression formula from cache server via network,
Second resolution executing is configured as parsing and executing second expression formula with configuration parameter.
8. device according to claim 7, wherein first resolution executing and second resolution executing Each of be also configured to
It is extracted from expression formula according to character string rule and executes object, and be based at least partially on format and the execution of expression formula The type of object carrys out configuration parameter.
9. device according to claim 7, wherein the cache server is key-value cache server.
10. device according to claim 9, wherein the release unit is additionally configured to arrive the first expression formula storage The assignment key of the key-value cache server, and the expired time of the assignment key is set.
11. device according to claim 7, wherein the acquiring unit is additionally configured to according to gap periods from caching Server obtains the second expression formula, the expired time that the gap periods depend on as second expression formula setting.
12. device according to claim 11, wherein the expired time is greater than or equal to the gap periods, and small In or equal to twice of the gap periods.
13. a kind of server, comprising:
One or more processors;
Storage device, for storing one or more programs,
Wherein, when one or more of programs are executed by one or more of processors, so that one or more of places It manages device and realizes such as method described in any one of claims 1 to 6.
14. a kind of computer readable storage medium, computer instruction, the meter are stored on the computer readable storage medium When the instruction of calculation machine is executed by processor, so that the processor executes such as method described in any one of claims 1 to 6.
CN201710430401.4A 2017-06-08 2017-06-08 Method and apparatus for configuring parameters in server, server and storage medium Active CN109032654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710430401.4A CN109032654B (en) 2017-06-08 2017-06-08 Method and apparatus for configuring parameters in server, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710430401.4A CN109032654B (en) 2017-06-08 2017-06-08 Method and apparatus for configuring parameters in server, server and storage medium

Publications (2)

Publication Number Publication Date
CN109032654A true CN109032654A (en) 2018-12-18
CN109032654B CN109032654B (en) 2022-06-07

Family

ID=64628670

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710430401.4A Active CN109032654B (en) 2017-06-08 2017-06-08 Method and apparatus for configuring parameters in server, server and storage medium

Country Status (1)

Country Link
CN (1) CN109032654B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282274A (en) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 Data processing method and device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101454769A (en) * 2006-05-22 2009-06-10 微软公司 Synchronizing structured web site contents
CN101556536A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for configuring application program by using self-defining configuration files
CN101826073A (en) * 2009-03-06 2010-09-08 华为技术有限公司 Synchronous method, apparatus and system for distributed database
CN101883149A (en) * 2010-07-07 2010-11-10 杭州海康威视数字技术股份有限公司 Method, system, network keyboard and monitoring platform for parameter synchronization
CN102279744A (en) * 2011-08-24 2011-12-14 北京星网锐捷网络技术有限公司 System and method for processing command line
CN102394901A (en) * 2011-06-23 2012-03-28 北京新媒传信科技有限公司 Server cluster system and updating method of monitoring policies in same
CN102497280A (en) * 2011-11-14 2012-06-13 浪潮(北京)电子信息产业有限公司 Distributed system and method thereof for realizing management
CN102662683A (en) * 2011-12-30 2012-09-12 广东东研网络科技有限公司 Generating and importing method for communication facility configuration file based on key-value pair format
CN102779044A (en) * 2012-06-28 2012-11-14 用友软件股份有限公司 Analysis processing system and analysis processing method of expression
CN103152390A (en) * 2013-02-04 2013-06-12 华为技术有限公司 Method and device and nodes and system for node configuration of distributed storage system
CN103995833A (en) * 2014-04-21 2014-08-20 深圳天珑无线科技有限公司 Method and device for sharing configuration information
CN104780405A (en) * 2015-04-15 2015-07-15 青岛海信宽带多媒体技术有限公司 Method and combined television for sharing configuration parameters
CN105302556A (en) * 2015-10-27 2016-02-03 北京京东尚科信息技术有限公司 Calculation realization method and system and server apparatus
US20160057000A1 (en) * 2014-08-22 2016-02-25 Spectralink Corporation Distributed configuration management system and method
CN106603281A (en) * 2016-12-07 2017-04-26 乐视控股(北京)有限公司 Configuration file management method and system

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101454769A (en) * 2006-05-22 2009-06-10 微软公司 Synchronizing structured web site contents
CN101556536A (en) * 2008-04-11 2009-10-14 北京闻言科技有限公司 Method for configuring application program by using self-defining configuration files
CN101826073A (en) * 2009-03-06 2010-09-08 华为技术有限公司 Synchronous method, apparatus and system for distributed database
CN101883149A (en) * 2010-07-07 2010-11-10 杭州海康威视数字技术股份有限公司 Method, system, network keyboard and monitoring platform for parameter synchronization
CN102394901A (en) * 2011-06-23 2012-03-28 北京新媒传信科技有限公司 Server cluster system and updating method of monitoring policies in same
CN102279744A (en) * 2011-08-24 2011-12-14 北京星网锐捷网络技术有限公司 System and method for processing command line
CN102497280A (en) * 2011-11-14 2012-06-13 浪潮(北京)电子信息产业有限公司 Distributed system and method thereof for realizing management
CN102662683A (en) * 2011-12-30 2012-09-12 广东东研网络科技有限公司 Generating and importing method for communication facility configuration file based on key-value pair format
CN102779044A (en) * 2012-06-28 2012-11-14 用友软件股份有限公司 Analysis processing system and analysis processing method of expression
CN103152390A (en) * 2013-02-04 2013-06-12 华为技术有限公司 Method and device and nodes and system for node configuration of distributed storage system
CN103995833A (en) * 2014-04-21 2014-08-20 深圳天珑无线科技有限公司 Method and device for sharing configuration information
US20160057000A1 (en) * 2014-08-22 2016-02-25 Spectralink Corporation Distributed configuration management system and method
CN104780405A (en) * 2015-04-15 2015-07-15 青岛海信宽带多媒体技术有限公司 Method and combined television for sharing configuration parameters
CN105302556A (en) * 2015-10-27 2016-02-03 北京京东尚科信息技术有限公司 Calculation realization method and system and server apparatus
CN106603281A (en) * 2016-12-07 2017-04-26 乐视控股(北京)有限公司 Configuration file management method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282274A (en) * 2020-02-20 2021-08-20 北京京东振世信息技术有限公司 Data processing method and device
CN113282274B (en) * 2020-02-20 2023-09-22 北京京东振世信息技术有限公司 Data processing method and device

Also Published As

Publication number Publication date
CN109032654B (en) 2022-06-07

Similar Documents

Publication Publication Date Title
CN106936871B (en) Method and device for displaying data on interface
CN106027330B (en) A kind of front end system message test method and simulation baffle system
EP2487595B1 (en) Web service for automated cross-browser compatibility checking of web applications
US9268547B2 (en) Conditional logic for delivering computer-executable program instructions and content
KR20080053293A (en) Initial server-side content rendering for client-script web pages
WO2020154737A1 (en) Identifying user interface elements using element signatures
CN105138448A (en) Method and device for page test at front end
JP2013506175A (en) Management of application state information by unified resource identifier (URI)
CN108958992A (en) test method and device
CN110795697B (en) Method and device for acquiring logic expression, storage medium and electronic device
CN110633219B (en) Page test method and device, storage medium and electronic equipment
CN113590974B (en) Recommendation page configuration method and device, electronic equipment and computer readable medium
Hope et al. Simplifying the interaction between cognitive models and task environments with the JSON Network Interface
TW550460B (en) Method for dynamically downloading a program logic into an application program and the system thereof
US10318559B2 (en) Generation of graphical maps based on text content
CN112363938A (en) Data processing method and device, electronic equipment and storage medium
CN108694120A (en) The method and apparatus of testing service component
CN110020370B (en) Method and device for realizing animation in client application and framework of animation script
CN109284452A (en) The online methods of exhibiting of electronic protocol, device, electronic equipment, storage medium
CN113238739A (en) Plug-in development and data acquisition method, device, electronic equipment and medium
CN109032654A (en) The method and apparatus of configuration parameter, server and storage medium in the server
Sabri et al. Smart attendance system by suing RFID
CN110489304A (en) The monitoring method and device of resource access state between system
US20200034461A1 (en) Relational database schema generation
Hamida et al. Integrated CHOReOS middleware-Enabling large-scale, QoS-aware adaptive choreographies

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant