CN109669703A - Micro services information configuring methods, device, computer equipment and storage medium - Google Patents
Micro services information configuring methods, device, computer equipment and storage medium Download PDFInfo
- Publication number
- CN109669703A CN109669703A CN201811589323.3A CN201811589323A CN109669703A CN 109669703 A CN109669703 A CN 109669703A CN 201811589323 A CN201811589323 A CN 201811589323A CN 109669703 A CN109669703 A CN 109669703A
- Authority
- CN
- China
- Prior art keywords
- micro services
- configuration
- information
- path
- configuration information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
Abstract
This application involves a kind of micro services information configuring methods, device, computer equipment and storage mediums.The described method includes: receiving information configuration request;The information configuration request includes micro services mark;It is identified according to the micro services, obtains micro services configuration path;According to the micro services configuration path, micro services configuration information is obtained;Send the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.It can be realized a resource distribution many places using this method to use, to improve the utilization rate of resource distribution in micro services system, while also reducing memory, reduce the cost of micro services information configuration.Further, since providing a kind of maintenance interface being managed convenient for operation maintenance personnel to resource distribution, finally make micro services information configuration mode more convenient.
Description
Technical field
This application involves micro services technical fields, more particularly to a kind of micro services information configuring methods, device, computer
Equipment and storage medium.
Background technique
Micro services are an emerging software architectures, and one large-scale autonomous system is mainly split as the small-sized clothes of dozens of
It is engaged in, the frame being called between each micro services by hypertext transfer protocol (Hyper Text Transfer Protocol)
Structure.
Existing micro services information configuring methods, it is main to be stored using the distributed version control system (Git) increased income
Configuration information in order to carry out version the sixth day of lunar month to environment configurations, and can be configured by Git client utility convenient for management and access
Content.
However, existing micro services information configuring methods, it can not accomplish to resources-type configuration, such as database configuration or some
The reuse of middleware configuration, it is necessary to be that each micro services configure a same resource allocation information, resource is caused to be matched
, the EMS memory occupation low using degree set is larger.
Therefore, existing micro services information configuring methods have that resource distribution utilization rate is low.
Summary of the invention
Based on this, it is necessary to which for above-mentioned micro services information configuring methods, there is the low technologies of resource distribution utilization rate to ask
Topic, provide a kind of a kind of micro services information configuring methods that can rationally solve above-mentioned technical problem, device, computer equipment and
Storage medium.
A kind of micro services information configuring methods, which comprises
Receive information configuration request;The information configuration request includes micro services mark;
It is identified according to the micro services, obtains micro services configuration path;
According to the micro services configuration path, micro services configuration information is obtained;
Send the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.
It is described in one of the embodiments, to be identified according to the micro services, obtain micro services configuration path, comprising:
It is identified according to the micro services, obtains micro services configuration item;
The corresponding address information of the micro services configuration item is determined, as the micro services configuration path.
It is described according to the micro services configuration path in one of the embodiments, obtain micro services configuration information, packet
It includes:
When the micro services configuration path is node path, the information that the node path includes is obtained, as described
Micro services configuration information.
It is described according to the micro services configuration path in one of the embodiments, obtain micro services configuration information, packet
It includes:
When the micro services configuration path is directory path, the information that the directory path includes is obtained, as described
Micro services configuration information.
It is described according to the micro services configuration path in one of the embodiments, obtain micro services configuration information, packet
It includes:
When the micro services configuration path is preset character string, determines the character string, match as the micro services
Confidence breath.
In one of the embodiments, the method also includes:
Show configuring maintenance interface;The configuring maintenance interface is for updating the micro services configuration information;
On the configuring maintenance interface, configuration information to be updated is received;
Updating the micro services configuration information is the configuration information to be updated.
In one of the embodiments, before the reception configuration information to be updated, further includes:
Receive configuration item to be updated;
According to the configuration item to be updated, target micro services configuration item is determined;The target micro services configuration item with it is described
Configuration item to be updated matches.
A kind of micro services information configuration device, described device include:
Request receiving module, for receiving information configuration request;The information configuration request includes micro services mark;
Path obtains module, for identifying according to the micro services, obtains micro services configuration path;
Data obtaining module, for obtaining micro services configuration information according to the micro services configuration path;
Information sending module, user send the micro services configuration information;The micro services configuration information is micro- for carrying out
Service configuration.
A kind of computer equipment, including memory and processor, the memory are stored with computer program, the processing
Device performs the steps of when executing the computer program
Receive information configuration request;The information configuration request includes micro services mark;
It is identified according to the micro services, obtains micro services configuration path;
According to the micro services configuration path, micro services configuration information is obtained;
Send the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor
It is performed the steps of when row
Receive information configuration request;The information configuration request includes micro services mark;
It is identified according to the micro services, obtains micro services configuration path;
According to the micro services configuration path, micro services configuration information is obtained;
Send the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.
By receive information configuration request in include micro services mark, can get stored in intranet server it is micro-
Service profile information, which mainly carries out nodal directory reference by the way of micro services configuration path, right
In different types of configuration information, it can be achieved that a resource distribution many places use, to improve resource distribution in micro services system
Utilization rate, while also reducing memory, reduce the cost of micro services information configuration.
Detailed description of the invention
Fig. 1 is the applied environment figure of micro services information configuring methods in one embodiment;
Fig. 2 is the flow diagram of micro services information configuring methods in one embodiment;
Fig. 3 is the configuring maintenance surface chart of micro services information configuring methods in one embodiment;
Fig. 4 is that the configuration of micro services information configuring methods in one embodiment updates surface chart;
Fig. 5 is the structural block diagram of micro services information configuration device in one embodiment;
Fig. 6 is the internal structure chart of computer equipment in one embodiment;
Fig. 7 is the internal structure chart of computer equipment in another embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Micro services (Micro service Architecture) are a kind of software architectures, specifically a kind of by software
Application programming is the ad hoc fashion for the service suite that can independently dispose, i.e., using single application program as a set of small service
The method of exploitation, every kind of application program are all run in the process of oneself, and are communicated with lightweight mechanism, the lightweight machine
System is usually HTTP (Hyper Text Transfer Protocol) resource API (Application Programming
Interface).These services are constructed around business function, can independently be disposed by full-automatic deployment mechanisms.Also,
The centralized management of these services is minimum, can be write with different programming languages, and uses different data storage technologies.
Provided by the present invention, a kind of micro services information configuring methods can be applied to application environment as shown in Figure 1
In.It wherein, may include having external network server 102 and intranet server 104 in a micro services configuration management system.Its
In, external network server 102 initiates information configuration request, mainly by being set to DMZ (demilitarized zone) outer net
The configuration center agency in region provides configuration service, i.e., is acted on behalf of by configuration center to being set to IDC (Internet Data
Center) configuration center of interior web area requests feedback configuration information.External network server 102 and intranet server 104 can be used
The server cluster of independent server or multiple servers composition is realized.
In one embodiment, as shown in Fig. 2, providing a kind of micro services information configuring methods, it is applied in this way
It is illustrated for intranet server 104 in Fig. 1, comprising the following steps:
Step S210 receives information configuration request;The information configuration request includes micro services mark.
Wherein, information configuration request refers to that the configuring request that external network server 102 is initiated, the information configuration are requested by configuring
Core agent is handled, and the configuration center of intranet server 104 is sent to by inner-external network data safety switching plane, configuration
After center responds the request, by feedback configuration information to external network server 102.
Wherein, micro services mark refers to that the identification name of the current micro services for initiating information configuration request, the identification name have
Uniqueness generallys use a demal format and is named to each micro services, such as { classification } { subregion } { subclass } { title }, example
Such as, the micro services of customer center are identified as bms.idc.yh.internet.Wherein, the service of bms identification service, idc are expressed as portion
In the area business administration Yun Hui IDC, yh indicates a subclass of business service class for administration, and the specific service that internet is yh identifies.
In the specific implementation, being acted on behalf of by the configuration center for being set to outer net, intranet server 104 receives external network server
The 102 information configurations requests sent, also, in information configuration request include some it is specific initiate configuring request, in incognito
The micro services of business identify.
For example, some micro services in external network server 102 are restarted after needing to obtain configuration information, then one is firstly generated
A information configuration request, is sent to configuration center agency, and configuration center agency passes through inner-external network data safety switching plane, will believe
Breath configuring request is sent to the configuration center in Intranet, configuration center using the micro services for including in information configuration request identify into
Row information inquiry, to inquire relevant configuration information, feeds back to the micro services.
Step S220 is identified according to the micro services, obtains micro services configuration path.
Wherein, the configuration data of configuration center is stored in ZooKeeper in Intranet, and ZooKeeper is one kind for big
The practical coordination system of type distributed system provides configuring maintenance, name Service distributed synchronization, group service etc..?
In ZooKeeper, configuration information is broadly divided into following two categories: static configuration information and runtime information.
Wherein, static configuration information includes resource category information and micro services category information, and resources-type information includes database ginseng
Number definition, such as database access URL (Uniform Resoure Locator), and micro services category information includes micro services fortune
Capable configuration information.The operation of runtime information micro services relies on and example relevant information, such as instance identification: nodeid, the reality
Example mark ensures that the example summarizes the uniqueness of mark in current middle table frame.
Wherein, micro services configuration path refer to be stored in it is in ZooKeeper, in a manner of address path locating resource class
Information and runtime information, i.e., in micro services category information, by micro services configuration path can get resource category information and/or
Runtime information, micro services configuration path at this time is presented as the way of reference of nodal directory, for example, http: //
10.92.182.241:8761/eureka/。
In the specific implementation, intranet server 104 will provide after the configuration center for being set to Intranet gets micro services mark
The micro services identify all configuration informations for including, and different configuration informations there may be the different forms that shows, main root
It is determined according to different micro services information configuration demands.In the configuration information that micro services mark includes, there are micro services configurations
Path, what which was directed toward is the other information different from current information type, the mode of passage path reference,
A configuration many places can be realized to use.
For example, can refer to Fig. 3, Fig. 3 is a kind of configuring maintenance surface chart of micro services information configuring methods.As shown,
It include multiple preset micro services marks in intranet server 104, each micro services mark correspondence includes multiple micro services
Configuration information in the micro services configuration information, can be and provide other configurations information with the way of reference of micro services configuration path,
If micro services mark " cms-idc-usersystem-server " includes multiple micro services configuration paths, one be "/
yxzt/config/resources/mysql/dxzt_config}”。
Step S230 obtains micro services configuration information according to the micro services configuration path.
Wherein, micro services configuration information refers to some data being stored in memory, and is used in notice system be mounted with
Which hardware, and how should configure system just and can be carried out operation.For example, various micro services, server address, component parameter
Deng.
In the specific implementation, what is got is micro services configuration path if being identified according to micro services, then can be looked into according to the path
Micro services configuration information is ask, which generally uses braces form " { path } " to indicate, path therein
For the path of corresponding node, all key-value pairs under the node, i.e. micro services configuration item corresponds to micro services configuration information and will be wrapped
Contain to come in, using which, resource category information or runtime information can be introduced in micro services category information, is realized to resources-type
The unified management of configuration information.
For example, micro services configuration information is " {/yxzt/config/resources/mysql/dxzt_config } ", then
The configuring request that external network server 102 is initiated refers to the road " {/yxzt/config/resources/mysql/dxzt_config } "
The information of diameter meaning.
Step S240 sends the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.
In the specific implementation, intranet server 104 gets micro services configuration information and then secondary logical according to micro services mark
It crosses configuration center to connect with configuration with communication between agents, micro services configuration information is sent to external network server 102, by
The micro services configuration information received is sent to the micro services for initiating information configuration request by external network server 102.
For example, the micro services configuration information that intranet server 104 is finally got is " wx ", then it will be by being set to Intranet
Configuration center be sent to be set to outer net configuration center agency, by configuration center agency forwarding should " wx " to initiate information match
Set the business micro services of request.
In above-mentioned micro services information configuring methods, identified by receiving the micro services for including in information configuration request
The micro services configuration information stored in intranet server is got, which mainly uses micro services configuration path
Mode carry out nodal directory reference, for different types of configuration information, it can be achieved that a resource distribution many places use, thus
The utilization rate of resource distribution in micro services system is improved, while also reducing memory, reduces the cost of micro services information configuration.
In one embodiment, the step S220, comprising:
It is identified according to the micro services, obtains micro services configuration item;Determine the corresponding address letter of the micro services configuration item
Breath, as the micro services configuration path.
Wherein, micro services configuration item refers to all items for being included in configuration management scope, for example, " spring.redis ".
In the specific implementation, a micro services mark may include multiple micro services configuration items, each micro services configuration item
Corresponding includes a micro services configuration information, which can be micro services configuration path, can be with right and wrong road
Diameter information.
For example, can refer to Fig. 3, there are multiple micro services configuration items, wherein micro services configuration item " spring.redis "
The micro services configuration information that correspondence includes is an address information "/yxzt/config/resources/redis/redis_
6380 ", which is micro services configuration path.
In one embodiment, the step S230, comprising:
When the micro services configuration path is node path, the information that the node path includes is obtained, as described
Micro services configuration information.
Wherein, node path refers to the address information indicated with braces form, and node path is usually to be matched with micro services
Leaf node of the item as father node is set, for example,/yxzt/config/resources/redis/redis_6380.
In the specific implementation, if micro services configuration path is node path, then it represents that the micro services configuration item correspondence includes
Micro services configuration information is all information under the node path.
For example, can refer to Fig. 3, when micro services configuration path is "/yxzt/config/resources/redis/redis_
When 6380 ", the corresponding micro services configuration information of micro services configuration item is node path "/yxzt/config/resources/
The information that redis/redis_6380 " is included, the information for being included can be one or more information.
In one embodiment, the step S230, comprising:
When the micro services configuration path is directory path, the information that the directory path includes is obtained, as described
Micro services configuration information.
Wherein, directory path refers to the address information using slash as trailing character, and directory path is usually father node, is directed toward
Information can be the address information of default, be also possible to preset address information, for example, http: // 10.92.182.241:
8761/eureka/。
In the specific implementation, if micro services configuration path is directory path, then it represents that the micro services configuration item correspondence includes
Micro services configuration information is the default information or a pre-set information under the directory path.
For example, can refer to Fig. 3, when micro services configuration path is " http: // 10.92.182.241:8761/eureka/ "
When, intranet server 104 will not all return to the information of entire catalogue, but the information of default is found under the catalogue, can also
Be by configuring preset information, finally using the information as micro services configuration path " http: //
10.92.182.241:8761/eureka/ " correspond to micro services configuration item " eureka.client.serviceUrl.default
The micro services configuration information of Zone ".
In one embodiment, the step S230, comprising:
When the micro services configuration path is preset character string, determines the character string, match as the micro services
Confidence breath.
Wherein, character string refers to one section of preset, corresponding information being directed toward of micro services configuration item, such as " true ".
In the specific implementation, if micro services configuration path is non-address information, but one section of character string, then the character string be
The micro services configuration information that the micro services configuration item is included.It should be noted that being stored with two types in ZooKeeper
The information of type, micro services category information therein section are directly showed with character string information, and resource category information and runtime letter
Breath, needs to be quoted in a manner of micro services configuration path, to realize the purpose that a configuration many places use.
For example, can refer to Fig. 3, the micro services that micro services configuration item " msinvoke.dxqd.flag " correspondence includes match confidence
Breath is " wx ".
In one embodiment, the method also includes:
Show configuring maintenance interface;The configuring maintenance interface is for updating the micro services configuration information;Match described
It sets on maintenance interface, receives configuration information to be updated;Updating the micro services configuration information is the configuration information to be updated.
Wherein, configuration information to be updated refers to the information that user inputs at configuring maintenance interface, for intranet server
The micro services configuration information stored in 104 is updated.
In the specific implementation, providing a configuring maintenance interface, operation maintenance personnel can be by the interface in intranet server 104
The micro services configuration information of storage is inquired and is updated, can display configuring maintenance interface, receive user input to
Configuration information is updated, obtaining the configuration information to be updated can be to micro services configuration information stored in intranet server 104
It is updated processing.
For example, can refer to Fig. 3, for inputting one " 2384 " configuration information to be updated, the update pair of the configuration information
As if the micro services configuration information of " 9832 " meaning, then updated micro services configuration information is " 9832 ".
In one embodiment, before the reception configuration information to be updated, further includes:
Receive configuration item to be updated;According to the configuration item to be updated, target micro services configuration item is determined;The target is micro-
Service configuration item matches with the configuration item to be updated.
Wherein, configuration item to be updated refers to the information that user inputs at configuring maintenance interface, for positioning configuration to be updated
Information corresponds to the micro services configuration item of micro services configuration information.
In the specific implementation, to update a micro services configuration information, can be by one configuration item to be updated of input come
Matching is stored in micro services configuration item in intranet server 104, inquires the configuration item, can navigate to micro services with confidence
Breath, the configuration information to be updated so as to input user is handled, i.e., the micro services configuration item inquired is corresponding micro-
Service profile information is updated to the configuration information to be updated.
For example, can refer to Fig. 4, Fig. 4 is that the configuration of micro services information configuring methods in one embodiment updates surface chart.Such as
Shown in figure, user can input first a configuration item to be updated on configuring maintenance interface, and the configuration item to be updated and Intranet take
In business device 104 a micro services configuration item storing matches, thus by determining configuration item, to micro services configuration information into
Row updates, then the configuration information to be updated of user's input at this time is the micro services of the micro services configuration item of the determination with confidence
Breath.
The scheme provided according to embodiments of the present invention, first by receiving the micro services mark for including in information configuration request
Know, determine a micro services configuration item, the micro services configuration information which includes if node path or
Directory path then obtains information that the path is included as micro services configuration information;If micro services configuration item correspondence includes
Micro services configuration information is one section of preset character string, then the character string is micro services configuration information.Meanwhile additionally providing one
A configuring maintenance interface can realize that inquiry and update to micro services configuration information are handled using the interface, be conducive to operation maintenance personnel
Management to resource distribution.Using this programme, it can be achieved that a resource distribution many places use, provided in micro services system to improve
The utilization rate of source configuration, while memory is also reduced, the cost of micro services information configuration is reduced, more because providing convenient for O&M
The maintenance interface that personnel are managed resource distribution keeps micro services information configuration mode more convenient.
It should be understood that although each step in the flow chart of Fig. 2 is successively shown according to the instruction of arrow, this
A little steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly state otherwise herein, these steps
It executes there is no the limitation of stringent sequence, these steps can execute in other order.Moreover, at least part of Fig. 2 walks
It suddenly may include that perhaps these sub-steps of multiple stages or stage have been executed in synchronization to multiple sub-steps
At, but can execute at different times, the execution sequence in these sub-steps or stage, which is also not necessarily, successively to be carried out, and
It is that can be executed in turn or alternately at least part of the sub-step or stage of other steps or other steps.
In one embodiment, as shown in figure 5, providing a kind of micro services information configuration device, including request receives mould
Block 510, path obtain module 520, data obtaining module 530 and information sending module 540, in which:
Request receiving module 510, for receiving information configuration request;The information configuration request includes micro services mark
Know;
Path obtains module 520, for identifying according to the micro services, obtains micro services configuration path;
Data obtaining module 530, for obtaining micro services configuration information according to the micro services configuration path;
Information sending module 540, user send the micro services configuration information;The micro services configuration information is for carrying out
Micro services configuration.
The scheme provided according to embodiments of the present invention is identified, i.e., by receiving the micro services for including in information configuration request
The micro services configuration information stored in intranet server can be got, which mainly uses micro services to configure road
The mode of diameter carries out nodal directory reference, for different types of configuration information, it can be achieved that a resource distribution many places use, from
And improve the utilization rate of resource distribution in micro services system, while also reducing memory, reduce micro services information configuration at
This.
In one embodiment, the path acquisition module 520 includes:
Configuration item acquisition submodule obtains micro services configuration item for identifying according to the micro services;Path determines submodule
Block, for determining the corresponding address information of the micro services configuration item, as the micro services configuration path.
In one embodiment, the data obtaining module 530 includes:
Node path acquisition of information submodule is used for when the micro services configuration path is node path, described in acquisition
The information that node path includes, as the micro services configuration information.
In one embodiment, the data obtaining module 530 includes:
Directory path acquisition of information submodule is used for when the micro services configuration path is directory path, described in acquisition
The information that directory path includes, as the micro services configuration information.
In one embodiment, the data obtaining module 530 includes:
Character string acquisition submodule, for determining the word when the micro services configuration path is preset character string
Symbol string, as the micro services configuration information.
In one embodiment, described device further include:
Interface display module, for showing configuring maintenance interface;The configuring maintenance interface is for updating the micro services
Configuration information;Configuration information receiving module, for receiving configuration information to be updated at the configuring maintenance interface;Information is more
New module is the configuration information to be updated for updating the micro services configuration information.
In one embodiment, configuration information receiving module includes:
Configuration item receiving submodule, for receiving configuration item to be updated;The module of configuration item determination, for according to it is described to
Configuration item is updated, determines target micro services configuration item;The target micro services configuration item matches with the configuration item to be updated.
The scheme provided according to embodiments of the present invention, first by receiving the micro services mark for including in information configuration request
Know, determine a micro services configuration item, the micro services configuration information which includes if node path or
Directory path then obtains information that the path is included as micro services configuration information;If micro services configuration item correspondence includes
Micro services configuration information is one section of preset character string, then the character string is micro services configuration information.Meanwhile additionally providing one
A configuring maintenance interface can realize that inquiry and update to micro services configuration information are handled using the interface, be conducive to operation maintenance personnel
Management to resource distribution.Using this programme, it can be achieved that a resource distribution many places use, provided in micro services system to improve
The utilization rate of source configuration, while memory is also reduced, the cost of micro services information configuration is reduced, more because providing convenient for O&M
The maintenance interface that personnel are managed resource distribution keeps micro services information configuration mode more convenient.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction
Composition can be as shown in Figure 6.The computer equipment include by system bus connect processor, memory, network interface and
Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The database of machine equipment is for storing identification information and facility information.The network interface of the computer equipment is used for and external end
End passes through network connection communication.The computer program realizes a kind of micro services information configuring methods when being executed by processor.
In one embodiment, a kind of computer equipment is provided, which can be terminal, internal structure
Figure can be as shown in Figure 7.The computer equipment includes processor, the memory, network interface, display connected by system bus
Screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer equipment is deposited
Reservoir includes non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system and computer journey
Sequence.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating
The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with
Realize a kind of micro services information configuring methods.The display screen of the computer equipment can be liquid crystal display or electric ink is aobvious
Display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to computer equipment shell
Key, trace ball or the Trackpad of upper setting can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Fig. 6 and Fig. 7, only relevant to application scheme
The block diagram of part-structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific to calculate
Machine equipment may include perhaps combining certain components or with different components than more or fewer components as shown in the figure
Arrangement.
In one embodiment, a kind of computer equipment, including memory and processor are provided, is stored in memory
Computer program, the processor perform the steps of when executing computer program
Receive information configuration request;The information configuration request includes micro services mark;
It is identified according to the micro services, obtains micro services configuration path;
According to the micro services configuration path, micro services configuration information is obtained;
Send the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.
In one embodiment, it is also performed the steps of when processor executes computer program
It is identified according to the micro services, obtains micro services configuration item;Determine the corresponding address letter of the micro services configuration item
Breath, as the micro services configuration path.
In one embodiment, it is also performed the steps of when processor executes computer program
When the micro services configuration path is node path, the information that the node path includes is obtained, as described
Micro services configuration information.
In one embodiment, it is also performed the steps of when processor executes computer program
When the micro services configuration path is directory path, the information that the directory path includes is obtained, as described
Micro services configuration information.
In one embodiment, it is also performed the steps of when processor executes computer program
When the micro services configuration path is preset character string, determines the character string, match as the micro services
Confidence breath.
In one embodiment, it is also performed the steps of when processor executes computer program
Show configuring maintenance interface;The configuring maintenance interface is for updating the micro services configuration information;Match described
It sets on maintenance interface, receives configuration information to be updated;Updating the micro services configuration information is the configuration information to be updated.
In one embodiment, it is also performed the steps of when processor executes computer program
Receive configuration item to be updated;According to the configuration item to be updated, target micro services configuration item is determined;The target is micro-
Service configuration item matches with the configuration item to be updated.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of when being executed by processor
Receive information configuration request;The information configuration request includes micro services mark;
It is identified according to the micro services, obtains micro services configuration path;
According to the micro services configuration path, micro services configuration information is obtained;
Send the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.
In one embodiment, it is also performed the steps of when computer program is executed by processor
It is identified according to the micro services, obtains micro services configuration item;Determine the corresponding address letter of the micro services configuration item
Breath, as the micro services configuration path.
In one embodiment, it is also performed the steps of when computer program is executed by processor
When the micro services configuration path is node path, the information that the node path includes is obtained, as described
Micro services configuration information.
In one embodiment, it is also performed the steps of when computer program is executed by processor
When the micro services configuration path is directory path, the information that the directory path includes is obtained, as described
Micro services configuration information.
In one embodiment, it is also performed the steps of when computer program is executed by processor
When the micro services configuration path is preset character string, determines the character string, match as the micro services
Confidence breath.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Show configuring maintenance interface;The configuring maintenance interface is for updating the micro services configuration information;Match described
It sets on maintenance interface, receives configuration information to be updated;Updating the micro services configuration information is the configuration information to be updated.
In one embodiment, it is also performed the steps of when computer program is executed by processor
Receive configuration item to be updated;According to the configuration item to be updated, target micro services configuration item is determined;The target is micro-
Service configuration item matches with the configuration item to be updated.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer
In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein,
To any reference of memory, storage, database or other media used in each embodiment provided herein,
Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM
(PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include
Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms,
Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing
Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM
(RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application
Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.
Claims (10)
1. a kind of micro services information configuring methods, which comprises the steps of:
Receive information configuration request;The information configuration request includes micro services mark;
It is identified according to the micro services, obtains micro services configuration path;
According to the micro services configuration path, micro services configuration information is obtained;
Send the micro services configuration information;The micro services configuration information is for carrying out micro services configuration.
2. obtaining micro services the method according to claim 1, wherein described identify according to the micro services and matching
Set path, comprising:
It is identified according to the micro services, obtains micro services configuration item;
The corresponding address information of the micro services configuration item is determined, as the micro services configuration path.
3. acquisition is in incognito the method according to claim 1, wherein described according to the micro services configuration path
Business configuration information, comprising:
When the micro services configuration path be node path when, obtain the information that the node path includes, as it is described in incognito
Business configuration information.
4. acquisition is in incognito the method according to claim 1, wherein described according to the micro services configuration path
Business configuration information, comprising:
When the micro services configuration path be directory path when, obtain the information that the directory path includes, as it is described in incognito
Business configuration information.
5. acquisition is in incognito the method according to claim 1, wherein described according to the micro services configuration path
Business configuration information, comprising:
When the micro services configuration path is preset character string, the character string is determined, match confidence as the micro services
Breath.
6. the method according to claim 1, wherein further include:
Show configuring maintenance interface;The configuring maintenance interface is for updating the micro services configuration information;
On the configuring maintenance interface, configuration information to be updated is received;
Updating the micro services configuration information is the configuration information to be updated.
7. according to the method described in claim 6, it is characterized in that, before the reception configuration information to be updated, further includes:
Receive configuration item to be updated;
According to the configuration item to be updated, target micro services configuration item is determined;The target micro services configuration item and described to more
New configuration item matches.
8. a kind of micro services information configuration device, which is characterized in that described device includes:
Request receiving module, for receiving information configuration request;The information configuration request includes micro services mark;
Path obtains module, for identifying according to the micro services, obtains micro services configuration path;
Data obtaining module, for obtaining micro services configuration information according to the micro services configuration path;
Information sending module, user send the micro services configuration information;The micro services configuration information is for carrying out micro services
Configuration.
9. a kind of computer equipment, including memory and processor, the memory are stored with computer program, feature exists
In the step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811589323.3A CN109669703A (en) | 2018-12-25 | 2018-12-25 | Micro services information configuring methods, device, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811589323.3A CN109669703A (en) | 2018-12-25 | 2018-12-25 | Micro services information configuring methods, device, computer equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109669703A true CN109669703A (en) | 2019-04-23 |
Family
ID=66146875
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811589323.3A Pending CN109669703A (en) | 2018-12-25 | 2018-12-25 | Micro services information configuring methods, device, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109669703A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110224855A (en) * | 2019-05-13 | 2019-09-10 | 平安科技(深圳)有限公司 | Register method, device, computer equipment and the storage medium of micro services example |
CN110661662A (en) * | 2019-09-26 | 2020-01-07 | 北京北信源软件股份有限公司 | Lightweight microservice configuration method |
CN111176746A (en) * | 2019-12-10 | 2020-05-19 | 贝壳技术有限公司 | Data configuration method, device and system, electronic equipment and storage medium thereof |
CN111475225A (en) * | 2020-03-31 | 2020-07-31 | 招商局金融科技有限公司 | Microservice configuration method, system, apparatus and computer readable storage medium |
CN112019369A (en) * | 2019-05-31 | 2020-12-01 | 烽火通信科技股份有限公司 | Dynamic configuration management method and system under micro-service framework |
CN112068820A (en) * | 2020-07-27 | 2020-12-11 | 北京旷视科技有限公司 | Configuration processing method and device of microservice, computer equipment and storage medium |
CN112631648A (en) * | 2020-12-23 | 2021-04-09 | 北京达佳互联信息技术有限公司 | Service configuration method and device, electronic equipment and storage medium |
CN114785798A (en) * | 2022-04-08 | 2022-07-22 | 南方电网数字电网研究院有限公司 | Node calling method and device, computer equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016065080A1 (en) * | 2014-10-21 | 2016-04-28 | Twilio, Inc. | System and method for providing a miro-services communication platform |
CN106648648A (en) * | 2016-12-14 | 2017-05-10 | 深圳中顺易金融服务有限公司 | Zookeeper-based configuration management method and system |
CN107104846A (en) * | 2017-06-02 | 2017-08-29 | 北京北信源软件股份有限公司 | A kind of method for realizing resource distribution, device and resource distribution center |
-
2018
- 2018-12-25 CN CN201811589323.3A patent/CN109669703A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2016065080A1 (en) * | 2014-10-21 | 2016-04-28 | Twilio, Inc. | System and method for providing a miro-services communication platform |
CN106648648A (en) * | 2016-12-14 | 2017-05-10 | 深圳中顺易金融服务有限公司 | Zookeeper-based configuration management method and system |
CN107104846A (en) * | 2017-06-02 | 2017-08-29 | 北京北信源软件股份有限公司 | A kind of method for realizing resource distribution, device and resource distribution center |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110224855A (en) * | 2019-05-13 | 2019-09-10 | 平安科技(深圳)有限公司 | Register method, device, computer equipment and the storage medium of micro services example |
CN110224855B (en) * | 2019-05-13 | 2022-07-22 | 平安科技(深圳)有限公司 | Registration method and device of micro service instance, computer equipment and storage medium |
CN112019369A (en) * | 2019-05-31 | 2020-12-01 | 烽火通信科技股份有限公司 | Dynamic configuration management method and system under micro-service framework |
WO2020237797A1 (en) * | 2019-05-31 | 2020-12-03 | 烽火通信科技股份有限公司 | Dynamic configuration management method and system in microservice framework |
CN110661662A (en) * | 2019-09-26 | 2020-01-07 | 北京北信源软件股份有限公司 | Lightweight microservice configuration method |
CN110661662B (en) * | 2019-09-26 | 2022-04-05 | 北京北信源软件股份有限公司 | Lightweight microservice configuration method |
CN111176746A (en) * | 2019-12-10 | 2020-05-19 | 贝壳技术有限公司 | Data configuration method, device and system, electronic equipment and storage medium thereof |
CN111475225A (en) * | 2020-03-31 | 2020-07-31 | 招商局金融科技有限公司 | Microservice configuration method, system, apparatus and computer readable storage medium |
CN112068820A (en) * | 2020-07-27 | 2020-12-11 | 北京旷视科技有限公司 | Configuration processing method and device of microservice, computer equipment and storage medium |
CN112068820B (en) * | 2020-07-27 | 2023-08-08 | 北京旷视科技有限公司 | Method and device for processing configuration of micro-service, computer equipment and storage medium |
CN112631648A (en) * | 2020-12-23 | 2021-04-09 | 北京达佳互联信息技术有限公司 | Service configuration method and device, electronic equipment and storage medium |
CN114785798A (en) * | 2022-04-08 | 2022-07-22 | 南方电网数字电网研究院有限公司 | Node calling method and device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109669703A (en) | Micro services information configuring methods, device, computer equipment and storage medium | |
EP3564829B1 (en) | A modified representational state transfer (rest) application programming interface (api) including a customized graphql framework | |
US11004016B2 (en) | Query-based identifiers for cross-session response tracking | |
US9354998B2 (en) | Automated conformance and interoperability test lab | |
US20110004676A1 (en) | Virtual appliance deploying system | |
CN110658794B (en) | Manufacturing execution system | |
US11068127B2 (en) | Springboard interface for quick task transitions | |
US10972564B2 (en) | System and method for automating actions in distributed computing | |
US20150006346A1 (en) | Account engine with modular services and access channels | |
US8843587B2 (en) | Retrieving availability information from published calendars | |
CN111294288A (en) | Traffic identification method and device, application program interface gateway and storage medium | |
US10397342B2 (en) | Web service contract selection | |
US10067808B2 (en) | Nondeterministic operation execution environment utilizing resource registry | |
US20230096376A1 (en) | Unified automation of application development | |
CN108279924A (en) | Program dissemination method and device | |
US20200364628A1 (en) | Parallel versioning and multi-variate testing | |
CN114285859A (en) | Data processing method, device, equipment and storage medium for interlayer zone block chain service | |
CN111857736A (en) | Cloud computing product generation method, device, equipment and storage medium | |
US20130290830A1 (en) | System and method for managing a viewstate of a web application | |
US11522943B1 (en) | System and method for deferring data retrieval | |
CN113296968A (en) | Address list updating method, device, medium and electronic equipment | |
US20230315723A1 (en) | Low-development system for dynamic information queries | |
US11609747B1 (en) | Decentralized application development and deployment | |
CN109669846A (en) | Management information querying method, device and computer-readable medium | |
US20240028346A1 (en) | Linking kubernetes resources with underlying cloud infrastructure |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190423 |