CN112631770A - Service interface resource isolation configuration method and device and computer equipment - Google Patents

Service interface resource isolation configuration method and device and computer equipment Download PDF

Info

Publication number
CN112631770A
CN112631770A CN202011509481.0A CN202011509481A CN112631770A CN 112631770 A CN112631770 A CN 112631770A CN 202011509481 A CN202011509481 A CN 202011509481A CN 112631770 A CN112631770 A CN 112631770A
Authority
CN
China
Prior art keywords
service
isolation
resource
bulkhead
interface
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
Application number
CN202011509481.0A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011509481.0A priority Critical patent/CN112631770A/en
Publication of CN112631770A publication Critical patent/CN112631770A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3051Monitoring arrangements for monitoring the configuration of the computing system or of the computing system component, e.g. monitoring the presence of processing resources, peripherals, I/O links, software programs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a service interface resource isolation configuration method, a device and computer equipment, wherein the method comprises the following steps: the method comprises the steps of starting a service program according to a service starting instruction, carrying out isolation configuration on system resources according to a plurality of service interfaces contained in the service program, receiving a service request, inputting the service request into an isolation bulkhead of the service interface for processing, carrying out state monitoring on the isolation bulkhead to obtain state monitoring information, obtaining a resource configuration coefficient of each isolation bulkhead according to a resource adjustment analysis model and the state monitoring information, and updating and configuring the system resources of each isolation bulkhead. The invention is based on a system resource monitoring technology, belongs to the technical field of cloud monitoring, can perform isolation configuration on system resources of a management server according to service interfaces, and performs update configuration on the system resources of each isolation bulkhead according to state monitoring information in the process of processing service requests, can avoid cascade faults caused between the service interfaces, improves the distribution efficiency of the system resources, and improves the reliability of the management server.

Description

