CN109582388B - Parameter configuration method, device and equipment - Google Patents

Parameter configuration method, device and equipment Download PDF

Info

Publication number
CN109582388B
CN109582388B CN201811425061.7A CN201811425061A CN109582388B CN 109582388 B CN109582388 B CN 109582388B CN 201811425061 A CN201811425061 A CN 201811425061A CN 109582388 B CN109582388 B CN 109582388B
Authority
CN
China
Prior art keywords
effective range
server
determining
parameter
service 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.)
Active
Application number
CN201811425061.7A
Other languages
Chinese (zh)
Other versions
CN109582388A (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.)
Taobao China Software Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201811425061.7A priority Critical patent/CN109582388B/en
Publication of CN109582388A publication Critical patent/CN109582388A/en
Application granted granted Critical
Publication of CN109582388B publication Critical patent/CN109582388B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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

Abstract

The embodiment of the specification discloses a parameter configuration method, a parameter configuration device and parameter configuration equipment. The scheme comprises the following steps: the server acquires a plurality of service parameters; determining the effective range of each business parameter; determining relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server; determining an operation type of each of the related service parameters; determining the relevant service parameter with the minimum effective range aiming at the same operation type; and configuring the server according to the relevant service parameter with the minimum effective range.

Description

Parameter configuration method, device and equipment
Technical Field
The present application relates to the field of computer technologies, and in particular, to a parameter configuration method, apparatus, and device.
Background
In the prior art, generally speaking, the parameters of the service system program are determined to be not adjustable when the program is started, and the dynamic configuration means that the parameters can be adjusted freely when the program is run. Due to the diversity of product display forms and the deployment mode of the service system, the requirements for the operation result of the service system are different. However, the parameter configuration only supports the logical machine room, and only the same parameter configuration can be uniformly performed on the servers in the minimum logical unit, but the parameter configuration cannot be performed according to the physical machine room, a single server or other customized control.
Disclosure of Invention
In view of this, embodiments of the present application provide a parameter configuration method, apparatus, and device, which are used to improve flexibility of parameter configuration.
In order to solve the above technical problem, the embodiments of the present specification are implemented as follows:
an embodiment of the present specification provides a parameter configuration method, including:
the server acquires a plurality of service parameters;
determining the effective range of each business parameter;
determining relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
determining an operation type of each of the related service parameters;
determining the relevant service parameter with the minimum effective range aiming at the same operation type;
and configuring the server according to the relevant service parameter with the minimum effective range.
An embodiment of this specification provides a parameter configuration apparatus, including:
the service parameter acquisition module is used for acquiring a plurality of service parameters by the server;
the effective range determining module is used for determining the effective range of each service parameter;
the relevant service parameter determining module is used for determining the relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
an operation type determining module, configured to determine an operation type of each of the related service parameters;
the relevant service parameter determination module with the minimum effective range is used for determining the relevant service parameter with the minimum effective range aiming at the same operation type;
and the server configuration module is used for configuring the server according to the relevant service parameter with the minimum effective range.
An embodiment of this specification provides a parameter configuration device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
the server acquires a plurality of service parameters;
determining the effective range of each business parameter;
determining relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
determining an operation type of each of the related service parameters;
determining the relevant service parameter with the minimum effective range aiming at the same operation type;
and configuring the server according to the relevant service parameter with the minimum effective range.
The embodiment of the specification adopts at least one technical scheme which can achieve the following beneficial effects:
the effective range of the service parameters is increased, the server is subjected to parameter configuration by adopting the related service parameters with the minimum effective range, the limitation that only the minimum logic unit can be subjected to parameter configuration in the prior art is broken, and the flexibility of parameter configuration is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic diagram of an application scenario of a parameter configuration method in an embodiment of the present specification;
FIG. 2 is a schematic structural diagram of a parameter configuration apparatus corresponding to FIG. 1 according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a parameter configuration apparatus corresponding to fig. 1 provided in an embodiment of the present disclosure.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The technical solutions provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a parameter configuration method provided in an embodiment of the present disclosure. From the viewpoint of a program, the execution subject of the flow may be a program installed in an application server or an application client.
As shown in fig. 1, the process may include the following steps:
s101: the server obtains a plurality of service parameters.
In the embodiment of the present specification, the service parameter may be stored in advance, and may be added or deleted according to an actual situation. The service parameter may include an operation type to be configured, and an effective range, and whether the configuration of the operation type is to be performed, for example, the service parameter may include a parameter value, and if the parameter value is 1, it indicates that the configuration of the operation type is required to be performed, and if the parameter value is 0, it indicates that the configuration of the operation type is not required to be performed.
Since the service parameter includes the parameter of the effective range, there may be a plurality of service parameters with the same operation type, or a plurality of service parameters with the same effective range, but there is no service parameter with the same operation type and effective range.
S102: and determining the effective range of each service parameter.
In the embodiment of the present specification, an effective range is defined for each service parameter, and the effective range may be defined according to a service condition, may be directly set in the service parameter, or may be generated according to the effective range, and the effective range may be determined by using the reference parameter. The scope of validation may include a server or a plurality of servers that may directly store the IP address of the server, which is used to refer to the server.
For example, the service parameter with the operation type of open may include: 127.0.0.1-open, 127.0.0.2-open, gzene-open, and all-open. Wherein, the effective range of both gzone and all includes 127.0.0.1 and 127.0.0.2, and 127.0.0.1 and 127.0.0.2 are independent servers, and there is no inclusion relation.
S103: and determining the relevant service parameters of the server according to the effective range, wherein the effective range of the relevant service parameters comprises the server.
In the embodiment of the present specification, since each service parameter includes the effective range, the relevant service parameter of the current server may be determined according to whether the effective range of each service parameter includes the current server. Due to the difference of the servers, the related service parameters of each server are not used.
Assuming that the IP address of the current server is 127.0.0.1, since the effective ranges of both gzone and all include 127.0.0.1, the relevant service parameters of the server with IP address of 127.0.0.1 are: 127.0.0.1-open, gzene-open and all-open. If the IP address of the current server is 127.0.0.2, then the relevant service parameters of the server with IP address 127.0.0.2 are: 127.0.0.2-open, gzene-open, and all-open.
S104: determining an operation type of each of the related service parameters;
in the embodiment of the present specification, the operation type may be a parameter name, that is, the operation to be performed, for example, the operation type of the service parameter 127.0.0.1-open is open; the type of operation of the traffic parameter, gzone-update, is insert.
S105: and determining the relevant service parameter with the minimum effective range aiming at the same operation type.
In the embodiment of this specification, the relevant service parameters of the server with the IP address of 127.0.0.1 are: 127.0.0.1-open, gzene-open and all-open, wherein the effective range of 127.0.0.1 is the smallest, so the relevant business parameter for the minimum effective range with the operation type of open is 127.0.0.1-open.
S106: and configuring the server according to the relevant service parameter with the minimum effective range.
In the embodiment of the present specification, if the relevant service parameter with the minimum effective range of the server with the IP address of 127.0.0.1 is 127.0.0.1-open, then the open operation is performed according to the parameter value of 127.0.0.1-open.
In a specific application scenario, for example, in a certain application program, the version needs to be updated, and in order to test the new version, the new version is not all applied to all servers, and at this time, only one server in each different server deployment unit needs to be configured. For example, the IP address of the server is 127.0.0.1, then the service parameters need only be configured as: 127.0.0.1-update-1, all-update-0. The service parameters obtained by each server are as follows: 127.0.0.1-update-1, all-update-0. By adopting the parameter configuration method of the method, the server with the IP address of 127.0.0.1 finally adopts the service parameter of 127.0.0.1-update-1 to carry out parameter configuration, namely version updating. And the rest servers including the IP address 127.0.0.2 adopt all-update-0 to perform parameter configuration, namely, the version is not updated.
In the method in fig. 1, by increasing the effective range of the service parameter and adopting the relevant service parameter with the smallest effective range to perform parameter configuration on the server, the limitation that only the minimum logic unit can be configured in the prior art is broken, and the flexibility of parameter configuration is improved.
Based on the method of fig. 1, the embodiments of the present specification also provide some specific implementations of the method, which are described below.
Optionally, the obtaining, by the server, a plurality of service parameters specifically includes:
pre-storing each service parameter;
and the server remotely acquires the service parameters, and the servers share the service parameters.
In the embodiment of the present specification, each service parameter is stored in advance, and can be customized according to the characteristics of the service parameter. The classified storage can be carried out according to the operation type, and also can be carried out according to the effective range. In a specific application scenario, the service parameters can be made into a template and presented to a service parameter setting person in the form of a display interface. In general, the traffic parameters may include operation type, effective range, and parameter values. When the business parameter personnel configure, only the parameter value needs to be set. But it is guaranteed that all the servers obtain the same service parameters. For example, only servers with IP addresses 127.0.0.1 and 127.0.0.2 need to be version-updated, then the traffic parameters may be set to: all-update-0, 127.0.0.1-update-1, 127.0.0.2-update-1. If only the servers with IP addresses 127.0.0.1 and 127.0.0.2 do not have version updates, while all other servers 127.0.0.3, 127.0.0.4, … …, 127.0.0.n need to be updated, then the traffic parameters can be set to: all-update-1, 127.0.0.1-update-0, 127.0.0.2-update-0.
The service parameters are stored in a memory, which may be a memory of the server or a memory of the control background. The server can read the service parameters from the memory of the server, and can also remotely acquire the service parameters. And the service system of the server is started for many times to obtain the latest parameter value.
Optionally, the determining the relevant service parameters of the server specifically includes:
acquiring the IP address of the server;
acquiring server logic deployment information;
judging whether the effective range of the service parameter contains the IP address according to the server logic deployment information to obtain a first judgment result;
and when the first judgment result shows that the effective range of the service parameters contains the IP address, determining the service parameters as the relevant service parameters of the server.
In the embodiment of the present specification, the service parameters are various, and there is no relationship between the multiple service parameters and the server itself. Therefore, it is first necessary to determine the relevant service parameters of the server from among so many service parameters. The relevant service parameters are service parameters that may affect the current server after the relevant service parameters are validated, and may be defined according to the validation scope.
The deployment refers to a service server deployment mode, such as remote multi-cluster physical machine room deployment, deployment according to the logical Zone, deployment according to the service requirement, pre-release/production/failover and the like. The deployment information of the servers may be stored in advance in each server. And determining whether the effective range of each service parameter comprises the current server or not according to the deployment information. The effective range may be represented in the form of an IP address of the storage server, and when the effective range is detected to include the IP address of the current server, such as 127.0.0.1, the service parameter may be determined to be the relevant service parameter with the IP address of 127.0.0.1.
Optionally, the determining the relevant service parameter with the minimum effective range specifically includes:
acquiring an effective range of the first service parameter to obtain a first effective range;
acquiring an effective range of the second service parameter to obtain a second effective range; the first range of effectiveness is different from the second range of effectiveness;
judging whether the first effective range is smaller than the second effective range or not to obtain a second judgment result;
when the second judgment result shows that the first effective range is smaller than the second effective range, determining the first service parameter as the relevant service parameter with the minimum effective range;
and when the second judgment result shows that the first effective range is larger than the second effective range, determining the second service parameter as the relevant service parameter with the minimum effective range.
In the embodiment of the present specification, after determining the relevant service parameters of the server, the most critical step is to determine the relevant service parameter with the smallest effective range. And respectively determining the effective range of each service parameter, and then comparing the effective ranges to determine the service parameter with the minimum effective range.
Optionally, the determining whether the first effective range is smaller than the second effective range specifically includes:
determining the number of servers included in the first life range to obtain a first number;
determining the number of servers included in the second effective range to obtain a second number;
and judging whether the first number is smaller than the second number.
In the embodiment of the present specification, it has been defined above that the effective range of the relevant service parameter includes the current server, and when determining the effective range of each relevant service parameter, the determination may be performed according to the number of servers included in the effective range. For example, the first service parameter is: 127.0.0.1-update, the number of servers included in the effective range 127.0.0.1 is 1, and the second service parameter is: the gzone-update, the number of servers included in the gzone in the effective range is 50, and the third service parameter is: all-update, the effective range all contains 200 servers. 127.0.0.1-update can be determined as the least effective business parameter.
Optionally, the determining whether the first effective range is smaller than the second effective range specifically includes:
acquiring server logic deployment information;
determining the classification level of the first validity range according to the server logic deployment information to obtain a first level; the effective range with high division level is larger than the effective range with low division level;
determining the classification level of the second effective range according to the server logic deployment information to obtain a second level;
and judging whether the first level is lower than the second level.
In this embodiment of the present specification, the deployment of servers is set according to a certain level, and the greater the number of servers included in the deployment is, the higher the level is, for example, all of the servers included in all of the servers, so the level is the highest, the gzone includes a server with a specific function, different functions include different levels of servers, but all of the levels are less than the combing of the servers included in all of the servers, so the level of the gzone is the next, and the level of a single server is the lowest, according to this specification, the following levels are ordered: 127.0.0.1-update, gzene-update and all-update, so the level of 127.0.0.1-update is the lowest, and therefore, 127.0.0.1-update can be determined as the least effective business parameter.
Optionally, the configuring the server according to the relevant service parameter with the minimum effective range specifically includes:
obtaining the parameter value of the relevant service parameter with the minimum effective range;
and configuring the operation type of the service parameter for the server by adopting the parameter value.
In the embodiment of the present specification, the parameter values of the service parameter with the smallest effective range, for example, 127.0.0.1-update, are obtained as the service parameters with the smallest effective range, if the parameter values are 1, the server with the IP address of 127.0.0.1 is subjected to version update, and if the parameter values are 0, the server with the IP address of 127.0.0.1 is not subjected to version update. Of course, this is only for the configuration with the operation type being update, and other operation types may also be configured according to the above method. Different operation types do not affect each other, different operation types can be configured for the same server, and the same operation types can be configured for different servers, which can be flexibly set according to actual conditions.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method. Fig. 2 is a schematic structural diagram of a parameter configuration apparatus corresponding to fig. 1 according to an embodiment of the present disclosure. As shown in fig. 2, the apparatus may include:
a service parameter obtaining module 201, configured to obtain a plurality of service parameters by a server;
an effective range determining module 202, configured to determine an effective range of each service parameter;
a relevant service parameter determining module 203, configured to determine relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
an operation type determining module 204, configured to determine an operation type of each of the related service parameters;
the minimum-effective-range related service parameter determining module 205 is configured to determine, for the same operation type, a minimum-effective-range related service parameter;
a server configuration module 206, configured to configure the server according to the relevant service parameter with the minimum effective range.
Optionally, the service parameter obtaining module 201 may specifically include:
the storage unit is used for storing each service parameter in advance;
and the remote acquisition unit is used for the server to remotely acquire each service parameter, and each server shares the service parameter.
Optionally, the relevant service parameter determining module 203 may specifically include:
an IP address acquisition unit configured to acquire an IP address of the server;
the server logic deployment information acquisition unit is used for acquiring server logic deployment information;
a first result judgment unit, configured to judge, according to the server logic deployment information, whether the effective range of the service parameter includes the IP address, to obtain a first judgment result;
and a relevant service parameter determining unit, configured to determine the service parameter as a relevant service parameter of the server when the first determination result indicates that the effective range of the service parameter includes the IP address.
Optionally, the relevant service parameter determining module 205 with the minimum effective range may specifically include:
the first validity range acquiring unit is used for acquiring the validity range of the first service parameter to obtain a first validity range;
a second effective range obtaining unit, configured to obtain an effective range of the second service parameter, to obtain a second effective range; the first range of effectiveness is different from the second range of effectiveness;
the second result judging unit is used for judging whether the first effective range is smaller than the second effective range or not to obtain a second judgment result;
a first determining unit, configured to determine the first service parameter as the relevant service parameter with the smallest effective range when the second determination result indicates that the first effective range is smaller than the second effective range;
a second determining unit, configured to determine the second service parameter as the relevant service parameter with the smallest effective range when the second determination result indicates that the first effective range is larger than the second effective range.
Optionally, the second result determining unit may specifically include:
the first quantity determining subunit is configured to determine the number of servers included in the first validity range, so as to obtain a first quantity;
the second quantity determining subunit is configured to determine the number of servers included in the second effective range, so as to obtain a second quantity;
a quantity judging subunit, configured to judge whether the first quantity is smaller than the second quantity.
Optionally, the second result determining unit may specifically include:
the server logic deployment information acquisition subunit is used for acquiring server logic deployment information;
the first level determining subunit is used for determining the division level of the first effective range according to the server logic deployment information to obtain a first level; the effective range with high division level is larger than the effective range with low division level;
the second level determining subunit is used for determining the division level of the second effective range according to the server logic deployment information to obtain a second level;
and the level judging subunit is used for judging whether the first level is lower than the second level.
Optionally, the server configuration module 206 may specifically include:
a parameter value obtaining unit, configured to obtain a parameter value of the relevant service parameter with the smallest effective range;
and the configuration unit is used for configuring the operation type of the service parameter for the server by adopting the parameter value.
Based on the same idea, the embodiment of the present specification further provides a device corresponding to the above method.
Fig. 3 is a schematic structural diagram of a parameter configuration apparatus corresponding to fig. 1 provided in an embodiment of the present disclosure. As shown in fig. 3, the apparatus 300 may include:
at least one processor 310; and the number of the first and second groups,
a memory 330 communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory 330 stores instructions 320 executable by the at least one processor 310 to enable the at least one processor 310 to:
the server acquires a plurality of service parameters;
determining the effective range of each business parameter;
determining relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
determining an operation type of each of the related service parameters;
determining the relevant service parameter with the minimum effective range aiming at the same operation type;
and configuring the server according to the relevant service parameter with the minimum effective range.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, AtmelAT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (13)

