CN111290804A - Service configuration system, service configuration method, device and configuration server - Google Patents

Service configuration system, service configuration method, device and configuration server Download PDF

Info

Publication number
CN111290804A
CN111290804A CN202010104296.7A CN202010104296A CN111290804A CN 111290804 A CN111290804 A CN 111290804A CN 202010104296 A CN202010104296 A CN 202010104296A CN 111290804 A CN111290804 A CN 111290804A
Authority
CN
China
Prior art keywords
configuration
service
parameters
target
pocket
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
CN202010104296.7A
Other languages
Chinese (zh)
Other versions
CN111290804B (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.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan 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 Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN202010104296.7A priority Critical patent/CN111290804B/en
Publication of CN111290804A publication Critical patent/CN111290804A/en
Application granted granted Critical
Publication of CN111290804B publication Critical patent/CN111290804B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention discloses a service configuration system, a service configuration method, a service configuration device and a configuration server. Wherein, this business configuration system includes: the method comprises the steps that a service cluster, a center configuration end and an experiment configuration cluster are configured, the center configuration end stores bottom-of-pocket configuration parameters of different configuration services, and the experiment configuration cluster calculates hit configuration parameters of the different configuration services; the configuration service cluster acquires the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end, acquires the hit configuration parameters of the target configuration service from the experimental configuration cluster, and determines the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters. According to the technical scheme provided by the embodiment of the invention, technicians do not need to manually set the default configuration for use when the experiment configuration cluster misses a specific experiment, and the actual configuration parameters are directly determined through the bottom-in-pocket configuration parameters, so that the error caused by manually setting the default configuration is avoided, and the flexibility and the stability of service configuration are improved.

Description

Service configuration system, service configuration method, device and configuration server
Technical Field
The embodiment of the invention relates to the technical field of service processing, in particular to a service configuration system, a service configuration method, a service configuration device and a configuration server.
Background
Currently, when configuration optimization is performed on a certain type of application service in most internet applications, an optimal experimental scheme is usually hit by using an ab experimental service according to a configuration request of current optimization, and then a current application service is configured by using a configuration value corresponding to the optimal experimental scheme, for example, a corresponding configuration optimization is performed on a page style, a page jump link or a page button layout of a certain application by using the ab experimental service.
The existing ab experiment service can preset a plurality of experiment schemes aiming at the configuration optimization of a certain specific service, meanwhile, a part of users are circled as the participating users of the ab experiment service according to the dimensionalities of the user country, language, equipment number, user number, operation system and the like, and the experimental scheme hit when each participating user performs the ab experiment service and the behavior data of the user under the experimental scheme are subjected to statistical analysis, so that the optimal experimental scheme is evaluated as the configuration selection of the service optimization.
At this time, in the current ab experiment service, when the user in the current ab experiment service circle does not access the ab experiment, the pre-established experiment scheme cannot be hit, so that an empty scheme can be returned to the user, and at this time, a technician is required to manually set corresponding default configuration in a service configuration code of the client; the time and energy of technicians are greatly wasted, the flexibility of the whole service configuration process is low, and the service configuration efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a service configuration system, a service configuration method, a service configuration device and a configuration server, which realize automatic acquisition of service configuration parameters and improve the flexibility and stability of service configuration.
In a first aspect, an embodiment of the present invention provides a service configuration system, where the system includes: the method comprises the steps that a service cluster, a center configuration end and an experiment configuration cluster are configured, wherein the center configuration end stores bottom-of-pocket configuration parameters of different configuration services, and the experiment configuration cluster calculates hit configuration parameters of the different configuration services; wherein the content of the first and second substances,
the configuration service cluster acquires the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end, acquires the hit configuration parameters of the target configuration service from the experimental configuration cluster, and determines the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
In a second aspect, an embodiment of the present invention provides a service configuration method, where the method includes:
acquiring a bottom-of-pocket configuration parameter of a currently accessed target configuration service from a central configuration end, and calculating a hit configuration parameter of the target configuration service through an experimental configuration cluster;
and determining the actual configuration parameters of the target configuration service according to the bottom-in-pocket configuration parameters and the hit configuration parameters.
In a third aspect, an embodiment of the present invention provides a service configuration apparatus, where the apparatus includes:
the configuration parameter acquisition module is used for acquiring the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end and calculating the hit configuration parameters of the target configuration service through the experimental configuration cluster;
and the actual configuration determining module is used for determining the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
In a fourth aspect, an embodiment of the present invention provides a configuration server, where the configuration server includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the service provisioning method according to any embodiment of the present invention.
In a fifth aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a service configuration method according to any embodiment of the present invention.
In the service configuration system, the service configuration method, the service configuration device and the configuration server provided by the embodiment of the invention, the pocket bottom configuration parameters of different configuration services are stored in the central configuration end in advance, when a service configuration experiment is carried out, the configuration service cluster firstly acquires the pocket bottom configuration parameters of the currently accessed target configuration service from the central configuration end, and simultaneously acquires the calculated hit configuration parameters of the target configuration service from the experimental configuration cluster, and further determines the actual configuration parameters of the target configuration service according to the pocket bottom configuration parameters and the hit configuration parameters, so as to realize the automatic and accurate configuration of different configuration services, technical personnel do not need to manually set corresponding default configuration when the experimental configuration cluster does not hit the specific experiment, the actual configuration parameters are directly determined through the pocket bottom configuration parameters, and the error existing when the default configuration is manually set is avoided, the flexibility and stability of the service configuration are improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a schematic architecture diagram of a service configuration system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a service configuration system according to a second embodiment of the present invention;
fig. 3 is a flowchart of a service configuration method according to a third embodiment of the present invention;
fig. 4 is a flowchart of a service configuration method according to a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a service configuration apparatus according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of a configuration server according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures. In addition, the embodiments and features of the embodiments in the present invention may be combined with each other without conflict.
Example one
Fig. 1 is a schematic architecture diagram of a service configuration system according to an embodiment of the present invention. The embodiment can be applied to the situation that the configuration parameters of any service are determined when the service is accessed. Specifically, referring to fig. 1, the service configuration system 10 may include: a configuration service cluster 110, a central configuration end 120 and an experimental configuration cluster 130.
The central configuration end 120 stores the bottom-of-pocket configuration parameters of different configuration services, and the experimental configuration cluster 130 calculates hit configuration parameters of different configuration services; specifically, the configuration service cluster 110 obtains the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end 120, obtains the hit configuration parameters of the target configuration service from the experimental configuration cluster 130, and determines the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
Optionally, the configuration service in this embodiment may refer to a service that a user can access and perform update optimization in any internet application, for example, perform corresponding configuration optimization on a display style of a specific page in a certain internet application, a page jump link, or a page button layout, and the like.
At this time, for different types of configuration services, the present embodiment may store, in the central configuration end 120, the bottom-pocket configuration parameters of different configuration services in advance, where the bottom-pocket configuration parameters may implement update management in a multi-version state, such as configuration add-delete check, authority management, multi-version configuration, group management, and history tracking; meanwhile, corresponding ab experiment services under different configuration services can be preset in the experiment configuration cluster 130, and then the most suitable configuration scheme is hit by executing the ab experiment service, so that the corresponding hit configuration parameters are obtained. Specifically, the central configuration end 120 can provide a multi-version function of the bottom-pocket configuration, and support the functions of release, editing, rollback and the like of the versions, so that the copies of each version and the current state of the version under different configuration services can be recorded in the database of the central configuration end 120; meanwhile, in order to support the multi-platform multi-country multi-language features of the internet application, the central configuration end 120 may also support multi-dimensional bottom-of-pocket configuration.
Meanwhile, the experiment configuration cluster 130 of the present embodiment is provided with a fusing mechanism, and when none of the multiple instances in the experiment configuration cluster 130 is available, a degradation strategy is adopted or fusing is performed when necessary, so as to ensure high availability of the service.
In addition, the configuration service cluster 110 sets corresponding data interfaces for the central configuration end 120 and the experimental configuration cluster 130, so as to read corresponding configuration parameters on the central configuration end 120 and the experimental configuration cluster 130, and perform aggregation processing to obtain corresponding actual configuration parameters.
Specifically, after receiving an access request of a user for a certain configuration service, the configuration service cluster 110 firstly parses the access request to obtain a currently accessed target configuration service, and further reads the bottom-of-pocket configuration parameters of the target configuration service pre-stored on the central configuration end 120 through an interface connecting the configuration service cluster 110 and the central configuration end 120, and simultaneously sends the access request of the target configuration service to the experimental configuration cluster 130, the experimental configuration cluster 130 executes a pre-set ab experimental service for the target configuration service, and further hits the test scheme most suitable for the target configuration service to obtain corresponding hit configuration parameters, and returns the hit configuration parameters to the configuration service cluster 110, and the configuration service cluster 110 analyzes the difference between the bottom-of-pocket configuration parameters read from the central configuration end 120 and the hit configuration parameters calculated by the experimental configuration cluster 130, and further determining the actual configuration parameters of the target configuration service, thereby realizing the automatic and accurate configuration of the target configuration service and improving the flexibility of the configuration service.
It should be noted that, because the user currently requesting to access the target configuration service may not belong to the user range surrounded by the ab experimental service set on the experimental configuration cluster 130, at this time, the experimental configuration cluster 130 cannot hit the corresponding experimental configuration scheme when executing the ab experimental service, so that the hit configuration parameter returned by the experimental configuration cluster 130 to the configuration service cluster 110 is null. At this time, when determining the actual configuration parameter of the target configuration service, the configuration service cluster 110 first needs to determine whether the hit configuration parameter is empty, and when the hit configuration parameter is empty, directly uses the bottom-of-pocket configuration parameter as the actual configuration parameter of the target configuration service; when the hit configuration parameter is not empty, since the hit configuration parameter calculated by the ab experiment service is more accurate than the preset pocket bottom configuration parameter, the embodiment may directly overlay the hit configuration parameter with the pocket bottom configuration parameter obtained from the central configuration end 120, and further use the hit configuration parameter as the actual configuration parameter of the target configuration service.
In addition, after the existing ab experiment service completes the filing of the ab experiment, a technician needs to manually solidify the configuration value corresponding to the optimal experimental scheme evaluated by the ab experiment service into the service configuration code of the client where the user is located, and other subsequent users access the target configuration service and need to re-solidify the target configuration service, so that the service cannot be persistently configured after the ab experiment service is filed, and therefore, in order to avoid the problem of the service cannot be persistently configured, in the embodiment, after the experimental configuration of the target configuration service is completed, the experimental configuration cluster 120 first evaluates the optimal hit configuration parameters of the target configuration service under the current experimental configuration according to the user behavior data participating in the ab experiment service and the hit experimental scheme, and directly and automatically solidifies the optimal hit configuration parameters into the central configuration end 120, as the bibliographic configuration parameters of the target configuration service, so that after the configuration filing of the target configuration service under the ab experiment service is completed, and the experiment configuration cluster 130 is removed, the configuration service cluster 110 can directly read the corresponding configuration parameters from the central configuration end 120, thereby ensuring the accuracy of the service configuration.
Further, in order to support the multidimensional configuration characteristics of the internet application, in this embodiment, when the central configuration end 120 sets corresponding bottom-in-pocket configuration parameters for different configuration services, corresponding default configuration parameters and custom configuration codes may be selectively set, where the custom configuration codes may preset configurations under multiple dimensions, and at this time, the configuration service cluster 110 first analyzes a target bottom-in-pocket configuration parameter that needs to be adopted when subsequently determining an actual configuration parameter, so that when determining that the custom configuration code exists in the bottom-in-pocket configuration parameter that is preliminarily returned by the central configuration end 120, the configuration service cluster 110 directly executes the custom configuration code according to an access parameter of the target configuration service without considering the default configuration parameter, and then takes an obtained code configuration result as the target bottom-in-pocket configuration parameter; and only the default configuration parameters exist in the bottom-pocket configuration parameters, and when the user-defined configuration codes do not exist, the default configuration parameters are directly used as target bottom-pocket configuration parameters, and the actual configuration parameters of the target configuration service are directly determined subsequently according to the target bottom-pocket configuration parameters and the hit configuration parameters, so that the comprehensiveness of the actual configuration parameters is ensured. At this time, in this embodiment, the multidimensional configuration of the bottom-of-pocket configuration parameters may also be implemented through separators under different configuration services, or the multidimensional configuration may be implemented through dictionaries in the configuration values, without defining one of the custom configuration codes.
It should be noted that, in this embodiment, the custom configuration code in the bottom-of-pocket configuration parameter may be executed in cooperation with the access parameter of the user to the target configuration service, so as to meet the requirement of a complex service configuration scene, for example, different configurations may be flexibly returned for different countries and languages according to information such as a country language and a service target carried in the access parameter, so as to meet the configuration requirements of different users.
Illustratively, the custom configuration code in this embodiment may be as follows:
Figure BDA0002387971980000071
Figure BDA0002387971980000081
in the sample codes, paramsMap is an access parameter input by a user, defaultValue is a default configuration parameter, when the custom configuration code judges that the value of the "count" parameter uploaded by the user is "CN", the custom configuration code returns a configuration value of "1", and the default configuration parameter is returned in other cases; similarly, the custom configuration code may also make different judgments according to different values of other access parameters, such as "language" and "clientVersion", so as to return different configuration parameters, thereby implementing multi-dimensional service configuration.
In addition, after the configuration service cluster 110 obtains the custom configuration code from the central configuration end 120, the custom configuration code may be executed by a Java script executor to obtain corresponding bottom configuration parameters, for example, a Java script engine is obtained by a Java script engine manager, and then a method name and parameters required by the method are specified to be executed, so as to obtain target bottom configuration parameters returned by the custom configuration code.
Meanwhile, since the experiment configuration cluster 130 may hit the experiment configuration scheme set under other configuration services when performing the ab experiment service and return meaningless hit configuration parameters, the configuration service cluster 110 discards the hit configuration parameters of other configuration services, thereby ensuring the accuracy of the service configuration.
In addition, the configuration service cluster 110, the central configuration end 120, and the experiment configuration cluster 130 in this embodiment may perform multi-instance deployment in a micro-service manner, so as to implement high availability of service configuration; at this time, because the bottom-pocket configuration parameters on the central configuration end 120 are relatively fixed, when the configuration service cluster 110 accesses the central configuration end 120, the result is cached in the memory in a manner of interface timing request, so that the time consumption for accessing the central configuration end 120 each time is reduced, while the access to the experimental configuration cluster 130 is in a manner of interface real-time request.
According to the technical scheme provided by the embodiment, the pocket bottom configuration parameters of different configuration services are stored in the central configuration end in advance, when a service configuration experiment is carried out, the configuration service cluster firstly obtains the pocket bottom configuration parameters of the currently accessed target configuration service from the central configuration end, and simultaneously obtains the calculated hit configuration parameters of the target configuration service from the experiment configuration cluster, so that the actual configuration parameters of the target configuration service are determined according to the pocket bottom configuration parameters and the hit configuration parameters, the automatic and accurate configuration of the different configuration services is realized, the technical personnel are not required to manually set the default configuration for the specific experiment when the experiment configuration cluster does not hit the specific experiment, the actual configuration parameters are directly determined through the pocket bottom configuration parameters, the error existing when the default configuration is manually set is avoided, and the flexibility and the stability of the service configuration are improved.
Example two
Fig. 2 is a schematic structural diagram of a service configuration system according to a second embodiment of the present invention. The embodiment is optimized on the basis of the technical scheme provided by the embodiment. Referring to fig. 2, the business configuration system 20 may include a configuration service cluster 210, a central configuration end 220, and an experimental configuration cluster 230.
The central configuration end 220 stores the bottom-of-pocket configuration parameters of different configuration services, and the experimental configuration cluster 230 calculates the hit configuration parameters of different configuration services.
Specifically, the configuration service cluster 210 obtains the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end 220, obtains the hit configuration parameters of the target configuration service from the experimental configuration cluster 230, and determines the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
Meanwhile, the service configuration system 20 in this embodiment may further include a client 240, a service gateway 250, and a registration server 260, in addition to the configuration service cluster 210, the central configuration end 220, and the experiment configuration cluster 230.
The service gateway 250 finds out a target configuration server facing the target configuration service in the configuration service cluster 210 according to the target configuration service currently accessed by the client 240, and the target configuration server obtains the bottom-of-pocket configuration parameters of the target configuration service currently accessed from the central configuration terminal 220 and obtains the hit configuration parameters of the target configuration service from the experimental configuration cluster 230.
Specifically, when a user accesses a target configuration service in an internet application, the client 240 may generate an access request of the target configuration service, where the access request may be a hypertext transfer protocol (HTTP) request, the request is in a post mode, a request body of the access request carries relevant parameters required by the client 240 to obtain configuration at this time, such as a configuration name key, a country count, a language, a platform, a device number deviceId, a client version clientVersion, and the like, and after receiving the access request of the client 240, the service gateway 250 may search a target configuration service end facing the target configuration service in the configuration service cluster 210 according to the parameters carried in the access request, and then the target configuration service end executes subsequent service configuration functions, and at this time, the service gateway 250 may execute subsequent service configuration functions according to a certain routing policy, the access request of the client 240 is forwarded to a specific configuration server instance in the configuration service cluster 210, such as randomly or by polling, and the target configuration server obtains the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration node 220, and obtains the hit configuration parameters of the target configuration service from the experimental configuration cluster 230.
In addition, the registration server 260 in this embodiment stores the registration parameters of the configuration server with a normal configuration function in the configuration service cluster 210, that is, after the configuration service cluster 210 adds the configuration server with a normal configuration function, the configuration server may report the registration parameters to the registration server 260, and after the configuration function is abnormal, the corresponding registration parameters may also be deleted from the registration server 260, so as to cancel the configuration server with an abnormal configuration function.
It should be noted that, in this embodiment, both the service gateway 250 and the registration server 260 may be deployed in multiple instances, so as to ensure high availability of service configuration.
In the technical scheme provided by this embodiment, the bottom-pocket configuration parameters of different configuration services are stored in the central configuration end in advance, when performing a service configuration experiment, the configuration service cluster firstly obtains the bottom-pocket configuration parameters of a currently accessed target configuration service from the central configuration end, and simultaneously obtains the calculated hit configuration parameters of the target configuration service from the experimental configuration cluster, and further determines the actual configuration parameters of the target configuration service according to the bottom-pocket configuration parameters and the hit configuration parameters, so as to implement automatic and accurate configuration of different configuration services, without the need of a technician to manually set a dedicated default configuration when a specific experiment is not hit in the experimental configuration cluster, and directly determines the actual configuration parameters through the bottom-pocket configuration parameters, thereby avoiding errors existing when the default configuration is manually set, and simultaneously, smoothly performing service configuration through the registration service end and the service gateway, the flexibility and stability of the service configuration are improved.
EXAMPLE III
Fig. 3 is a flowchart of a service configuration method provided in the third embodiment of the present invention, and this embodiment is applicable to a case where configuration parameters of a service are determined when any service is accessed. The service configuration method provided by this embodiment may be executed by a service configuration apparatus provided by this embodiment of the present invention, and the apparatus may be implemented by software and/or hardware and integrated in a configuration server executing this method.
Specifically, referring to fig. 3, the method may include the steps of:
s310, obtaining the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end, and calculating the hit configuration parameters of the target configuration service through the experimental configuration cluster.
The configuration service in this embodiment may refer to a service that a user can access and perform update optimization in any internet application, for example, perform corresponding configuration optimization on a display style of a specific page in a certain internet application, a page jump link, or a page button layout, and the like.
At this time, for different types of configuration services, the present embodiment may store, in the central configuration end, the bottom-pocket configuration parameters of different configuration services in advance, where the bottom-pocket configuration parameters may implement update management in a multi-version state, such as configuration add-delete check, authority management, multi-version configuration, group management, and history tracking; meanwhile, corresponding ab experiment services under different configuration services can be preset in the experiment configuration cluster, and then the most suitable configuration scheme is hit through executing the ab experiment services, so that corresponding hit configuration parameters are obtained. Specifically, the central configuration end can provide a multi-version function of the bottom-pocket configuration, support the functions of release, edition, rollback and the like of the versions, and therefore copies of each version and the current state of the version under different configuration services can be recorded in a database of the central configuration end; meanwhile, in order to support multi-platform multi-country multi-language characteristics of internet application, the central configuration end can also support multi-dimensional bottom-of-pocket configuration.
Specifically, after receiving an access request of a user for a certain configuration service, the configuration service cluster firstly analyzes the access request to obtain a currently accessed target configuration service, and then reads the bottom-of-pocket configuration parameters of the target configuration service pre-stored on the central configuration terminal, and simultaneously sends the access request of the target configuration service to the experimental configuration cluster, and the experimental configuration cluster executes a preset ab experimental service on the target configuration service, and then hits the test scheme most suitable for the target configuration service to obtain the corresponding hit configuration parameters, so as to subsequently determine accurate actual configuration parameters.
And S320, determining the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
Optionally, the configuration service cluster determines the actual configuration parameters of the target configuration service by analyzing the difference between the bottom-of-pocket configuration parameters read from the central configuration end and the hit configuration parameters calculated by the experimental configuration cluster, so that the automatic and accurate configuration of the target configuration service is realized, and the flexibility of the configuration service is improved.
For example, in this embodiment, determining the actual configuration parameter of the target configuration service according to the bibliography configuration parameter and the hit configuration parameter may specifically include: when the hit configuration parameters are empty, taking the bottom pocket configuration parameters as actual configuration parameters of the target configuration service; and when the hit configuration parameters are not empty, taking the hit configuration parameters as actual configuration parameters of the target configuration service.
Specifically, since a user currently requesting access to the target configuration service may not belong to a user range surrounded by the ab experimental service set on the experimental configuration cluster, the experimental configuration cluster cannot hit a corresponding experimental configuration scheme when executing the ab experimental service, so that a hit configuration parameter returned by the experimental configuration cluster to the configuration service cluster is null. At this time, when determining the actual configuration parameters of the target configuration service, the configuration service cluster firstly needs to judge whether the hit configuration parameters are empty, and when the hit configuration parameters are empty, directly takes the bottom-of-pocket configuration parameters as the actual configuration parameters of the target configuration service; when the hit configuration parameter is not empty, since the hit configuration parameter calculated by the ab experimental service is more accurate than the preset pocket bottom configuration parameter, the embodiment may directly overlay the hit configuration parameter with the pocket bottom configuration parameter acquired from the central configuration end, and further take the hit configuration parameter as the actual configuration parameter of the target configuration service.
According to the technical scheme provided by the embodiment, the pocket bottom configuration parameters of different configuration services are stored in the central configuration end in advance, when a service configuration experiment is carried out, the configuration service cluster firstly obtains the pocket bottom configuration parameters of the currently accessed target configuration service from the central configuration end, and simultaneously obtains the calculated hit configuration parameters of the target configuration service from the experiment configuration cluster, so that the actual configuration parameters of the target configuration service are determined according to the pocket bottom configuration parameters and the hit configuration parameters, the automatic and accurate configuration of the different configuration services is realized, the technical personnel are not required to manually set the default configuration for the specific experiment when the experiment configuration cluster does not hit the specific experiment, the actual configuration parameters are directly determined through the pocket bottom configuration parameters, the error existing when the default configuration is manually set is avoided, and the flexibility and the stability of the service configuration are improved.
Example four
Fig. 4 is a flowchart of a service configuration method according to a fourth embodiment of the present invention. The embodiment is optimized on the basis of the embodiment. Specifically, as shown in fig. 4, a detailed explanation is made on a specific process for determining an actual configuration parameter in the service configuration system in this embodiment.
Optionally, as shown in fig. 4, the present embodiment may include the following steps:
s410, determining the currently accessed target configuration service according to the access request of the client.
Specifically, when accessing a certain configuration service, a user first performs a corresponding access operation on a client, for example, the user requests to jump from the current page to the page where the target configuration service is located, and the like, at this time, the client generates a corresponding access request according to the access operation of the user, the access request can be an HTTP request, the current request mode is a post mode, the request body of the access request carries relevant parameters required by the current acquisition and configuration of the client, such as configuration name key, country count, language, platform, device number deviceId, client version clientVersion, etc., and then, searching a target configuration server facing to the currently accessed configuration service in the configuration service cluster according to various parameters carried in the access request through a preset service gateway, and determining the currently accessed target configuration service by the target configuration server so as to execute a subsequent service configuration function.
And S420, acquiring the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end, and calculating the hit configuration parameters of the target configuration service through the experimental configuration cluster.
S430, when only default configuration parameters exist in the pocket bottom configuration parameters, taking the default configuration parameters as target pocket bottom configuration parameters; and when the custom configuration code also exists in the bottom pocket configuration parameters, executing the custom configuration code according to the access parameter of the target configuration service to obtain a corresponding code configuration result as the target bottom pocket configuration parameters.
Optionally, in order to support the multi-dimensional configuration characteristics of the internet application, in this embodiment, when corresponding bottom-of-pocket configuration parameters are set for different configuration services in the central configuration end, corresponding default configuration parameters and custom configuration codes may be selectively set, the self-defined configuration code can preset configuration under multiple dimensions, at the moment, after the configuration service cluster receives an access request of a client, the target bottom-of-pocket configuration parameters to be adopted in the subsequent determination of the actual configuration parameters need to be analyzed first, the configuration service cluster thus only has default configuration parameters in determining the bottom-of-pocket configuration parameters initially returned by the central configuration side, when the user-defined configuration code does not exist, the default configuration parameter can be directly used as a target pocket bottom configuration parameter, and then the actual configuration parameter of the target configuration service is directly determined according to the target pocket bottom configuration parameter and the hit configuration parameter; and when the default configuration parameters and the custom configuration codes exist in the bottom-of-pocket configuration parameters, the custom configuration codes are directly executed according to the access parameters of the target configuration service without considering the default configuration parameters, and the obtained code configuration result is used as the target bottom-of-pocket configuration parameters, so that the comprehensiveness of the actual configuration parameters is ensured. At this time, in this embodiment, the multidimensional configuration of the bottom-of-pocket configuration parameters may also be implemented through separators under different configuration services, or the multidimensional configuration may be implemented through dictionaries in the configuration values, without defining one of the custom configuration codes.
S440, determining the actual configuration parameters of the target configuration service according to the target bottom-of-pocket configuration parameters and the hit configuration parameters.
And S450, feeding back the actual configuration parameters to the client.
Specifically, after determining the actual configuration parameters of the target configuration service, the configuration service cluster needs to feed back the actual configuration parameters to the client, and the client configures the display interface of the currently accessed target configuration service based on the actual configuration parameters, thereby ensuring the display optimization of the target configuration service.
According to the technical scheme provided by the embodiment, the pocket bottom configuration parameters of different configuration services are stored in the central configuration end in advance, when a service configuration experiment is carried out, the configuration service cluster firstly obtains the pocket bottom configuration parameters of the currently accessed target configuration service from the central configuration end, and simultaneously obtains the calculated hit configuration parameters of the target configuration service from the experiment configuration cluster, so that the actual configuration parameters of the target configuration service are determined according to the pocket bottom configuration parameters and the hit configuration parameters, the automatic and accurate configuration of the different configuration services is realized, the technical personnel are not required to manually set the default configuration for the specific experiment when the experiment configuration cluster does not hit the specific experiment, the actual configuration parameters are directly determined through the pocket bottom configuration parameters, the error existing when the default configuration is manually set is avoided, and the flexibility and the stability of the service configuration are improved.
EXAMPLE five
Fig. 5 is a schematic structural diagram of a service configuration apparatus according to a fifth embodiment of the present invention, and specifically, as shown in fig. 5, the apparatus may include:
a configuration parameter obtaining module 510, configured to obtain a bottom-of-pocket configuration parameter of a currently accessed target configuration service from a central configuration end, and calculate a hit configuration parameter of the target configuration service through an experimental configuration cluster;
and an actual configuration determining module 520, configured to determine an actual configuration parameter of the target configuration service according to the bottom-of-pocket configuration parameter and the hit configuration parameter.
According to the technical scheme provided by the embodiment, the pocket bottom configuration parameters of different configuration services are stored in the central configuration end in advance, when a service configuration experiment is carried out, the configuration service cluster firstly obtains the pocket bottom configuration parameters of the currently accessed target configuration service from the central configuration end, and simultaneously obtains the calculated hit configuration parameters of the target configuration service from the experiment configuration cluster, so that the actual configuration parameters of the target configuration service are determined according to the pocket bottom configuration parameters and the hit configuration parameters, the automatic and accurate configuration of the different configuration services is realized, the technical personnel are not required to manually set the default configuration for the specific experiment when the experiment configuration cluster does not hit the specific experiment, the actual configuration parameters are directly determined through the pocket bottom configuration parameters, the error existing when the default configuration is manually set is avoided, and the flexibility and the stability of the service configuration are improved.
Further, the service configuration apparatus may further include:
the target pocket bottom determining module is used for taking the default configuration parameters as the target pocket bottom configuration parameters when only the default configuration parameters exist in the pocket bottom configuration parameters; and when the custom configuration code also exists in the bottom pocket configuration parameters, executing the custom configuration code according to the access parameter of the target configuration service to obtain a corresponding code configuration result as the target bottom pocket configuration parameters.
Accordingly, the actual configuration determining module 520 may be specifically configured to:
and determining the actual configuration parameters of the target configuration service according to the target bottom-of-pocket configuration parameters and the hit configuration parameters.
Further, the actual configuration determining module 520 may be specifically configured to:
when the hit configuration parameters are empty, taking the bottom pocket configuration parameters as actual configuration parameters of the target configuration service;
and when the hit configuration parameters are not empty, taking the hit configuration parameters as actual configuration parameters of the target configuration service.
Further, the service configuration apparatus may further include:
and the target service determining module is used for determining the currently accessed target configuration service according to the access request of the client.
Further, the service configuration apparatus may further include:
and the parameter feedback module is used for feeding back the actual configuration parameters to the client.
The service configuration device provided by this embodiment is applicable to the service configuration method provided by any of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE six
Fig. 6 is a schematic structural diagram of a configuration server according to a sixth embodiment of the present invention, as shown in fig. 6, the configuration server includes a processor 60, a storage device 61, and a communication device 62; the number of the processors 60 in the configuration server may be one or more, and one processor 60 is taken as an example in fig. 6; the processor 60, the storage means 61 and the communication means 62 in the configuration server may be connected by a bus or other means, which is exemplified in fig. 6.
The storage device 61 is a computer-readable storage medium, and can be used to store software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the service configuration method according to any embodiment of the present invention. The processor 60 executes various functional applications of the configuration server and data processing by running software programs, instructions and modules stored in the storage device 61, that is, implements the service configuration method described above.
The storage device 61 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the storage device 61 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, storage 61 may further include memory located remotely from processor 60, which may be connected to a configuration server via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication means 62 may be used to enable network connections or mobile data connections between devices.
The configuration server provided by this embodiment can be used to execute the service configuration method provided by any of the above embodiments, and has corresponding functions and beneficial effects.
EXAMPLE seven
The seventh embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, can implement the service configuration method in any of the above embodiments. The method specifically comprises the following steps:
acquiring a bottom-of-pocket configuration parameter of a currently accessed target configuration service from a central configuration end, and calculating a hit configuration parameter of the target configuration service through an experimental configuration cluster;
and determining the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the operations of the method described above, and may also perform related operations in the service configuration method provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the service configuration apparatus, each included unit and module are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (15)

1. A service provisioning system, comprising: the method comprises the steps that a service cluster, a center configuration end and an experiment configuration cluster are configured, wherein the center configuration end stores bottom-of-pocket configuration parameters of different configuration services, and the experiment configuration cluster calculates hit configuration parameters of the different configuration services; wherein the content of the first and second substances,
the configuration service cluster acquires the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end, acquires the hit configuration parameters of the target configuration service from the experimental configuration cluster, and determines the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
2. The business configuration system of claim 1, further comprising a client and a service gateway;
the service gateway searches out a target configuration server facing the target configuration service in the configuration service cluster according to the target configuration service currently accessed by the client, the target configuration server obtains the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration terminal, and obtains the hit configuration parameters of the target configuration service from the experimental configuration cluster.
3. The service provisioning system of claim 1, further comprising a registration server; and the registration server stores the registration parameters of the configuration server with normal configuration function in the configuration service cluster.
4. A business configuration system according to any of claims 1 to 3, wherein a fusing mechanism is provided on the experimental configuration cluster.
5. The service configuration system according to any one of claims 1 to 3, wherein the experimental configuration cluster evaluates an optimal hit configuration parameter of the target configuration service in the current experimental configuration after the experimental configuration of the target configuration service is filed, and solidifies the optimal hit configuration parameter into the central configuration end as a bottom-of-pocket configuration parameter of the target configuration service.
6. The service configuration system according to any of claims 1 to 3, wherein the configuration service cluster takes the bottom-of-pocket configuration parameter as an actual configuration parameter of the target configuration service when the hit configuration parameter is null; and when the hit configuration parameters are not empty, taking the hit configuration parameters as actual configuration parameters of the target configuration service.
7. The business configuration system of any of claims 1-3, wherein the configuration service cluster executes a custom configuration code according to an access parameter of the target configuration business when the custom configuration code exists in the bibliography configuration parameter, to obtain a corresponding code configuration result as a target bibliography configuration parameter; and when only default configuration parameters exist in the bottom pocket configuration parameters, taking the default configuration parameters as target bottom pocket configuration parameters, and determining the actual configuration parameters of the target configuration service according to the target bottom pocket configuration parameters and the hit configuration parameters.
8. A method for service configuration, comprising:
acquiring a bottom-of-pocket configuration parameter of a currently accessed target configuration service from a central configuration end, and calculating a hit configuration parameter of the target configuration service through an experimental configuration cluster;
and determining the actual configuration parameters of the target configuration service according to the bottom-in-pocket configuration parameters and the hit configuration parameters.
9. The method of claim 8, after obtaining the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end, further comprising:
when only default configuration parameters exist in the bottom pocket configuration parameters, taking the default configuration parameters as target bottom pocket configuration parameters;
when a user-defined configuration code also exists in the bottom pocket configuration parameters, executing the user-defined configuration code according to the access parameters of the target configuration service to obtain a corresponding code configuration result as the target bottom pocket configuration parameters;
correspondingly, the determining the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters includes:
and determining the actual configuration parameters of the target configuration service according to the target bottom-holding configuration parameters and the hit configuration parameters.
10. The method of claim 8, wherein determining the actual configuration parameters of the target configuration service based on the bottom-of-pocket configuration parameters and the hit configuration parameters comprises:
when the hit configuration parameter is empty, taking the bottom-pocket configuration parameter as an actual configuration parameter of the target configuration service;
and when the hit configuration parameters are not empty, taking the hit configuration parameters as actual configuration parameters of the target configuration service.
11. The method according to any one of claims 8-10, further comprising, before obtaining the bibliographic configuration parameters of the currently accessed target configuration service from the central configuration end:
and determining the currently accessed target configuration service according to the access request of the client.
12. The method of claim 11, after determining the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters, further comprising:
and feeding back the actual configuration parameters to the client.
13. A service provisioning apparatus, comprising:
the configuration parameter acquisition module is used for acquiring the bottom-of-pocket configuration parameters of the currently accessed target configuration service from the central configuration end and calculating the hit configuration parameters of the target configuration service through the experimental configuration cluster;
and the actual configuration determining module is used for determining the actual configuration parameters of the target configuration service according to the bottom-of-pocket configuration parameters and the hit configuration parameters.
14. A configuration server, characterized in that the configuration server comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the service provisioning method of any of claims 8-12.
15. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the service provisioning method according to any one of claims 8-12.
CN202010104296.7A 2020-02-20 2020-02-20 Service configuration system, service configuration method and device and configuration server Active CN111290804B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010104296.7A CN111290804B (en) 2020-02-20 2020-02-20 Service configuration system, service configuration method and device and configuration server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010104296.7A CN111290804B (en) 2020-02-20 2020-02-20 Service configuration system, service configuration method and device and configuration server

Publications (2)

Publication Number Publication Date
CN111290804A true CN111290804A (en) 2020-06-16
CN111290804B CN111290804B (en) 2023-07-28

Family

ID=71025588

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010104296.7A Active CN111290804B (en) 2020-02-20 2020-02-20 Service configuration system, service configuration method and device and configuration server

Country Status (1)

Country Link
CN (1) CN111290804B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694615A (en) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 Data configuration method, device, equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222567A (en) * 2017-07-07 2017-09-29 北京京东尚科信息技术有限公司 Method, device and the service cluster of processing data request
CN108021464A (en) * 2017-11-29 2018-05-11 口碑(上海)信息技术有限公司 A kind of method and device of the processing of revealing all the details of application response data
CN110399249A (en) * 2019-06-04 2019-11-01 腾讯科技(北京)有限公司 A kind of data disaster tolerance method and relevant apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107222567A (en) * 2017-07-07 2017-09-29 北京京东尚科信息技术有限公司 Method, device and the service cluster of processing data request
CN108021464A (en) * 2017-11-29 2018-05-11 口碑(上海)信息技术有限公司 A kind of method and device of the processing of revealing all the details of application response data
CN110399249A (en) * 2019-06-04 2019-11-01 腾讯科技(北京)有限公司 A kind of data disaster tolerance method and relevant apparatus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111694615A (en) * 2020-06-16 2020-09-22 北京同邦卓益科技有限公司 Data configuration method, device, equipment and storage medium
CN111694615B (en) * 2020-06-16 2024-04-05 北京同邦卓益科技有限公司 Method, device, equipment and storage medium for data configuration

Also Published As

Publication number Publication date
CN111290804B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN109656985A (en) Data lead-in method, system, terminal and storage medium
CN101711470A (en) A system and method for creating a list of shared information on a peer-to-peer network
CN108984177A (en) A kind of data processing method and system
CN111881011A (en) Log management method, platform, server and storage medium
CN109740129B (en) Report generation method, device and equipment based on blockchain and readable storage medium
US20140059000A1 (en) Computer system and parallel distributed processing method
CN110912757B (en) Service monitoring method and server
CN109669795A (en) Crash info processing method and processing device
US20170270184A1 (en) Methods and devices for processing objects to be searched
US20100281053A1 (en) Method, apparatus, and computer-readable medium for distributing a query
CN108063685B (en) Log analysis method and device
CN114116762A (en) Offline data fuzzy search method, device, equipment and medium
CN113051460A (en) Elasticissearch-based data retrieval method and system, electronic device and storage medium
CN107368490A (en) Data processing method and device
CN111290804B (en) Service configuration system, service configuration method and device and configuration server
CN112671878B (en) Block chain information subscription method, device, server and storage medium
CN112235124B (en) Method and device for configuring pico-cell, storage medium and electronic device
WO2017000592A1 (en) Data processing method, apparatus and system
CN104503983A (en) Method and device for providing website certification data for search engine
CN111932076B (en) Rule configuration and release method and device and computing equipment
CN108920411A (en) A kind of collecting method and device of distributed memory system
CN114610449B (en) Multi-cluster resource operation method and system based on unified request entry
US9824140B2 (en) Method of creating classification pattern, apparatus, and recording medium
CN110471968A (en) Dissemination method, device, equipment and the storage medium of ETL task
CN112311679B (en) State detection method, state detection device, electronic equipment and readable storage medium

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