Service interface resource isolation configuration method and device and computer equipment
Technical Field
The invention relates to the technical field of cloud monitoring, belongs to an application scene of isolated configuration of system resources of a service interface in a smart city, and particularly relates to a service interface resource isolated configuration method, a service interface resource isolated configuration device and computer equipment.
Background
With the development of internet technology, more and more business handling is carried out by being transferred to the online from the offline, a client can use a client to send a service request to a management server, the management server responds and processes the service request to realize business handling, the service request can be processed by combining a plurality of service interfaces, the service interfaces share system resources, a strong dependency relationship exists among the service interfaces, if one of the service interfaces is abnormal, all the system resources are occupied by the service interface, so that other service interfaces are idle due to cascading failure, the fault tolerance and robustness of the management server are difficult to guarantee, and the reliability of the management server in processing the service request is influenced. Therefore, the management server of the prior art method has a problem of low reliability in the process of processing the service request.
Disclosure of Invention
The embodiment of the invention provides a service interface resource isolation configuration method, a device and computer equipment, aiming at solving the problem of low reliability in the process of processing a service request by a server in the prior art.
In a first aspect, an embodiment of the present invention provides a service interface resource isolation configuration method, including:
if a service starting instruction is received, starting a service program matched with the service starting instruction and carrying out isolation configuration on system resources of the management server according to the service program, wherein the service program comprises a plurality of service interfaces;
if a service request from the client is received, inputting the service request into an isolation bulkhead corresponding to the service interface for processing;
monitoring the state of each isolation bulkhead to obtain state monitoring information;
if the adjustment time point is reached, acquiring the resource configuration coefficient of each isolation bulkhead according to a preset resource adjustment analysis model and the state monitoring information, wherein the adjustment time point is a time point separated from the last adjustment time point by a preset adjustment time period;
and updating and configuring the configured system resources of each isolation bulkhead according to the resource configuration coefficient.
In a second aspect, an embodiment of the present invention provides a service interface resource isolation configuration apparatus, which includes:
the system resource isolation configuration unit is used for starting a service program matched with a service starting instruction and carrying out isolation configuration on the system resource of the management server according to the service program if the service starting instruction is received, wherein the service program comprises a plurality of service interfaces;
the service request processing unit is used for inputting the service request into the isolation bulkhead corresponding to the service interface for processing if the service request from the client is received;
the state monitoring information acquisition unit is used for performing state monitoring on each isolation bulkhead to obtain state monitoring information;
a resource allocation coefficient obtaining unit, configured to obtain a resource allocation coefficient of each of the bulkheads according to a preset resource adjustment analysis model and the state monitoring information if an adjustment time point is reached, where the adjustment time point is a time point separated from a previous adjustment time point by a preset adjustment time period;
and the system resource updating and configuring unit is used for updating and configuring the configured system resources of each isolation bulkhead according to the resource configuration coefficient.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the service interface resource isolation configuration method according to the first aspect when executing the computer program.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the service interface resource isolation configuration method according to the first aspect.
The embodiment of the invention provides a service interface resource isolation configuration method, a service interface resource isolation configuration device and computer equipment. The method comprises the steps of starting a service program according to a service starting instruction, carrying out isolation configuration on system resources according to a plurality of service interfaces contained in the service program, receiving a service request, inputting the service request into an isolation bulkhead of the service interface for processing, carrying out state monitoring on the isolation bulkhead to obtain state monitoring information, obtaining a resource configuration coefficient of each isolation bulkhead according to a resource adjustment analysis model and the state monitoring information, and updating and configuring the system resources of each isolation bulkhead. By the method, the system resources of the management server can be isolated and configured according to the service interfaces, and the system resources of each isolation bulkhead can be updated and configured according to the state monitoring information in the process of processing the service requests, so that cascading faults among the service interfaces can be avoided, the distribution efficiency and the utilization rate of the system resources are improved, and the reliability of the management server in processing the service requests is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flowchart of a service interface resource isolation configuration method according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a service interface resource isolation configuration method according to an embodiment of the present invention;
fig. 3 is a sub-flow diagram of a service interface resource isolation configuration method according to an embodiment of the present invention;
fig. 4 is another sub-flowchart of a service interface resource isolation configuration method according to an embodiment of the present invention;
fig. 5 is another sub-flowchart of a service interface resource isolation configuration method according to an embodiment of the present invention;
fig. 6 is another schematic flow chart of a service interface resource isolation configuration method according to an embodiment of the present invention;
fig. 7 is another sub-flowchart of a service interface resource isolation configuration method according to an embodiment of the present invention;
fig. 8 is another flowchart illustrating a service interface resource isolation configuration method according to an embodiment of the present invention;
FIG. 9 is a schematic block diagram of a service interface resource isolation configuration apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flowchart of a service interface resource isolation configuration method according to an embodiment of the present invention, and fig. 2 is a schematic application scenario diagram of the service interface resource isolation configuration method according to the embodiment of the present invention; the service interface resource isolation configuration method is applied to a management server 10, the service interface resource isolation configuration method is executed through application software installed in the management server 10, the management server 10 is in network connection with at least one client 20 to realize transmission of data information, and the client 20 is a terminal device, such as a desktop computer, a notebook computer, a tablet computer or a mobile phone, for sending a service request to the management server 10 for a client to perform business handling; the management server 10 is a server side for executing the service interface resource isolation configuration method to dynamically configure the system resources of the service interface while processing the service request, the management server 10 may be a server side built inside an enterprise, a user of the client 20 is a client, and a user of the management server 10 is an administrator of the enterprise. As shown in fig. 1, the method includes steps S110 to S150.
S110, if a service starting instruction is received, starting a service program matched with the service starting instruction and carrying out isolation configuration on system resources of the management server according to the service program, wherein the service program comprises a plurality of service interfaces.
And if a service starting instruction input by an administrator is received, starting a service program matched with the service starting instruction and carrying out isolation configuration on the system resources of the management server according to the service program. The service program comprises a plurality of corresponding service interfaces. The administrator can input a service starting instruction to the management server, the management server acquires a pre-stored service program matched with the service starting instruction according to the service starting instruction, the service program is started in the management server, system resources of the management server are distributed to the service program so that the service program has running conditions, and the service program runs by using the system resources and provides corresponding services for clients. Specifically, the service program includes a plurality of service interfaces, each service interface implements a specific service operation, and the plurality of service interfaces cooperate with each other to process a service request from the client.
In one embodiment, as shown in FIG. 3, step S110 includes sub-steps S111 and S112.
S111, creating an isolation bulkhead corresponding to each service interface; and S112, evenly distributing system resources which can be distributed by the management server according to the number of the isolation bulkheads, and then configuring each isolation bulkhead.
Specifically, isolation bulkheads can be created according to service interfaces, corresponding system resources are configured for each isolation bulkhead, each service interface corresponds to one isolation bulkhead, and a service instance corresponding to a service interface uses the system resources of the corresponding isolation bulkhead to complete a specific service operation. The distributable system resources are equally divided according to the number of the isolation bulkheads to obtain a plurality of corresponding system resources, each isolation bulkhead is correspondingly configured with one system resource, the isolation bulkheads are mutually independent, each isolation bulkhead can only use the system resources configured for the isolation bulkhead, and the process that the isolation bulkhead processes specific business operation cannot be influenced mutually. The system resources comprise internal threads, database connection threads, memory resources and processor resources. The internal threads are internal processing threads configured for the isolation bulkhead, the configuration number of the internal threads is the processing amount capable of simultaneously carrying out concurrent processing on specific business operations, and the more the configuration number of the internal threads is, the higher the processing amount capable of carrying out concurrent processing is; the database connection threads are threads for establishing communication connection between the isolation bulkhead and a database configured in the management server, the configuration number of the database connection threads is the connection number capable of establishing communication connection with the database at the same time, and the more the configuration number of the database connection threads is, the more the connection number capable of establishing communication connection with the database at the same time is; the Memory resources are Random Access Memory (RAM) resources configured for the isolation bulkhead, and the processor resources are computing resources of a Central Processing Unit (CPU) configured for the isolation bulkhead.
And S120, if a service request from the client is received, inputting the service request into the isolation bulkhead corresponding to the service interface for processing.
And if a service request from the client is received, inputting the service request into an isolation bulkhead corresponding to the service interface for processing according to a preset interface matching rule. A client side which establishes network connection with a management server can send a service request to the management server, one service request can carry out the service request on one service interface, and at the moment, one service interface is required to be used for processing the service request; one service request can also be made to a plurality of service interfaces at the same time, and then the service request needs to be processed by using a plurality of service interfaces.
In an embodiment, as shown in fig. 4, step S120 includes sub-steps S121, S122 and S123.
S121, determining a target service interface matched with the request type according to the request type of the service request and the interface matching rule.
Specifically, the service request includes a request type, a service interface matched with the request type may be obtained as a target service interface according to an interface matching rule, the interface matching rule is a specific rule that records a matching relationship between the request type and the service interface and is stored in the management server in advance, a matching relationship exists between each request type and a corresponding service interface, a target service interface matched with the request type may be obtained according to the matching relationship, and the number of the target service interfaces may be one or more.
S122, generating an interface processing request matched with the service request according to a target service interface; and S123, inputting the interface processing request into the isolation bulkhead matched with the target service interface for processing.
Generating an interface processing request matched with the service request according to the target service interface, wherein the interface processing request is a processing request for realizing specific service operation obtained after splitting the service request, one interface processing request corresponds to one specific service operation, one target service interface corresponds to one isolation bulkhead, the obtained interface processing request is input into the isolation bulkhead matched with the target service interface, and the service instance of the target service interface calls system resources configured by the corresponding isolation bulkhead to process the received interface processing request.
And S130, monitoring the state of each isolation bulkhead to obtain state monitoring information.
And monitoring the state of each isolation bulkhead to obtain state monitoring information. The operation state of each isolation bulkhead can change in the process of processing the interface processing request, the isolation bulkhead can be monitored, and state monitoring information containing each isolation bulkhead is obtained, specifically, the state monitoring information contains interface request statistical information and resource ratio information.
In one embodiment, as shown in fig. 5, step S130 includes sub-steps S131 and S132.
S131, counting the interface processing requests received by each isolation bulkhead to obtain interface request statistical information; s132, monitoring the system resources occupied by each isolation bulkhead in real time to obtain resource proportion information.
The interface request statistical information is statistical information obtained by counting the interface processing requests received by each isolation bulkhead, the interface request statistical information comprises the receiving time of the isolation bulkhead for receiving the interface processing requests and the processing delay for processing each interface processing request, and the processing delay is the interval time between the isolation bulkhead for receiving the interface processing requests and feeding back the processing results; and monitoring the occupation condition of the system resources configured for each isolation bulkhead in real time to obtain resource occupation ratio information, wherein the system resources configured for the isolation bulkheads comprise internal threads, database connection threads, memory resources and processor resources, and the obtained resource occupation ratio information comprises the internal thread occupation ratio, the database thread occupation ratio, the memory occupation ratio and the processor resource occupation ratio of each isolation bulkhead.
In an embodiment, as shown in fig. 6, step S130 is followed by steps S1301, S1302, and S1303.
S1301, judging whether the running state of each isolation bulkhead exceeds a preset state threshold value in real time according to the state monitoring information; s1302, if the operation state of the isolation bulkhead exceeds the state threshold value, releasing the system resources configured by the isolation bulkhead; and S1303, generating the isolation bulkhead corresponding to the released service interface of the isolation bulkhead again and reconfiguring system resources.
Specifically, a preset state threshold value can be set, whether the operating state of each isolation bulkhead exceeds the state threshold value is judged in real time, if the operating state of each isolation bulkhead exceeds the state threshold value, it is indicated that the service interface corresponding to the isolation bulkhead is abnormal at this time, the system resources configured for the isolation bulkhead of the service interface need to be actively released to relieve the pressure of the management server, the isolation bulkhead corresponding to the service interface is produced again, and a system resource is configured for the isolation bulkhead again according to the system resources released by the isolation bulkhead. The state threshold value may include a processing delay threshold value, an internal thread proportion threshold value, a database thread proportion threshold value, a memory proportion threshold value, and a processing resource proportion threshold value, and if the item monitoring information of the isolation bulkhead exceeds any one of the above threshold values, it may be determined that the operating state of the isolation bulkhead exceeds the state threshold value, and an operation of actively releasing system resources is triggered. And if the operating state of the isolation bulkhead does not exceed the state threshold value, continuing to monitor the operating state of the isolation bulkhead.
For example, the processing delay threshold may be set to 500ms, and the internal thread utilization threshold, the database thread utilization threshold, the memory utilization threshold, and the processing resource utilization threshold may all be set to 95%.
And S140, if the adjustment time point is reached, acquiring the resource allocation coefficient of each isolation bulkhead according to a preset resource adjustment analysis model and the state monitoring information, wherein the adjustment time point is a time point separated from the last adjustment time point by a preset adjustment time period.
And if the adjustment time point is reached, acquiring the resource configuration coefficient of each isolation bulkhead according to a preset resource adjustment analysis model and the state monitoring information, wherein the state monitoring information comprises interface request statistical information and resource proportion information. The adjustment time point is a time point obtained by calculating according to a previous adjustment time point and a preset adjustment time period, the adjustment time period can be configured in advance by an administrator, and if the management server acquires the resource configuration coefficient of each isolation bulkhead for the first time, the previous adjustment time point can be a time point for starting the service program. The method can obtain model input information of each isolation bulkhead according to the state monitoring information, input the model input information into the resource adjustment analysis model to obtain a corresponding adjustment coefficient, and calculate and obtain a corresponding resource configuration coefficient based on the adjustment coefficient and the interface processing request ratio received by each isolation bulkhead.
In an embodiment, as shown in fig. 7, step S140 includes sub-steps S141, S142 and S143.
And S141, calculating model input information of each isolation bulkhead according to a preset input calculation formula and the state monitoring information.
And calculating the data information of each isolation bulkhead in the state monitoring information according to a preset input calculation formula to obtain model input information of the isolation bulkhead, wherein the model input information can represent the characteristics of the operating state of the corresponding isolation bulkhead. The obtained model input information of each isolation bulkhead comprises a plurality of numerical values, and each numerical value corresponds to one proportional value of the isolation bulkhead in the resource proportion information.
For example, the input calculation formula may be f (r)i)=(t×ri) /500 wherein riThe value is the average value of the ith proportional value of any isolation bulkhead in the resource proportion information, and t is the average processing delay of the corresponding isolation bulkhead in the interface request statistical information.
And S142, inputting the model input information of each isolation bulkhead into the resource adjustment analysis model to obtain the adjustment coefficient of each isolation bulkhead.
The resource adjustment analysis model is an intelligent analysis model constructed based on a neural network, and consists of an input layer, a plurality of intermediate layers and an output layer, wherein the input layer and the intermediate layers, the intermediate layers and other intermediate layers adjacent to each other in front and back, and the intermediate layers and the output layer are all associated through association formulas, for example, a certain association formula can be expressed as y ═ p × x + q, and p and q are parameter values in the association formulas. The number of input nodes contained in the input layer is equal to the number of values in a piece of model input information, each value in the model input information corresponds to one input node, the model input information of each isolation bulkhead is respectively input into the resource adjustment analysis model for intelligent analysis, namely, an input node value can be obtained from the output layer, the output node value is an adjustment coefficient corresponding to the model input information, each model input information corresponds to one adjustment coefficient, the obtained adjustment coefficient has a value larger than zero, and the adjustment coefficient can be used for quantitatively representing the factors of difference of system resources consumed by processing an interface processing request corresponding to the adjustment coefficient by different service interfaces. Before the resource adjustment analysis model is used for intelligently analyzing the model input information, iterative training can be carried out on the resource adjustment analysis model through a gradient descent training rule, and the trained resource adjustment analysis model is obtained and used.
And S143, multiplying the ratio of the interface processing request received by each isolation bulkhead in the state monitoring information in the adjustment time period by the corresponding adjustment coefficient to obtain the resource configuration coefficient of each isolation bulkhead.
And acquiring the number of interface processing requests received by each isolation bulkhead in the adjustment time period according to the interface request statistical information in the state monitoring information, and calculating to obtain the corresponding interface processing request ratio based on the number of the interface processing requests of each isolation bulkhead. Because the system resources consumed by each service interface for processing one interface processing request are not equal, the ratio of the interface processing requests received by each isolation bulkhead to the system resources configured for correspondingly adjusting the isolation bulkhead is not accurate, and the adjustment coefficient of each isolation bulkhead is combined with the ratio of the interface processing requests received by each isolation bulkhead to the system resources configured for correspondingly adjusting the isolation bulkhead, so that the adjustment of the system resources is more accurate. Specifically, the interface request statistical information includes the receiving time of each partition wall for receiving the interface processing request, and the interface processing requests in the adjustment time period can be obtained according to the receiving time, the number of the interface processing requests received by each partition wall is counted, and the interface processing request ratio is further calculated. And multiplying the interface processing request proportion of each isolation bulkhead by the adjusting coefficient corresponding to each interface processing request to obtain the resource configuration coefficient of each isolation bulkhead.
In one embodiment, as shown in fig. 8, step S140 is followed by steps S1401 and S1402.
S1401, obtaining the quantity information of the service requests received by the management server in the adjustment time period and judging whether the quantity information meets a preset time period adjustment rule; s1402, if the quantity information meets the time period adjusting rule, adjusting the adjusting time period according to the time period adjusting rule.
After the administrator configures the adjustment time period, the administrator can intelligently adjust the duration of the adjustment time period based on the time period adjustment rule. Specifically, acquiring quantity information of service requests received by the management server in an adjustment time period, and judging whether the quantity information is acquired for the first time or not, wherein if the quantity information is acquired for the first time, the adjustment time period is not adjusted; if the quantity information is not acquired for the first time, judging whether the quantity ratio of the quantity information to the previous quantity information accords with an adjustment interval in a time interval adjustment rule, and if the quantity ratio accords with the adjustment interval, adjusting the adjustment time interval according to the adjustment rule of the corresponding adjustment interval; and if the quantity ratio does not accord with the adjustment interval, not adjusting the adjustment time period.
For example, the time period adjustment rule includes three adjustment intervals: [0,0.5]、[0.85,1.15]1.5, + ∞) if the quantitative ratio matches the first or third adjustment interval, then according to the formula Tz=TdAdjusting the adjustment time period, wherein TzFor a new adjustment period, TdAdjusting the time period for the original; if the quantity ratio value is in accordance with the second adjustment interval, then according to the formula Tz=TdX 2 adjusting the adjustment time period, wherein TzIs a new keyWhole period of time, TdThe time period is adjusted for the original.
And S150, updating and configuring the configured system resources of each isolation bulkhead according to the resource configuration coefficient.
And updating and configuring the configured system resources of each isolation bulkhead according to the resource configuration coefficient. Specifically, in the process of actually running the service program, if there is a surplus of system resources configured by a part of the isolation bulkheads and none of the system resources currently configured by the part of the isolation bulkheads can meet the existing use requirements, all the system resources configured by the isolation bulkheads can be reallocated according to the resource configuration coefficient, and the adjustment of internal threads, database connection threads, memory resources and processor resources is involved in the process of updating the system resources configured by the isolation bulkheads.
Specifically, the distributable system resources of the management server are obtained, the system resource allocation ratio of each isolation bulkhead is calculated according to the resource allocation coefficients of all the isolation bulkheads, and the distributable system resources of the management server are redistributed according to the system resource allocation ratio, so that the system resources allocated to each isolation bulkhead are updated.
For example, the bulkhead G1Isolation bulkhead G2Isolation bulkhead G3And an isolation bulkhead G4The resource allocation coefficients of (a) are respectively 0.13, 0.66, 0.35 and 0.27; the system resource allocation ratios obtained through calculation are respectively 9.2%, 46.8%, 24.8% and 19.1%, and the system resources of the four isolation bulkheads are updated according to the system resource allocation ratios.
The technical method can be applied to application scenes including isolation and configuration of system resources of service interfaces, such as intelligent government affairs, intelligent city management, intelligent community, intelligent security protection, intelligent logistics, intelligent medical treatment, intelligent education, intelligent environmental protection and intelligent traffic, so that the construction of the intelligent city is promoted.
In the service interface resource isolation configuration method provided in the embodiment of the present invention, a service program is started according to a service start instruction, system resources are isolated and configured according to a plurality of service interfaces included in the service program, a service request is received and input to an isolation bulkhead of the service interface for processing, status monitoring is performed on the isolation bulkhead to obtain status monitoring information, a resource configuration coefficient of each isolation bulkhead is obtained according to a resource adjustment analysis model and the status monitoring information, and the system resources configured for each isolation bulkhead are updated. By the method, the system resources of the management server can be isolated and configured according to the service interfaces, and the system resources of each isolation bulkhead can be updated and configured according to the state monitoring information in the process of processing the service requests, so that cascading faults among the service interfaces can be avoided, the distribution efficiency and the utilization rate of the system resources are improved, and the reliability of the management server in processing the service requests is improved.
The embodiment of the invention also provides a service interface resource isolation configuration device, which is used for executing any embodiment of the service interface resource isolation configuration method. Specifically, referring to fig. 9, fig. 9 is a schematic block diagram of a service interface resource isolation configuration apparatus according to an embodiment of the present invention. The service interface resource isolation configuration means may be configured in the management server 10.
As shown in fig. 9, the service interface resource isolation configuration 100 includes: a system resource isolation configuration unit 110, a service request processing unit 120, a status monitoring information obtaining unit 130, a resource configuration coefficient obtaining unit 140, and a system resource update configuration unit 150.
The system resource isolation configuration unit 110 is configured to, if a service start instruction is received, start a service program matched with the service start instruction and perform isolation configuration on the system resource of the management server according to the service program, where the service program includes a plurality of service interfaces.
In one embodiment, the system resource isolation configuration unit 110 includes sub-units: an isolation bulkhead creating unit and a resource configuration unit.
The isolation bulkhead creating unit is used for creating an isolation bulkhead corresponding to each service interface; and the resource configuration unit is used for evenly dividing the system resources which can be distributed by the management server according to the number of the isolation bulkheads and then configuring each isolation bulkhead.
The service request processing unit 120 is configured to, if a service request from the client is received, input the service request into an isolation bulkhead corresponding to the service interface for processing.
In an embodiment, the service request processing unit 120 comprises sub-units: the device comprises a target service interface determining unit, an interface processing request generating unit and an interface processing request processing unit.
The target service interface determining unit is used for determining a target service interface matched with the request type according to the request type of the service request and the interface matching rule; the interface processing request generating unit is used for generating an interface processing request matched with the service request according to a target service interface; and the interface processing request processing unit is used for inputting the interface processing request into the isolation bulkhead matched with the target service interface for processing.
And a condition monitoring information obtaining unit 130, configured to perform condition monitoring on each of the bulkheads to obtain condition monitoring information.
In an embodiment, the status monitoring information obtaining unit 130 includes sub-units: the device comprises an interface request statistical information acquisition unit and a resource occupation ratio information acquisition unit.
The interface request statistical information acquisition unit is used for counting the interface processing requests received by each isolation bulkhead to obtain interface request statistical information; and the resource proportion information acquisition unit is used for monitoring the system resources occupied by each isolation bulkhead in real time to obtain the resource proportion information.
In an embodiment, the service interface resource isolation configuration apparatus 100 further includes a sub-unit: the system comprises an operation state judgment unit, a system resource release unit and a system resource reconfiguration unit.
The running state judging unit is used for judging whether the running state of each isolation bulkhead exceeds a preset state threshold value in real time according to the state monitoring information; the system resource releasing unit is used for releasing the system resources configured by the isolation bulkhead if the operating state of the isolation bulkhead exceeds the state threshold; and the system resource reconfiguration unit is used for generating the isolation bulkhead corresponding to the service interface of the released isolation bulkhead again and reconfiguring the system resource.
A resource allocation coefficient obtaining unit 140, configured to obtain a resource allocation coefficient of each of the bulkheads according to a preset resource adjustment analysis model and the state monitoring information if an adjustment time point is reached, where the adjustment time point is a time point separated from a previous adjustment time point by a preset adjustment time period.
In an embodiment, the resource allocation coefficient obtaining unit 140 includes sub-units: the device comprises a model input information acquisition unit, an adjustment coefficient acquisition unit and a resource configuration coefficient calculation unit.
The model input information acquisition unit is used for calculating the model input information of each isolation bulkhead according to a preset input calculation formula and the state monitoring information; the adjustment coefficient acquisition unit is used for inputting the model input information of each isolation bulkhead into the resource adjustment analysis model to obtain the adjustment coefficient of each isolation bulkhead; and the resource allocation coefficient calculation unit is used for multiplying the interface processing request ratio received by each isolation bulkhead in the state monitoring information in the adjustment time period by the corresponding adjustment coefficient to obtain the resource allocation coefficient of each isolation bulkhead.
In an embodiment, the service interface resource isolation configuration apparatus 100 further includes a sub-unit: a quantity information judging unit and a time period adjusting unit.
A quantity information judging unit, configured to acquire quantity information of the service request received by the management server in the adjustment time period and judge whether the quantity information satisfies a preset time period adjustment rule; and the time period adjusting unit is used for adjusting the adjusting time period according to the time period adjusting rule if the quantity information meets the time period adjusting rule.
And the system resource updating and configuring unit 150 is configured to update and configure the configured system resources of each of the isolation bulkheads according to the resource configuration coefficients.
The service interface resource isolation configuration device provided in the embodiment of the present invention applies the service interface resource isolation configuration method, starts a service program according to a service start instruction, performs isolation configuration on system resources according to a plurality of service interfaces included in the service program, receives a service request, inputs the service request into an isolation bulkhead of the service interface for processing, performs state monitoring on the isolation bulkhead to obtain state monitoring information, obtains a resource configuration coefficient of each isolation bulkhead according to a resource adjustment analysis model and the state monitoring information, and updates and configures the system resources of each isolation bulkhead. By the method, the system resources of the management server can be isolated and configured according to the service interfaces, and the system resources of each isolation bulkhead can be updated and configured according to the state monitoring information in the process of processing the service requests, so that cascading faults among the service interfaces can be avoided, the distribution efficiency and the utilization rate of the system resources are improved, and the reliability of the management server in processing the service requests is improved.
The service interface resource isolation configuration means may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a management server 10 for performing a service interface resource isolation configuration method for isolation configuration of system resources of a service interface.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032, when executed, cause the processor 502 to perform a service interface resource isolation configuration method.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute the service interface resource isolation configuration method.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run a computer program 5032 stored in the memory to implement the corresponding functions in the service interface resource isolation configuration method.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 10 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 10, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps included in the service interface resource isolation configuration method described above.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A service interface resource isolation configuration method is applied to a management server, the management server and at least one client side transmit data information through network connection, and the method is characterized by comprising the following steps:
if a service starting instruction is received, starting a service program matched with the service starting instruction and carrying out isolation configuration on system resources of the management server according to the service program, wherein the service program comprises a plurality of service interfaces;
if a service request from the client is received, inputting the service request into an isolation bulkhead corresponding to the service interface for processing;
monitoring the state of each isolation bulkhead to obtain state monitoring information;
if the adjustment time point is reached, acquiring the resource configuration coefficient of each isolation bulkhead according to a preset resource adjustment analysis model and the state monitoring information, wherein the adjustment time point is a time point separated from the last adjustment time point by a preset adjustment time period;
and updating and configuring the configured system resources of each isolation bulkhead according to the resource configuration coefficient.
2. The method for isolated configuration of service interface resources according to claim 1, wherein the starting a service program matching the service starting instruction and performing isolated configuration of the system resources of the management server according to the service program comprises:
creating an isolation bulkhead corresponding to each of the service interfaces;
and after the system resources which can be distributed by the management server are evenly distributed according to the number of the isolation bulkheads, each isolation bulkhead is configured.
3. The method for configuring service interface resource isolation according to claim 1, wherein the inputting the service request into the isolation bulkhead corresponding to the service interface according to a preset interface matching rule for processing comprises:
determining a target service interface matched with the request type according to the request type of the service request and the interface matching rule;
generating an interface processing request matched with the service request according to a target service interface;
and inputting the interface processing request into an isolation bulkhead matched with the target service interface for processing.
4. The isolated configuration method for service interface resources as recited in claim 1, wherein the monitoring the status of each of the isolated bulkheads to obtain status monitoring information comprises:
counting the interface processing requests received by each isolation bulkhead to obtain interface request statistical information;
and monitoring system resources occupied by each isolation bulkhead in real time to obtain resource proportion information.
5. The isolated configuration method for service interface resources as recited in claim 1, wherein after the status monitoring information is obtained by the status monitoring of each of the isolated bulkheads, the method further comprises:
judging whether the running state of each isolation bulkhead exceeds a preset state threshold value in real time according to the state monitoring information;
if the operation state of the isolation bulkhead exceeds the state threshold value, releasing the system resources configured by the isolation bulkhead;
generating again the bulkhead corresponding to the released service interface of the bulkhead and reconfiguring system resources.
6. The method as claimed in claim 1, wherein the obtaining the resource allocation coefficient of each of the isolation bulkheads according to the preset resource adjustment analysis model and the status monitoring information comprises:
calculating model input information of each isolation bulkhead according to a preset input calculation formula and the state monitoring information;
inputting the model input information of each isolation bulkhead into the resource adjustment analysis model to obtain an adjustment coefficient of each isolation bulkhead;
and multiplying the ratio of interface processing requests received by each isolation bulkhead in the state monitoring information in the adjusting time period by the corresponding adjusting coefficient to obtain the resource configuration coefficient of each isolation bulkhead.
7. The method for isolated configuration of service interface resources according to claim 1, wherein after obtaining the resource configuration coefficients of each of the isolation bulkheads according to the preset resource adjustment analysis model and the status monitoring information, the method further comprises:
acquiring quantity information of the service requests received by the management server in the adjustment time period and judging whether the quantity information meets a preset time period adjustment rule or not;
and if the quantity information meets the time period adjusting rule, adjusting the adjusting time period according to the time period adjusting rule.
8. A service interface resource isolation configuration apparatus, comprising:
the system resource isolation configuration unit is used for starting a service program matched with a service starting instruction and carrying out isolation configuration on the system resource of the management server according to the service program if the service starting instruction is received, wherein the service program comprises a plurality of service interfaces;
the service request processing unit is used for inputting the service request into the isolation bulkhead corresponding to the service interface for processing if the service request from the client is received;
the state monitoring information acquisition unit is used for performing state monitoring on each isolation bulkhead to obtain state monitoring information;
a resource allocation coefficient obtaining unit, configured to obtain a resource allocation coefficient of each of the bulkheads according to a preset resource adjustment analysis model and the state monitoring information if an adjustment time point is reached, where the adjustment time point is a time point separated from a previous adjustment time point by a preset adjustment time period;
and the system resource updating and configuring unit is used for updating and configuring the configured system resources of each isolation bulkhead according to the resource configuration coefficient.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the service interface resource isolation configuration method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to carry out the service interface resource isolation configuration method according to any one of claims 1 to 7.
CN202011509481.0A 2020-12-18 2020-12-18 Service interface resource isolation configuration method and device and computer equipment Pending CN112631770A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011509481.0A CN112631770A (en) 2020-12-18 2020-12-18 Service interface resource isolation configuration method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011509481.0A CN112631770A (en) 2020-12-18 2020-12-18 Service interface resource isolation configuration method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN112631770A true CN112631770A (en) 2021-04-09