1. A method of parameter configuration, comprising:
the server acquires a plurality of service parameters;
determining the effective range of each business parameter;
determining relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
determining an operation type of each of the related service parameters;
determining the relevant service parameter with the minimum effective range aiming at the same operation type;
configuring the server according to the relevant service parameter with the minimum effective range;
wherein, the determining the relevant service parameters of the server according to the effective range specifically includes:
acquiring the IP address of the server;
acquiring server logic deployment information;
judging whether the effective range of the service parameter contains the IP address according to the server logic deployment information to obtain a first judgment result;
and when the first judgment result shows that the effective range of the service parameters contains the IP address, determining the service parameters as the relevant service parameters of the server.
2. The method of claim 1, wherein the server obtains a plurality of service parameters, and specifically comprises:
pre-storing each service parameter;
and the server remotely acquires the service parameters, and the servers share the service parameters.
3. The method according to claim 1, wherein the determining the relevant service parameter with the smallest effective range specifically includes:
acquiring an effective range of the first service parameter to obtain a first effective range;
acquiring an effective range of the second service parameter to obtain a second effective range; the first range of effectiveness is different from the second range of effectiveness;
judging whether the first effective range is smaller than the second effective range or not to obtain a second judgment result;
when the second judgment result shows that the first effective range is smaller than the second effective range, determining the first service parameter as the relevant service parameter with the minimum effective range;
and when the second judgment result shows that the first effective range is larger than the second effective range, determining the second service parameter as the relevant service parameter with the minimum effective range.
4. The method according to claim 3, wherein the determining whether the first effective range is smaller than the second effective range specifically comprises:
determining the number of servers included in the first life range to obtain a first number;
determining the number of servers included in the second effective range to obtain a second number;
and judging whether the first number is smaller than the second number.
5. The method according to claim 3, wherein the determining whether the first effective range is smaller than the second effective range specifically comprises:
acquiring server logic deployment information;
determining the classification level of the first validity range according to the server logic deployment information to obtain a first level; the effective range with high division level is larger than the effective range with low division level;
determining the classification level of the second effective range according to the server logic deployment information to obtain a second level;
and judging whether the first level is lower than the second level.
6. The method according to claim 1, wherein the configuring the server according to the relevant service parameter with the minimum effective range specifically includes:
obtaining the parameter value of the relevant service parameter with the minimum effective range;
and configuring the operation type of the service parameter for the server by adopting the parameter value.
7. A parameter configuration apparatus, comprising:
the service parameter acquisition module is used for acquiring a plurality of service parameters by the server;
the effective range determining module is used for determining the effective range of each service parameter;
the relevant service parameter determining module is used for determining the relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
an operation type determining module, configured to determine an operation type of each of the related service parameters;
the relevant service parameter determination module with the minimum effective range is used for determining the relevant service parameter with the minimum effective range aiming at the same operation type;
the server configuration module is used for configuring the server according to the relevant service parameter with the minimum effective range;
the relevant service parameter determining module specifically includes:
an IP address acquisition unit configured to acquire an IP address of the server;
the server logic deployment information acquisition unit is used for acquiring server logic deployment information;
a first result judgment unit, configured to judge, according to the server logic deployment information, whether the effective range of the service parameter includes the IP address, to obtain a first judgment result;
and a relevant service parameter determining unit, configured to determine the service parameter as a relevant service parameter of the server when the first determination result indicates that the effective range of the service parameter includes the IP address.
8. The apparatus of claim 7, wherein the service parameter obtaining module specifically comprises:
the storage unit is used for storing each service parameter in advance;
and the remote acquisition unit is used for the server to remotely acquire each service parameter, and each server shares the service parameter.
9. The apparatus according to claim 7, wherein the module for determining the relevant service parameter with the smallest effective range specifically includes:
the first validity range acquiring unit is used for acquiring the validity range of the first service parameter to obtain a first validity range;
a second effective range obtaining unit, configured to obtain an effective range of the second service parameter, to obtain a second effective range; the first range of effectiveness is different from the second range of effectiveness;
the second result judging unit is used for judging whether the first effective range is smaller than the second effective range or not to obtain a second judgment result;
a first determining unit, configured to determine the first service parameter as the relevant service parameter with the smallest effective range when the second determination result indicates that the first effective range is smaller than the second effective range;
a second determining unit, configured to determine the second service parameter as the relevant service parameter with the smallest effective range when the second determination result indicates that the first effective range is larger than the second effective range.
10. The apparatus according to claim 9, wherein the second result determining unit specifically includes:
the first quantity determining subunit is configured to determine the number of servers included in the first validity range, so as to obtain a first quantity;
the second quantity determining subunit is configured to determine the number of servers included in the second effective range, so as to obtain a second quantity;
a quantity judging subunit, configured to judge whether the first quantity is smaller than the second quantity.
11. The apparatus according to claim 9, wherein the second result determining unit specifically includes:
the server logic deployment information acquisition subunit is used for acquiring server logic deployment information;
the first level determining subunit is used for determining the division level of the first effective range according to the server logic deployment information to obtain a first level; the effective range with high division level is larger than the effective range with low division level;
the second level determining subunit is used for determining the division level of the second effective range according to the server logic deployment information to obtain a second level;
and the level judging subunit is used for judging whether the first level is lower than the second level.
12. The apparatus of claim 7, wherein the server configuration module specifically comprises:
a parameter value obtaining unit, configured to obtain a parameter value of the relevant service parameter with the smallest effective range;
and the configuration unit is used for configuring the operation type of the service parameter for the server by adopting the parameter value.
13. A parameter configuration device, comprising:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to:
the server acquires a plurality of service parameters;
determining the effective range of each business parameter;
determining relevant service parameters of the server according to the effective range; the effective range of the relevant service parameters comprises the server;
determining an operation type of each of the related service parameters;
determining the relevant service parameter with the minimum effective range aiming at the same operation type;
configuring the server according to the relevant service parameter with the minimum effective range;
wherein, the determining the relevant service parameters of the server according to the effective range specifically includes:
acquiring the IP address of the server;
acquiring server logic deployment information;
judging whether the effective range of the service parameter contains the IP address according to the server logic deployment information to obtain a first judgment result;
and when the first judgment result shows that the effective range of the service parameters contains the IP address, determining the service parameters as the relevant service parameters of the server.
CN201811425061.7A 2018-11-27 2018-11-27 Parameter configuration method, device and equipment Active CN109582388B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811425061.7A CN109582388B (en) 2018-11-27 2018-11-27 Parameter configuration method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811425061.7A CN109582388B (en) 2018-11-27 2018-11-27 Parameter configuration method, device and equipment

