CN115941701A - Dynamic configuration method based on micro-service architecture - Google Patents

Dynamic configuration method based on micro-service architecture Download PDF

Info

Publication number
CN115941701A
CN115941701A CN202211253760.4A CN202211253760A CN115941701A CN 115941701 A CN115941701 A CN 115941701A CN 202211253760 A CN202211253760 A CN 202211253760A CN 115941701 A CN115941701 A CN 115941701A
Authority
CN
China
Prior art keywords
sub
service module
service
data processing
data
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
CN202211253760.4A
Other languages
Chinese (zh)
Other versions
CN115941701B (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.)
Huaneng Information Technology Co Ltd
Original Assignee
Huaneng 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 Huaneng Information Technology Co Ltd filed Critical Huaneng Information Technology Co Ltd
Priority to CN202211253760.4A priority Critical patent/CN115941701B/en
Publication of CN115941701A publication Critical patent/CN115941701A/en
Application granted granted Critical
Publication of CN115941701B publication Critical patent/CN115941701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a dynamic configuration method based on a micro-service architecture, which is applied to a sub-service module of a micro-service architecture system, wherein the sub-service module comprises a database for storing sub-service data, and the method comprises the following steps: a sub-service module program library is established, and the sub-service module program library comprises programs of all sub-service modules; establishing a backup operation space, wherein the backup operation space determines the sub-service module which should be backed up and operated according to the operation state of different sub-service modules, determines the program of the sub-service module which should be backed up and operated in the sub-service module program library and operates the program; and if the running state of the sub-service modules reaches the preset state standard, the sub-service modules running in the backup running space are in parallel butt joint with the client side, so that the problem of quality service reduction caused by the increase of the requested services is effectively solved.

Description