Family

ID=75317538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011509481.0A Pending CN112631770A (en) 2020-12-18 2020-12-18 Service interface resource isolation configuration method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN112631770A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116720179A (en) * 2023-08-07 2023-09-08 深圳市智慧城市科技发展集团有限公司 API interface management method, terminal device and computer readable storage medium
WO2023173199A1 (en) * 2022-03-16 2023-09-21 Shopify Inc. Dual stage bulkheads

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904942A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Service resource control system and service resource control method
CN105335231A (en) * 2014-08-15 2016-02-17 阿里巴巴集团控股有限公司 Dynamic distribution method and device for server threads
CN106776099A (en) * 2017-01-11 2017-05-31 北京皮尔布莱尼软件有限公司 One kind service fusing shielding system and method
CN109343955A (en) * 2018-09-14 2019-02-15 网易无尾熊(杭州)科技有限公司 Recommendation service call method, medium, device and calculating equipment
US20190387058A1 (en) * 2018-06-15 2019-12-19 Good2Go, Inc. System and method for enabling access to resources

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102904942A (en) * 2012-09-28 2013-01-30 用友软件股份有限公司 Service resource control system and service resource control method
CN105335231A (en) * 2014-08-15 2016-02-17 阿里巴巴集团控股有限公司 Dynamic distribution method and device for server threads
CN106776099A (en) * 2017-01-11 2017-05-31 北京皮尔布莱尼软件有限公司 One kind service fusing shielding system and method
US20190387058A1 (en) * 2018-06-15 2019-12-19 Good2Go, Inc. System and method for enabling access to resources
CN109343955A (en) * 2018-09-14 2019-02-15 网易无尾熊(杭州)科技有限公司 Recommendation service call method, medium, device and calculating equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佟业新 等: "微服务架构中的服务质量保障研究", 《计算机系统应用》, vol. 28, no. 11, pages 271 - 275 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023173199A1 (en) * 2022-03-16 2023-09-21 Shopify Inc. Dual stage bulkheads
CN116720179A (en) * 2023-08-07 2023-09-08 深圳市智慧城市科技发展集团有限公司 API interface management method, terminal device and computer readable storage medium
CN116720179B (en) * 2023-08-07 2023-11-03 深圳市智慧城市科技发展集团有限公司 API interface management method, terminal device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US8719297B2 (en) System for managing data collection processes
Poullie et al. A survey of the state-of-the-art in fair multi-resource allocations for data centers
WO2018176385A1 (en) System and method for network slicing for service-oriented networks
CN109660367B (en) Consensus achieving method and device based on improved Raft algorithm and electronic equipment
CN112631770A (en) Service interface resource isolation configuration method and device and computer equipment
US10628766B2 (en) Method and system for enabling dynamic capacity planning
WO2016201160A1 (en) Computing resource deployment system
CN107707378B (en) A kind of CDN covering scheme generation method and device
CN112416590A (en) Server system resource adjusting method and device, computer equipment and storage medium
CN116708451B (en) Edge cloud cooperative scheduling method and system
CN114896068A (en) Resource allocation method, resource allocation device, electronic device, and storage medium
US10848574B2 (en) Computing resource management system
CN113485833B (en) Resource prediction method and device
CN112001563B (en) Method and device for managing ticket quantity, electronic equipment and storage medium
CN113608751A (en) Operation method, device and equipment of reasoning service platform and storage medium
CN113347249A (en) Operation loading method, device and equipment
CN112860421B (en) Method, apparatus and computer program product for job processing
CN111131375B (en) Interface service acquisition method, device, computer equipment and storage medium
CN112631680A (en) Micro-service container scheduling system, method, device and computer equipment
CN111475251A (en) Cluster container scheduling method, system, terminal and storage medium
CN110442455A (en) A kind of data processing method and device
CN115964182A (en) Resource scheduling method and system
Souidi et al. An adaptive real time mechanism for IaaS cloud provider selection based on QoE aspects
CN115827178A (en) Edge calculation task allocation method and device, computer equipment and related medium
CN108829516A (en) A kind of graphics processor resource virtualizing dispatching method

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