Publications (2)

Publication Number Publication Date
CN109582388A CN109582388A (en) 2019-04-05
CN109582388B true CN109582388B (en) 2021-09-21

Family

ID=65924916

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811425061.7A Active CN109582388B (en) 2018-11-27 2018-11-27 Parameter configuration method, device and equipment

Country Status (1)

Country Link
CN (1) CN109582388B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112528666A (en) * 2019-08-30 2021-03-19 北京猎户星空科技有限公司 Semantic recognition method and device and electronic equipment
CN113435782A (en) * 2021-07-15 2021-09-24 支付宝(杭州)信息技术有限公司 Service change method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005116871A1 (en) * 2004-05-28 2005-12-08 Pattern Recognition Systems As Method and apparatus for tuning database configuration parameters usnig multivariate analysis
CN102685270A (en) * 2012-05-25 2012-09-19 杭州华三通信技术有限公司 Method and equipment for distributing dynamic addresses
CN104636482A (en) * 2015-02-16 2015-05-20 百度在线网络技术(北京)有限公司 Target address determining method and device
CN105049546A (en) * 2015-06-25 2015-11-11 瑞斯康达科技发展股份有限公司 Client terminal IP address allocation method through DHCP server and device thereof
CN105592371A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Method, device and system for automatically classifying services in GPON (Gigabit Passive Optical Network) system
CN106487538A (en) * 2015-08-25 2017-03-08 中国电信股份有限公司 Business accelerating method, policy control platform and system
CN107679700A (en) * 2017-09-08 2018-02-09 阿里巴巴集团控股有限公司 Business flow processing method, apparatus and server
CN108304455A (en) * 2017-12-20 2018-07-20 阿里巴巴集团控股有限公司 A kind of method, apparatus and equipment of processing business request
CN108628947A (en) * 2018-04-02 2018-10-09 阿里巴巴集团控股有限公司 A kind of business rule matched processing method, device and processing equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190362111A9 (en) * 2015-02-04 2019-11-28 Timekeeping Systems, Inc. Tracking system for persons and/or objects

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005116871A1 (en) * 2004-05-28 2005-12-08 Pattern Recognition Systems As Method and apparatus for tuning database configuration parameters usnig multivariate analysis
CN102685270A (en) * 2012-05-25 2012-09-19 杭州华三通信技术有限公司 Method and equipment for distributing dynamic addresses
CN105592371A (en) * 2014-10-20 2016-05-18 中兴通讯股份有限公司 Method, device and system for automatically classifying services in GPON (Gigabit Passive Optical Network) system
CN104636482A (en) * 2015-02-16 2015-05-20 百度在线网络技术(北京)有限公司 Target address determining method and device
CN105049546A (en) * 2015-06-25 2015-11-11 瑞斯康达科技发展股份有限公司 Client terminal IP address allocation method through DHCP server and device thereof
CN106487538A (en) * 2015-08-25 2017-03-08 中国电信股份有限公司 Business accelerating method, policy control platform and system
CN107679700A (en) * 2017-09-08 2018-02-09 阿里巴巴集团控股有限公司 Business flow processing method, apparatus and server
CN108304455A (en) * 2017-12-20 2018-07-20 阿里巴巴集团控股有限公司 A kind of method, apparatus and equipment of processing business request
CN108628947A (en) * 2018-04-02 2018-10-09 阿里巴巴集团控股有限公司 A kind of business rule matched processing method, device and processing equipment

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Estimation of range-dependent clutter covariance by configuration system parameter estimation";A.G. Jaffer 等;《 IEEE International Radar Conference, 2005》;20050606;第1-2页 *
"应对系统不稳定性应考虑的因素——用于管理内存存储的服务器配置参数详解";阎焯;《金融科技时代》;20180710(第7期);第74-76页 *