Dynamic configuration method based on micro-service architecture
Technical Field
The invention relates to the technical field of micro services, in particular to a dynamic configuration method based on a micro service architecture.
Background
Micro-services, a variant of the software development technology-Service Oriented Architecture (SOA) architectural style, advocates dividing a single application into a set of small services that are coordinated and coordinated to provide ultimate value to the user. Each service runs in its own independent process, and the services communicate with each other by adopting a lightweight communication mechanism (usually, HTTP-based RESTful API). Each service is built around a specific business and can be deployed independently to a production environment, a production-like environment, and the like. In addition, a unified and centralized service management mechanism should be avoided as much as possible, and for a specific service, a suitable language and tool should be selected and constructed according to the context.
In the application process of software developed by a micro-service architecture, because resources divided by divided sub-service modules are limited, when a large-scale service request occurs, the problem that the service quality of the sub-service modules is greatly reduced (the request feedback time is prolonged or even no feedback exists) is very easy to occur, in order to avoid the problem, the adopted means is to divide more system resources for the sub-service modules after the problem occurs, but the mode often has certain delay, and for the large-scale request which is not obviously regular and has short occurrence time, the mode is too wasteful of the system resources, so in order to face the problem, a method capable of dynamically configuring the sub-service modules based on a micro-service framework is urgently needed.
Disclosure of Invention
The invention aims to provide a method for configuring a sub-service module based on a micro-service framework.
The invention discloses a dynamic configuration method based on a micro-service architecture, which is applied to a sub-service module of a micro-service architecture system, wherein the sub-service module comprises a database for storing sub-service data, and the method comprises the following steps:
a sub-service module program library is established, and the sub-service module program library comprises programs of all sub-service modules;
establishing a backup operation space, wherein the backup operation space determines the sub-service module which should be backed up and operated according to the operation state of different sub-service modules, determines the program of the sub-service module which should be backed up and operated in the sub-service module program library and operates the program;
and if the running state of the sub-service modules reaches a preset state standard, the sub-service modules which are backed up and run in the backup running space are in parallel butt joint with the client.
In some embodiments of the present application, a method for determining an operating state of the sub-service module is disclosed, and the method for determining an operating state of the sub-service module includes:
setting an assignment rule for evaluating the data processing capacity of the database, and assigning by the assignment rule to obtain a total resource value corresponding to the data processing capacity of the database;
acquiring request information of a client;
determining a data processing mode according to the client request information, and performing resource consumption assignment on the data processing mode according to the capability assignment rule to obtain a real-time resource consumption value;
acquiring real-time resource consumption values of all data processing modes in the same time period, and calculating, analyzing and generating a real-time total resource consumption value;
and determining the running state of the sub-service module according to the difference value between the total resource value and the real-time total resource consumption value.
In some embodiments of the present application, a method for performing resource consumption assignment on all data processing modes by using an assignment rule is disclosed, and the method for performing resource consumption assignment on all data processing modes by using an assignment rule includes:
determining a total resource value of the database processing capacity to be 1 unit value;
classifying and dividing the data calling processing mode, the data deleting processing mode and the data storing processing mode respectively according to the request information of all the clients, and analyzing and determining the data processing amount of each class, wherein the data processing amount of the data calling processing mode is L1, the data processing amount of the data deleting processing mode is L2, and the data processing amount of the data storing processing mode is L3;
determining a resource consumption value of each data processing mode type under the condition of unit data processing amount, wherein the resource consumption value of a data calling processing mode under the condition of unit data processing amount is P1, the resource consumption value of a data deleting processing mode under the condition of unit data processing amount is P2, and the resource consumption value of a data storing processing mode under the condition of unit data processing amount is P3;
and analyzing and calculating the real-time resource consumption value of each data processing mode type, wherein the real-time resource consumption value K1= L1P 1 of the data calling processing mode, the real-time resource consumption value K2= L2P 2 of the data deleting processing mode, and the real-time resource consumption value K3= L3P 3 of the data storage processing mode.
In some embodiments of the present application, a method of determining a resource consumption value per data processing method class for a unit data processing amount is disclosed, the method of determining a resource consumption value per data processing method class for a unit data processing amount comprising:
respectively and continuously increasing the data processing capacity under each data processing mode type until the database runs at full load, determining the data processing capacity, and further calculating to obtain resource consumption values of different data processing mode types under the condition of unit data processing capacity;
if the data processing amount of the data call processing mode in the full-load data operation is U1, the resource consumption value P1=1/U1 of the data call processing mode in the case of a unit data processing amount;
if the data processing amount of the data deleting processing mode in the full-load operation of the database is U2, the resource consumption value P2=1/U2 of the data deleting processing mode in the case of unit data processing amount;
if the data processing amount of the data storage processing method during the full-load operation of the database is U3, the resource consumption value P3=1/U3 in the data storage processing method per unit data processing amount.
In some embodiments of the present application, a method capable of determining an operation state of the sub service module is disclosed, and the method of determining the operation state of the sub service module includes:
the operation states comprise a low-load operation state, a general load operation state, a higher load operation state and a high load operation state, wherein each operation state corresponds to a resource value interval;
and determining the running state of the sub-service module according to the resource value interval to which the difference value between the total resource value and the real-time total resource consumption value belongs.
In some embodiments of the present application, in order to further determine the operating state of the sub service module, a method for determining the operating state of the sub service module is further disclosed, and the method for determining the operating state of the sub service module further includes:
setting a resource value corresponding group A [ A1, A2, A3, A4], wherein A1 is a first corresponding resource value, A2 is a second corresponding resource value, A3 is a third corresponding resource value, A4 is a fourth corresponding resource value, and A1 is more than A2 and less than A3 and less than A4 and less than An;
obtaining a difference value a between the total resource value and the real-time total resource consumption value, wherein a =1- (K1 + K2+ K3);
when the a is less than or equal to A1, determining the operation state of the sub-service module as a low-load operation state;
when A1 is more than a and less than or equal to A2, determining the running state of the sub-service module as a normal load running state;
when A2 is more than a and less than or equal to A3, determining the running state of the sub-service module as a higher load running state;
and when A3 is larger than A and is smaller than or equal to A4, determining the running state of the sub-service module as a high-load running state.
In some embodiments of the present application, a method for determining a sub-service module which should be backed up and run is disclosed, the method for determining the sub-service module which should be backed up and run comprises:
and if the running state of the sub-service module is a higher load running state, backing up and running the sub-service module in the backup running space.
In some embodiments of the present application, a method for determining to rail-in-parallel interface sub-service modules in the backup operating space to a client is disclosed, and the method for determining to rail-in-parallel interface sub-service modules in the backup operating space to the client comprises:
and if the running state of the sub-service modules is a high-load running state, the sub-service modules in the backup running space are in parallel connection with the client side.
In some embodiments of the present application, in order to enable the client to establish a communication connection with the sub-service module and the backup operating space at the same time, an improvement is made to the dynamic configuration method, where the dynamic configuration method further includes:
and establishing an intermediate interaction module, wherein the intermediate interaction module is used for butting the sub-service module, the client and the backup operation space so as to enable the sub-service module and the backup operation space to be directly in communication connection with the client.
In some embodiments of the present application, a specific method for establishing a communication connection between the intermediate interaction module and the client, the sub-service module and the backup operating space is disclosed, and the method for establishing a communication connection between the intermediate interaction module and the client, the sub-service module and the backup operating space includes:
and if the running state of the sub-service module reaches a preset state standard, the intermediate interaction module simultaneously sends the client request information received from the client to the backup running space and sends the processing information fed back by the backup running space to the client.
The application discloses a dynamic configuration method based on a micro-service architecture, which is applied to a system of the micro-service architecture and brings the following benefits to the system:
1. and monitoring the running state of the sub-service module, and if the sub-service module reaches a preset state standard, starting a system resource increasing function for providing services for the sub-service module, so that the problem of service quality reduction caused by the sudden increase of the requested services of the sub-service module is avoided.
2. The method comprises the steps of establishing a backup operation space, operating a certain sub-service module in the backup operation space, determining the sub-service module which should be backed up according to the operation states of different sub-service modules, and butting the sub-service module which is backed up and operated with a client when the state of the sub-service module which is operated on the front line reaches a preset state standard, so that the purpose of rapidly improving the performance of the same sub-service module is realized, and the stability of the system for processing the same service is improved due to the fact that two groups of sub-service modules which are operated simultaneously are provided.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
FIG. 1 is a diagram illustrating steps of a dynamic configuration method based on a micro service architecture according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for determining an operating status of a sub-service module according to an embodiment of the present disclosure;
fig. 3 is a communication connection diagram of the sub-service module, the backup operating space, and the client in the embodiment of the present application.
Detailed Description
The technical solution of the present invention is further illustrated by the accompanying drawings and examples.
Unless defined otherwise, technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention belongs. The use of "first," "second," and similar terms in the present application do not denote any order, quantity, or importance, but rather the terms are used to distinguish one element from another. The word "comprising" or "comprises", and the like, means that the element or item preceding the word comprises the element or item listed after the word and its equivalent, but does not exclude other elements or items. The terms "connected" or "coupled" and the like are not restricted to physical or mechanical connections, but may include electrical connections, whether direct or indirect. "upper", "lower", "left", "right", and the like are used merely to indicate relative positional relationships, and when the absolute position of the object being described is changed, the relative positional relationships may also be changed accordingly.
Example (b):
micro-services, a variant of the software development technology-Service Oriented Architecture (SOA) architectural style, advocates dividing a single application into a set of small services that are coordinated and coordinated to provide ultimate value to the user. Each service runs in its own independent process, and the services communicate with each other by adopting a lightweight communication mechanism (usually, HTTP-based RESTful API). Each service is built around a specific business and can be deployed independently to a production environment, a production-like environment, and the like. In addition, a unified and centralized service management mechanism should be avoided as much as possible, and for a specific service, a suitable language and tool should be selected and constructed according to the context.
In the application process of software developed through a micro-service architecture, due to the fact that resources divided by the divided sub-service modules are limited, when a large-scale service request occurs, the problem that the service quality of the sub-service modules is greatly reduced (the feedback time of the request is prolonged or even no feedback exists) is very easy to occur.
The present invention therefore provides a method for configuring a sub-service module based on a micro-service framework.
Therefore, the present invention discloses a dynamic configuration method based on micro-service architecture, which is applied to a sub-service module of a micro-service architecture system, wherein the sub-service module comprises a database for storing sub-service data, and referring to fig. 1, the method comprises the following steps:
step S100, a sub-service module program library is established, and the sub-service module program library comprises programs of all sub-service modules.
Step S200, establishing a backup operation space, wherein the backup operation space determines the sub-service module which should be backed up and operated according to the operation state of different sub-service modules, and determines the program of the sub-service module which should be backed up and operated in the sub-service module program library and operates the program.
The sub-service module in backup operation also comprises a database for storing sub-service data, the data is processed in the database built in the sub-service module in backup operation, when the sub-service module in backup operation is cancelled, the record of data processing is fed back to the sub-service module in front line operation, and the adjustment is carried out through the database built in the sub-service module in front line operation.
Step 300, if the operation state of the sub-service modules reaches a preset state standard, the sub-service modules which are in backup operation in the backup operation space are in parallel butt joint with the client.
In some embodiments of the present application, referring to fig. 3, in order to enable the client to establish a communication connection with the sub-service module and the backup operating space at the same time, an improvement is made to the dynamic configuration method, where the dynamic configuration method further includes: and establishing an intermediate interaction module, wherein the intermediate interaction module is used for butting the sub-service module, the client and the backup operation space so as to enable the sub-service module and the backup operation space to be directly in communication connection with the client.
In some embodiments of the present application, a specific method for establishing a communication connection between the intermediate interaction module and the client, the sub-service module and the backup operating space is disclosed, and the method for establishing a communication connection between the intermediate interaction module and the client, the sub-service module and the backup operating space includes: and if the running state of the sub-service module reaches the preset state standard, the intermediate interaction module simultaneously sends the client request information received from the client to the backup running space and sends the processing information fed back by the backup running space to the client.
In some embodiments of the present application, in order to determine the operation state of the sub-service module, a method for determining the operation state of the sub-service module is disclosed, and referring to fig. 2, the method for determining the operation state of the sub-service module includes:
step S201, setting an assignment rule for evaluating the data processing capacity of the database, and assigning by the assignment rule to obtain a total resource value corresponding to the data processing capacity of the database.
Step S202, client request information is obtained.
Step S203, determining a data processing mode according to the client request information, and performing resource consumption assignment on the data processing mode according to the capability assignment rule to obtain a real-time resource consumption value.
And step S204, acquiring real-time resource consumption values of all data processing modes in the same time period, and calculating, analyzing and generating a real-time total resource consumption value.
Step S205, determining the operation status of the sub-service module according to the difference between the total resource value and the real-time total resource consumption value.
In order to determine the operating state of the sub-service module in a manner of comparison after assignment, in some embodiments of the present application, a method for performing resource consumption assignment on all data processing manners by using the assignment rule is disclosed, where the method for performing resource consumption assignment on all data processing manners by using the assignment rule includes:
in a first step, a total resource value of the database processing capacity is determined to be 1 unit value.
And secondly, classifying and dividing the data calling processing mode, the data deleting processing mode and the data storing processing mode respectively according to all the client request information, and analyzing and determining the data processing amount of each class, wherein the data processing amount of the data calling processing mode is L1, the data processing amount of the data deleting processing mode is L2, and the data processing amount of the data storing processing mode is L3.
And thirdly, determining the resource consumption value of each data processing mode type under the condition of unit data processing amount, wherein the resource consumption value of the data calling processing mode under the condition of the unit data processing amount is P1, the resource consumption value of the data deleting processing mode under the condition of the unit data processing amount is P2, and the resource consumption value of the data storing processing mode under the condition of the unit data processing amount is P3.
And fourthly, analyzing and calculating the real-time resource consumption value of each data processing mode type, wherein the real-time resource consumption value K1= L1P 1 of the data calling processing mode, the real-time resource consumption value K2= L2P 2 of the data deleting processing mode, and the real-time resource consumption value K3= L3P 3 of the data storage processing mode.
In some embodiments of the present application, a method of determining a resource consumption value per data processing method class for a unit data processing amount is disclosed, the method of determining a resource consumption value per data processing method class for a unit data processing amount comprising: respectively and continuously increasing the data processing capacity under each data processing mode type until the database runs at full load, determining the data processing capacity, and further calculating to obtain resource consumption values of different data processing mode types under the condition of unit data processing capacity; if the data processing amount of the data call processing mode in the full-load data operation is U1, the resource consumption value P1=1/U1 of the data call processing mode in the case of a unit data processing amount; if the data processing amount of the data deleting processing mode in the full-load operation of the database is U2, the resource consumption value P2=1/U2 of the data deleting processing mode in the case of unit data processing amount; if the data processing amount of the data storage processing method during the full-load operation of the database is U3, the resource consumption value P3=1/U3 in the case of a unit data processing amount of the data storage processing method.
In some embodiments of the present application, a method capable of determining an operation state of the sub-service module is disclosed, the method of determining the operation state of the sub-service module comprising: the operation states comprise a low-load operation state, a general load operation state, a higher load operation state and a high load operation state, wherein each operation state corresponds to a resource value interval; and determining the running state of the sub-service module according to the resource value interval to which the difference value between the total resource value and the real-time total resource consumption value belongs.
In some embodiments of the present application, in order to further determine the operating state of the sub service module, a method for determining the operating state of the sub service module is further disclosed, and the method for determining the operating state of the sub service module further includes:
in the first step, a resource value corresponding group A [ A1, A2, A3, A4] is set, wherein A1 is a first corresponding resource value, A2 is a second corresponding resource value, A3 is a third corresponding resource value, A4 is a fourth corresponding resource value, and A1 < A2 < A3 < A4 < An.
And secondly, acquiring a difference value a between the total resource value and the real-time total resource consumption value, wherein a =1- (K1 + K2+ K3).
And thirdly, when a is less than or equal to A1, determining the running state of the sub-service module as a low-load running state.
And fourthly, when the a is more than or equal to A1 and less than or equal to A2, determining the running state of the sub-service module as a normal load running state.
And fifthly, when A2 is larger than a and is not larger than A3, determining the running state of the sub-service module as a higher load running state.
Sixthly, when a is larger than A3 and is smaller than or equal to A4, determining the running state of the sub-service module as a high-load running state.
In some embodiments of the present application, a method for determining a sub-service module which should be backed up and run is disclosed, the method for determining the sub-service module which should be backed up and run comprises: and if the running state of the sub-service module is a higher load running state, backing up and running the sub-service module in the backup running space.
In some embodiments of the present application, a method for determining to rail-in-parallel interface sub-service modules in the backup operating space to a client is disclosed, and the method for determining to rail-in-parallel interface sub-service modules in the backup operating space to the client comprises: and if the running state of the sub-service modules is a high-load running state, the sub-service modules in the backup running space are in parallel connection with the client side.
In order to further explain the technical solution of the present application, the technical solutions described above are now explained in an integrated manner.
Microservices (or microservices architecture) are a cloud-native architecture approach in which a single application consists of many loosely-coupled and independently deployed smaller components or services. These services have their own databases and data processing models.
The sub-service module mentioned in the application is a component for completing a certain service, and the sub-service module comprises a database.
And aiming at different sub-service modules, a sub-service module program library is established, and the sub-service module program library is used for providing programs of different sub-service modules.
And establishing a backup operation space, wherein the backup operation space comprises a virtual operation space divided in the system based on the server, or calling the server, and directly operating the sub-service module needing backup operation by using the system of the server.
Monitoring the running state of a front-line running sub-service module (a real-time running sub-service module), if the running state of the front-line sub-service module reaches a first preset state standard, starting the backup running sub-service module for standby by the backup running space, and if the running state of the front-line sub-service module reaches a second preset state standard, enabling the backup running space to be in parallel rail butt joint with the client.
The method for judging the state of the front line submodule is used for monitoring system resources consumed in the data processing process of the front line submodule, and specifically comprises the steps of firstly assigning the total processing capacity of the database, obtaining the total processing capacity through testing in advance, respectively carrying out full load testing on the database according to a data calling processing mode, a data deleting processing mode and a data storing processing mode, respectively determining the data processing amount processed by each data processing mode, then calculating to obtain a resource consumption value of a unit data processing amount relative to full load operation of the database, then obtaining the data amount processed by the front line submodule respectively according to different data processing modes, multiplying the data amount processed by different data processing modes by the resource consumption value of the unit data processing amount, summing the obtained values again to obtain a real-time resource consumption value, calculating the difference between the real-time resource consumption value and the total resource value of the database, and determining the operation state of the front line submodule according to the difference.
The application discloses a dynamic configuration method based on a micro-service architecture, which is applied to a system of the micro-service architecture and brings the following benefits to the system:
1. the running state of the sub-service module is monitored, if the sub-service module reaches the preset state standard, the function of increasing system resources for providing services for the sub-service module is started, and the problem of service quality reduction caused by the fact that the sub-service module requests services are increased suddenly is solved.
2. The method comprises the steps of establishing a backup operation space, operating a certain sub-service module in the backup operation space, determining the sub-service module which should be backed up according to the operation states of different sub-service modules, and butting the sub-service module which is backed up and operated with a client when the state of the sub-service module which is operated on the front line reaches a preset state standard, so that the purpose of rapidly improving the performance of the same sub-service module is realized, and the stability of the system for processing the same service is improved due to the fact that two groups of sub-service modules which are operated simultaneously are provided.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting the same, and although the present invention is described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that: modifications and equivalents may be made to the invention without departing from the spirit and scope of the invention.

Claims (10)

1. A dynamic configuration method based on micro service architecture is characterized in that a sub-service module corresponding to a micro service architecture system is provided, the sub-service module comprises a database for storing sub-service data, and the method comprises the following steps:
a sub-service module program library is established, and the sub-service module program library comprises programs of all sub-service modules;
establishing a backup operation space, wherein the backup operation space determines the sub-service module which should be backed up and operated according to the operation state of different sub-service modules, determines the program of the sub-service module which should be backed up and operated in the sub-service module program library and operates the program;
and if the running state of the sub-service modules reaches a preset state standard, the sub-service modules running in the backup running space are in parallel butt joint with the client.
2. The method according to claim 1, wherein the method for determining the operating status of the sub-service module comprises:
setting an assignment rule for evaluating the data processing capacity of the database, and assigning by the assignment rule to obtain a total resource value corresponding to the data processing capacity of the database;
acquiring request information of a client;
determining a data processing mode according to the client request information, and performing resource consumption assignment on the data processing mode according to the capability assignment rule to obtain a real-time resource consumption value;
acquiring real-time resource consumption values of all data processing modes in the same time period, and calculating, analyzing and generating a real-time total resource consumption value;
and determining the running state of the sub-service module according to the difference value between the total resource value and the real-time total resource consumption value.
3. The method according to claim 2, wherein the method for performing resource consumption assignment on all data processing modes by using the assignment rule comprises:
determining a total resource value of the database processing capacity to be 1 unit value;
classifying and dividing the data calling processing mode, the data deleting processing mode and the data storing processing mode respectively according to the request information of all the clients, and analyzing and determining the data processing amount of each class, wherein the data processing amount of the data calling processing mode is L1, the data processing amount of the data deleting processing mode is L2, and the data processing amount of the data storing processing mode is L3;
determining a resource consumption value of each data processing mode type under the condition of unit data processing amount, wherein the resource consumption value of a data calling processing mode under the condition of unit data processing amount is P1, the resource consumption value of a data deleting processing mode under the condition of unit data processing amount is P2, and the resource consumption value of a data storing processing mode under the condition of unit data processing amount is P3;
and analyzing and calculating the real-time resource consumption value of each data processing mode type, wherein the real-time resource consumption value K1= L1P 1 of the data calling processing mode, the real-time resource consumption value K2= L2P 2 of the data deleting processing mode, and the real-time resource consumption value K3= L3P 3 of the data storage processing mode.
4. The method of claim 3, wherein the step of determining the resource consumption value of each data processing method class for a unit data throughput comprises:
respectively and continuously increasing the data processing capacity under each data processing mode type until the database runs at full load, determining the data processing capacity, and further calculating to obtain resource consumption values of different data processing mode types under the condition of unit data processing capacity;
when the data processing amount of the data call processing mode in the full-load operation of the data is U1, the resource consumption value P1=1/U1 of the data call processing mode under the condition of unit data processing amount;
if the data processing amount of the data deleting processing mode in the full-load operation of the database is U2, the resource consumption value P2=1/U2 of the data deleting processing mode in the case of unit data processing amount;
if the data processing amount of the data storage processing method during the full-load operation of the database is U3, the resource consumption value P3=1/U3 in the case of a unit data processing amount of the data storage processing method.
5. The method of claim 4, wherein the method for determining the operating status of the sub-service module comprises:
the operation states comprise a low-load operation state, a general load operation state, a higher load operation state and a high load operation state, wherein each operation state corresponds to a resource value interval;
and determining the running state of the sub-service module according to the resource value interval to which the difference value between the total resource value and the real-time total resource consumption value belongs.
6. The method of claim 5, wherein the method for determining the operating status of the sub-service module further comprises:
setting a resource value corresponding group A [ A1, A2, A3, A4], wherein A1 is a first corresponding resource value, A2 is a second corresponding resource value, A3 is a third corresponding resource value, A4 is a fourth corresponding resource value, and A1 is more than A2 and less than A3 and less than A4 and less than An;
obtaining a difference value a between the total resource value and the real-time total resource consumption value, wherein a =1- (K1 + K2+ K3);
when the a is less than or equal to A1, determining the operation state of the sub-service module as a low-load operation state;
when A1 is more than a and less than or equal to A2, determining the running state of the sub-service module as a normal load running state;
when A2 is more than a and less than or equal to A3, determining the running state of the sub-service module as a higher load running state;
and when A3 is larger than A and is smaller than or equal to A4, determining the running state of the sub-service module as a high-load running state.
7. The method of claim 6, wherein the step of determining the sub-service modules that should be backed up comprises:
and if the running state of the sub-service module is a higher load running state, backing up and running the sub-service module in the backup running space.
8. The method of claim 7, wherein determining to butt-joint the sub-service modules in the backup operating space to the client side in parallel comprises:
and if the running state of the sub-service modules is a high-load running state, the sub-service modules in the backup running space are in parallel connection with the client side.
9. The micro-service architecture based dynamic configuration method according to claim 1, further comprising:
and establishing an intermediate interaction module, wherein the intermediate interaction module is used for butting the sub-service module, the client and the backup operation space so as to enable the sub-service module and the backup operation space to be directly in communication connection with the client.
10. The method of claim 9, wherein the method for establishing communication connection between the intermediate interactive module and the client, the sub-service module and the backup operating space comprises:
and if the running state of the sub-service module reaches the preset state standard, the intermediate interaction module simultaneously sends the client request information received from the client to the backup running space and sends the processing information fed back by the backup running space to the client.
CN202211253760.4A 2022-10-13 2022-10-13 Dynamic configuration method based on micro-service architecture Active CN115941701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211253760.4A CN115941701B (en) 2022-10-13 2022-10-13 Dynamic configuration method based on micro-service architecture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211253760.4A CN115941701B (en) 2022-10-13 2022-10-13 Dynamic configuration method based on micro-service architecture