Also Published As

Publication number Publication date
CN109582388A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
CN107025559B (en) Service processing method and device
CN107450979B (en) Block chain consensus method and device
KR20190096391A (en) Database status determination method and device, and consistency verification method and device
CN107038041B (en) Data processing method, error code dynamic compatibility method, device and system
CN108959341B (en) Data synchronization method, device and equipment
CN109947643B (en) A/B test-based experimental scheme configuration method, device and equipment
CN107578338B (en) Service publishing method, device and equipment
CN107528885B (en) Service request processing method and device
CN108845876B (en) Service distribution method and device
CN109582388B (en) Parameter configuration method, device and equipment
CN112631679A (en) Preloading method and device for micro-application
CN111273965B (en) Container application starting method, system and device and electronic equipment
CN111459724A (en) Node switching method, device, equipment and computer readable storage medium
CN113536174A (en) Interface loading method, device and equipment
CN110046100B (en) Packet testing method, electronic device and medium
CN111240788A (en) Method, device and equipment for generating small program page
CN110244964B (en) Operation and maintenance method, device and equipment based on operation and maintenance application
CN111338655A (en) Installation package distribution method and system
CN109976769B (en) Method, device and equipment for determining server identification corresponding to application installation package
CN110874322B (en) Test method and test server for application program
CN110968333B (en) Configuration information replacement method and device, machine-readable storage medium and processor
CN113556260A (en) Flow monitoring method and device, storage medium and electronic equipment
CN113626342B (en) Model online testing method and device
CN113342376B (en) Method and device for upgrading operating system of Internet of things equipment
CN110633321B (en) Data synchronization method, device and equipment

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
TR01 Transfer of patent right

Effective date of registration: 20221123

Address after: Room 554, floor 5, building 3, No. 969, Wenyi West Road, Wuchang Street, Yuhang District, Hangzhou City, Zhejiang Province

Patentee after: TAOBAO (CHINA) SOFTWARE CO.,LTD.

Address before: Box 847, four, Grand Cayman capital, Cayman Islands, UK

Patentee before: ALIBABA GROUP HOLDING Ltd.

TR01 Transfer of patent right