Publications (2)

Publication Number Publication Date
CN115941701A true CN115941701A (en) 2023-04-07
CN115941701B CN115941701B (en) 2023-06-23

Family

ID=86653238

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211253760.4A Active CN115941701B (en) 2022-10-13 2022-10-13 Dynamic configuration method based on micro-service architecture

Country Status (1)

Country Link
CN (1) CN115941701B (en)

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022662A (en) * 2014-04-22 2015-11-04 中国银联股份有限公司 Distributive task allocation method
US20170339243A1 (en) * 2014-11-11 2017-11-23 Unify Gmbh & Co. Kg Method and system for real-time resource consumption control in a distributed computing environment
CN109408200A (en) * 2018-11-12 2019-03-01 国网信息通信产业集团有限公司 A kind of micro services method for managing resource and system based on resource request feature
US10237343B1 (en) * 2015-12-07 2019-03-19 EMC IP Holding Company LLC Sustaining backup service level objectives using dynamic resource allocation
CN110262902A (en) * 2019-05-16 2019-09-20 杭州朗和科技有限公司 Information processing method and system, medium and calculating equipment
CN110855578A (en) * 2019-11-06 2020-02-28 西安电子科技大学 Similarity-based cloud micro-service resource scheduling optimization method
CN110851278A (en) * 2019-11-08 2020-02-28 南京国电南自电网自动化有限公司 Distribution network automation master station mobile application service management method and system based on micro-service architecture
US20200133795A1 (en) * 2018-10-26 2020-04-30 EMC IP Holding Company LLC Smart dynamic restore for kubernetes based applications
US20200401386A1 (en) * 2019-06-19 2020-12-24 International Business Machines Corporation Reconfiguring application software into microservice architecture
CN112306755A (en) * 2020-11-13 2021-02-02 苏州浪潮智能科技有限公司 High-availability implementation method and system based on micro front-end architecture
CN113778985A (en) * 2021-08-19 2021-12-10 上海东普信息科技有限公司 Microservice architecture monitoring method, microservice architecture monitoring device, computer equipment and storage medium
WO2022068540A1 (en) * 2020-09-30 2022-04-07 深圳前海微众银行股份有限公司 Database status determination method and apparatus, device, and storage medium
CN114610454A (en) * 2022-02-21 2022-06-10 京东科技信息技术有限公司 Micro-service architecture operation resource scheduling method and device

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022662A (en) * 2014-04-22 2015-11-04 中国银联股份有限公司 Distributive task allocation method
US20170339243A1 (en) * 2014-11-11 2017-11-23 Unify Gmbh & Co. Kg Method and system for real-time resource consumption control in a distributed computing environment
US10237343B1 (en) * 2015-12-07 2019-03-19 EMC IP Holding Company LLC Sustaining backup service level objectives using dynamic resource allocation
US20200133795A1 (en) * 2018-10-26 2020-04-30 EMC IP Holding Company LLC Smart dynamic restore for kubernetes based applications
CN109408200A (en) * 2018-11-12 2019-03-01 国网信息通信产业集团有限公司 A kind of micro services method for managing resource and system based on resource request feature
CN110262902A (en) * 2019-05-16 2019-09-20 杭州朗和科技有限公司 Information processing method and system, medium and calculating equipment
US20200401386A1 (en) * 2019-06-19 2020-12-24 International Business Machines Corporation Reconfiguring application software into microservice architecture
CN110855578A (en) * 2019-11-06 2020-02-28 西安电子科技大学 Similarity-based cloud micro-service resource scheduling optimization method
CN110851278A (en) * 2019-11-08 2020-02-28 南京国电南自电网自动化有限公司 Distribution network automation master station mobile application service management method and system based on micro-service architecture
WO2022068540A1 (en) * 2020-09-30 2022-04-07 深圳前海微众银行股份有限公司 Database status determination method and apparatus, device, and storage medium
CN112306755A (en) * 2020-11-13 2021-02-02 苏州浪潮智能科技有限公司 High-availability implementation method and system based on micro front-end architecture
CN113778985A (en) * 2021-08-19 2021-12-10 上海东普信息科技有限公司 Microservice architecture monitoring method, microservice architecture monitoring device, computer equipment and storage medium
CN114610454A (en) * 2022-02-21 2022-06-10 京东科技信息技术有限公司 Micro-service architecture operation resource scheduling method and device

Also Published As

Publication number Publication date
CN115941701B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
US9712640B2 (en) Load distribution in client server system
US7035919B1 (en) Method for calculating user weights for thin client sizing tool
US7676516B2 (en) System and method for the optimization of database access in data base networks
CN104272292A (en) Network resource deployment for cloud-based services
US20080196029A1 (en) Transaction Manager Virtualization
CN110113406B (en) Distributed computing service cluster system
CN112698952A (en) Unified management method and device for computing resources, computer equipment and storage medium
CN110719311A (en) Distributed coordination service method, system and computer readable storage medium
CN111401837B (en) Event processing method and system, and computer readable storage medium
CN113687956A (en) Message routing distribution method and device, computer equipment and storage medium
CN115001990B (en) Cross-region openstack cluster management method and system based on declarative API
CN109597764A (en) A kind of test method and relevant apparatus of catalogue quota
CN116800825A (en) Calling method, device, equipment and medium based on micro-service splitting
CN114666335A (en) DDS-based distributed system load balancing device
CN108259605B (en) Data calling system and method based on multiple data centers
US20060048020A1 (en) Subscription-based management and distribution of member-specific state data in a distributed computing system
CN101789963A (en) Data synchronization system
CN115941701B (en) Dynamic configuration method based on micro-service architecture
CN112199432A (en) High-performance data ETL device based on distribution and control method
US6859929B1 (en) Method for server metafarm configuration optimization
CN112631771B (en) Parallel processing method of big data system
US20070083796A1 (en) Methods and systems for forecasting status of clustered computing systems
CN113034048A (en) Task processing method, device, server and storage medium
US11979444B1 (en) Mesh management for redistribution of online events
CN113364864B (en) Server data synchronization method, system and 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