CN109040156B - Soft load resource processing method and device based on container cloud - Google Patents

Soft load resource processing method and device based on container cloud Download PDF

Info

Publication number
CN109040156B
CN109040156B CN201710428727.3A CN201710428727A CN109040156B CN 109040156 B CN109040156 B CN 109040156B CN 201710428727 A CN201710428727 A CN 201710428727A CN 109040156 B CN109040156 B CN 109040156B
Authority
CN
China
Prior art keywords
queue
soft load
mutation
soft
mutation factor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710428727.3A
Other languages
Chinese (zh)
Other versions
CN109040156A (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.)
China Mobile Zhejiang Innovation Research Institute Co ltd
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201710428727.3A priority Critical patent/CN109040156B/en
Publication of CN109040156A publication Critical patent/CN109040156A/en
Application granted granted Critical
Publication of CN109040156B publication Critical patent/CN109040156B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a soft load resource processing method and device based on a container cloud. The method comprises the following steps: acquiring soft load queue lengths of a soft load resource pool at multiple moments, wherein the soft load queue lengths at the multiple moments at least comprise the soft load queue length at the current moment; acquiring queue mutation information according to the soft load queue lengths at the multiple moments; and processing the soft load resources by taking the soft load container as a unit according to the queue mutation information. The embodiment of the invention is based on a containerization technology, integrates bottom resources, and shares resources with soft load service and application service, thereby improving the resource utilization rate; the containerized soft load service overcomes the defect that the soft load service cannot be rapidly deployed in the prior art, automatically performs dynamic capacity expansion or capacity reduction on soft load resources by taking a soft load container as a unit, and reduces service interruption caused by high concurrent high flow or burst flow of a system.

Description

Soft load resource processing method and device based on container cloud
Technical Field
The invention relates to the technical field of load balancing, in particular to a soft load resource processing method and device based on a container cloud.
Background
With the rapid development of internet and cloud computing technologies, web applications based on virtualization are the most important and widespread applications at present. At present, the information exchange amount based on web application is exponentially increased, an application server faces the pressure of sharply increased access amount, extremely high requirements are brought to the response capacity and the processing capacity of the application server, therefore, various resources of a data center need to be effectively integrated, and the resource control and scheduling of the data center play a decisive role in the normal operation of business.
Due to the objectively existing factors of the server memory, the CPU processing speed and other related aspects, when service expansion, hot spot activity push-out or periodic service peaks are performed, the soft load server cannot process all requests in time, which inevitably causes the situations of soft load queue blockage, slow response, request loss, even service inaccessibility, and the like. In a high concurrent high-traffic peak period, the prior art manually expands the soft load according to a certain strategy, manually expands the soft load by taking a virtual machine as a unit when performing traffic expansion, hot spot activity push-out or periodic traffic peak, and manually recovers the soft load by taking the virtual machine as a unit when the hot spot activity is finished or the traffic peak returns to normal. In the prior art, the soft load is manually expanded and recovered according to experience, and meanwhile, the requirement of soft load resources cannot be quickly responded on the basis of a virtual machine, so that unstable service access is caused.
Specifically, as shown in fig. 1, when a user performs a large concurrent access to an application system, a principle of an existing soft load resource processing method is that first, hard load balancing is performed through a hard load or an LVS, and meanwhile, a soft load is accessed to ensure normal access of a service. The data center can manually deploy the data center soft load server in advance by taking a virtual machine as a unit by operation and maintenance personnel according to the current use pressure condition of the soft load and the historical experience of operation and maintenance. Therefore, the problems that the soft load pressure is too large to cause downtime and the like due to too large access amount of the service deployed in the data center can be avoided to some extent.
Typically, service access to a data center will fail in several cases: 1) when the service access amount suddenly increases, the soft load in the prior art adopts a virtual machine mode, the deployment period is long, the flexibility is poor, and the soft load requirement cannot be responded in time; 2) in the two cases, the general traffic generally lacks an empirical value or is difficult to predict in the early stage according to the empirical value, and meanwhile, the prediction cannot be made according to the resource use condition of the current soft load; 3) generally, there are many factors affecting normal access of a service, and various resource shortages caused by various factors affect normal operation and access of the service, so that the on-line service cannot be normally provided for a user to access. In the event of a serious failure, it will result in most users not having access to the business system, which is unacceptable for large or core systems.
Disclosure of Invention
The embodiment of the invention provides a container cloud-based soft load resource processing method and device, which are used for solving the problems of complex resource deployment and resource waste caused by manual resource expansion and contraction by taking a virtual machine as a unit in the conventional soft load resource processing method.
The embodiment of the invention provides a soft load resource processing method based on a container cloud, which comprises the following steps:
acquiring soft load queue lengths of a soft load resource pool at multiple moments, wherein the soft load queue lengths at the multiple moments at least comprise the soft load queue length at the current moment;
acquiring queue mutation information according to the soft load queue lengths at the multiple moments;
and processing the soft load resources by taking the soft load container as a unit according to the queue mutation information.
Optionally, obtaining queue sudden change information according to the soft load queue lengths at the multiple times includes:
acquiring a first queue mutation factor and a second queue mutation factor according to the soft load queue lengths at the multiple moments, wherein the first queue mutation factor is a queue mutation factor before the current moment, and the second queue mutation factor is a queue mutation factor including the current moment;
and acquiring queue mutation information according to the difference value of the first queue mutation factor and the second queue mutation factor.
Optionally, the first queue mutation factor is obtained according to the following formula:
Figure BDA0001316854870000031
obtaining the second queue mutation factor according to the following formula:
Figure BDA0001316854870000032
wherein ε 1 represents a first cohort mutation factor and ε 2 represents a second cohort mutation factor; n represents the number of the obtained soft load queue lengths; x represents the soft load queue length at the current time, xiRepresenting the soft load queue length at a difference i from the current time.
Optionally, the processing the soft load resource by using the soft load container as a unit according to the queue sudden change information includes:
if the difference between the second queue mutation factor and the second queue mutation factor is larger than a first preset threshold value, carrying out capacity expansion on the soft load resource by taking a soft load container as a unit;
if the difference between the first queue mutation factor and the second queue mutation factor is larger than a first preset threshold value, carrying out capacity reduction on the soft load resource by taking a soft load container as a unit;
optionally, when the absolute value of the difference between the first queue mutation factor and the second queue mutation factor is smaller than a first preset threshold, the method further comprises:
acquiring a weight value of resource processing according to the length, the concurrency quantity and the response time of the soft load queue at the current moment;
if the weight value of the resource processing is larger than a second preset threshold value, carrying out capacity expansion on the soft load resource by taking a soft load container as a unit;
and if the weight value of the resource processing is smaller than a third preset threshold value, carrying out capacity reduction on the soft load resource by taking a soft load container as a unit.
Optionally, the obtaining a weight value of resource processing according to the soft load queue length, the concurrency amount, and the response time at the current time includes:
respectively acquiring a degree coefficient of the soft load queue length, a degree coefficient of the concurrency amount and a degree coefficient of the response time at the current moment according to the concurrency amount and the response time of the soft load queue length at the current moment;
and acquiring a weight value of resource processing according to the degree coefficient of the soft load queue length at the current moment, the degree coefficient of the concurrency quantity and the degree coefficient of the response time.
The embodiment of the invention provides a soft load resource processing device based on a container cloud, which comprises:
a soft load queue length obtaining unit, configured to obtain soft load queue lengths at multiple times of a soft load resource pool, where the soft load queue lengths at the multiple times at least include a soft load queue length at a current time;
a queue mutation information obtaining unit, configured to obtain queue mutation information according to the soft load queue lengths at the multiple times;
and the processing unit is used for processing the soft load resources by taking the soft load container as a unit according to the queue mutation information.
Optionally, the queue mutation information obtaining unit includes:
a queue mutation factor obtaining module, configured to obtain a first queue mutation factor and a second queue mutation factor according to the soft load queue lengths at the multiple times, where the first queue mutation factor is a queue mutation factor before the current time, and the second queue mutation factor is a queue mutation factor including the current time;
and the queue mutation information acquisition module is used for acquiring queue mutation information according to the difference value of the first queue mutation factor and the second queue mutation factor.
An embodiment of the present invention provides an electronic device, including: a processor, a memory, and a bus; wherein the content of the first and second substances,
the processor and the memory complete mutual communication through the bus;
the processor is used for calling the program instructions in the memory to execute the container cloud-based soft load resource processing method.
Embodiments of the present invention provide a non-transitory computer readable storage medium, which stores computer instructions, where the computer instructions cause the computer to execute the above container cloud-based soft load resource processing method.
According to the soft load resource processing method and device based on the container cloud, provided by the embodiment of the invention, the soft load queue lengths of a soft load resource pool at multiple moments are obtained, wherein the soft load queue lengths at the multiple moments at least comprise the soft load queue length at the current moment; acquiring queue mutation information according to the soft load queue lengths at the multiple moments; and processing the soft load resources by taking the soft load container as a unit according to the queue mutation information. The embodiment of the invention is based on a containerization technology, integrates bottom resources, and shares resources with soft load service and application service, thereby improving the resource utilization rate; the containerized soft load service overcomes the defect that the soft load service cannot be rapidly deployed in the prior art, automatically performs dynamic capacity expansion or capacity reduction on soft load resources by taking a soft load container as a unit, and reduces service interruption caused by high concurrent high flow or burst flow of a system.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic diagram of a prior art soft load resource handling method;
FIG. 2 is a schematic flow chart of a container cloud-based soft load resource processing method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a container cloud based soft load resource handling method according to an embodiment of the invention;
FIG. 4 is a schematic structural diagram of a container cloud-based soft load resource processing apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, 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, but 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.
In the prior art, although the soft load resources can be manually scheduled through operation and maintenance experience and the use conditions of a CPU, a memory and the like of the soft load server to ensure normal access to the service, in most cases, it is difficult to predict the concurrent request amount of the service and the quick response to the service demand, which causes that the soft load resources cannot be dynamically expanded and contracted in time, resulting in failure of service access of the data center and failure of normal service resources to be fully utilized.
In the prior art, the soft load balancing elastic expansion capability is weak, the deployment mode is constructed by taking a virtual machine as a unit, the expansion process is complex, and the deployment time is long. When the traffic volume suddenly increases, rapid deployment expansion and dynamic scheduling cannot be carried out, so that service faults are caused, meanwhile, the soft load balance cannot be automatically reduced, and certain reservation and waste of system resources exist.
Fig. 2 is a schematic flow chart of a container cloud-based soft load resource processing method according to an embodiment of the present invention.
It should be noted that the container cloud encapsulates the entire software runtime environment by using the container as a basic unit for resource partitioning and scheduling, and provides a platform for building, publishing, and running the distributed application.
As shown in fig. 2, the method of this embodiment includes:
s21: acquiring soft load queue lengths of a soft load resource pool at multiple moments, wherein the soft load queue lengths at the multiple moments at least comprise the soft load queue length at the current moment;
it should be noted that the soft load resource pool according to the embodiment of the present invention includes a plurality of soft load containers, and each soft load container (as shown in fig. 3) runs a soft load service. The soft load queue stores the concurrent requests to be processed, and the number of the concurrent requests to be processed is the length of the soft load queue.
In practical application, the host Master node obtains the soft load queue length at multiple moments through the performance of the data center soft load resource pool and the log data.
S22: acquiring queue mutation information according to the soft load queue lengths at the multiple moments;
it can be understood that if there is a large difference between the current time and the previous time period in the length of the soft load queue, which indicates that the traffic request amount changes greatly, the capacity of the soft load needs to be expanded or reduced. Therefore, the embodiment of the invention obtains the queue mutation information through the soft load queue length at multiple moments, and can dynamically expand or reduce the capacity of the soft load resource through the queue mutation information.
S23: processing the soft load resources by taking the soft load container as a unit according to the queue mutation information;
understandably, the processing procedure of the soft load resource comprises the capacity expansion and the capacity reduction of the soft load resource; the expansion of the soft load resource refers to increasing the soft load container, and the contraction of the soft load resource refers to decreasing the soft load container.
In practical application, if elastic expansion and contraction are needed, the host Master node sends an elastic expansion and contraction instruction to the data center soft load resource pool to perform soft load expansion and contraction and records the elastic expansion and contraction event. And if the soft load resource pool of the data center cannot meet the resource requirement required by elastic expansion, informing a super administrator to perform expansion processing on the resource pool, and performing elastic scheduling again.
According to the soft load resource processing method based on the container cloud, provided by the embodiment of the invention, the bottom layer resources are integrated based on the container technology, and the soft load service and the application service share the resources, so that the resource utilization rate is improved; the containerized soft load service overcomes the defect that the soft load service cannot be rapidly deployed in the prior art, automatically performs dynamic capacity expansion or capacity reduction on soft load resources by taking a soft load container as a unit, and reduces service interruption caused by high concurrent high flow or burst flow of a system.
In an optional implementation manner of the embodiment of the present invention, similar to the method in fig. 2, obtaining the queue sudden change information according to the soft load queue lengths at the multiple time instants includes:
acquiring a first queue mutation factor and a second queue mutation factor according to the soft load queue lengths at the multiple moments, wherein the first queue mutation factor is a queue mutation factor before the current moment, and the second queue mutation factor is a queue mutation factor including the current moment;
and acquiring queue mutation information according to the difference value of the first queue mutation factor and the second queue mutation factor.
Specifically, the first queue mutation factor is obtained according to the following formula:
Figure BDA0001316854870000081
obtaining the second queue mutation factor according to the following formula:
Figure BDA0001316854870000082
wherein ε 1 represents a first cohort mutation factor and ε 2 represents a second cohort mutation factor; n represents the number of the obtained soft load queue lengths; x represents the soft load queue length at the current time, xiRepresenting the soft load queue length at a difference i from the current time.
For example, the current time is 12 points, and the lengths of the soft load queues corresponding to three times, namely 12 points, 11 points and 10 points, are obtained. And calculating to obtain the queue mutation factor excluding the current 12-point according to a calculation formula of the first queue mutation factor, and calculating to obtain the queue mutation factor including the current 12-point according to a calculation formula of the second queue mutation factor.
Further, the processing the soft load resource by taking the soft load container as a unit according to the queue sudden change information includes:
if the difference between the second queue mutation factor and the second queue mutation factor is larger than a first preset threshold value, carrying out capacity expansion on the soft load resource by taking a soft load container as a unit;
if the difference between the first queue mutation factor and the second queue mutation factor is larger than a first preset threshold value, carrying out capacity reduction on the soft load resource by taking a soft load container as a unit;
further, when the absolute value of the difference between the first queue mutation factor and the second queue mutation factor is smaller than a first preset threshold, the method further comprises:
acquiring a weight value of resource processing according to the length, the concurrency quantity and the response time of the soft load queue at the current moment;
if the weight value of the resource processing is larger than a second preset threshold value, carrying out capacity expansion on the soft load resource by taking a soft load container as a unit;
and if the weight value of the resource processing is smaller than a third preset threshold value, carrying out capacity reduction on the soft load resource by taking a soft load container as a unit.
It should be noted that the concurrency amount in the embodiment of the present invention refers to the number of concurrent requests being processed.
It can be understood that when the soft load queue is judged and known not to have sudden change according to the queue sudden change factor, the soft load resource is processed according to the length, the concurrency and the response time of the soft load queue at the current moment.
Specifically, the obtaining a weight value of resource processing according to the soft load queue length, the concurrency amount, and the response time at the current time includes:
respectively acquiring a degree coefficient of the soft load queue length, a degree coefficient of the concurrency amount and a degree coefficient of the response time at the current moment according to the concurrency amount and the response time of the soft load queue length at the current moment;
and acquiring a weight value of resource processing according to the degree coefficient of the soft load queue length at the current moment, the degree coefficient of the concurrency quantity and the degree coefficient of the response time.
In practical application, the degree coefficients of the three indexes need to be assigned according to an assignment reference table, and the operation can be dynamically distributed by an administrator according to different application scenes and time periods. The assignment reference table is shown in table 1:
table 1 assignment reference table
Of extreme importance Of strong importance Of obvious importance
9 7 5
And carrying out normalization processing according to the assignment reference table to obtain degree coefficients corresponding to the three indexes. x is the number ofi_normNamely, the degree coefficient of the index, the specific calculation method is as follows:
Figure BDA0001316854870000101
wherein xiIndicating the value assigned to the i-th entry in the reference table.
For example, the length of the soft load queue at the current time is 10, and the concurrency is 100; the response time is 30 (in ms), and the degree coefficients of the three indexes are obtained according to the corresponding importance degrees. (it is assumed that the importance of the queue length: 9; the importance of the concurrency amount: 7; the importance of the response time: 5).
Therefore, the degree coefficient of the soft load queue length at the present time is 9/21; the degree coefficient of concurrency was 7/21; the degree coefficient of the response time is 5/21. The three are added to obtain a value. This value is compared to upper and lower threshold values.
In practical application, the most appropriate upper and lower limit thresholds can be obtained through multiple experiments according to actual operating conditions, and the upper and lower limit thresholds can also be manually specified by an administrator according to soft load requirements.
In practical application, the soft load instance of the back end is updated by calling the hard load interface. The soft load example and the loading information are started first, and then the hard load information is updated, so that no perception is ensured when the service is accessed.
The embodiment of the invention combines a containerization technology, integrates bottom resources, shares a resource pool by soft load service and application service, maximally utilizes resources of a data center, reduces waste and redundancy of the resources and improves the resource utilization rate of the data center. The method has good popularization value for the container cloud environment of the data center. The soft load service is containerized, the dynamic expansion and elastic expansion capability of soft load resources can be realized, the response time of a data center can be effectively prolonged, and the soft load resources can be quickly expanded and contracted aiming at large flow and large concurrent services. And by means of a two-stage judgment mechanism, the soft load use condition is comprehensively considered, queue variation factors are added, the soft load state can be judged more accurately, fine-grained elastic expansion and contraction resources are realized, and the method has a high practical value in a large-scale production environment.
Fig. 4 is a schematic structural diagram of a container cloud-based soft load resource processing apparatus according to an embodiment of the present invention. As shown in fig. 4, the apparatus of this embodiment includes a soft load queue length obtaining unit 41, a queue break information obtaining unit 42, and a processing unit 43, specifically:
a soft load queue length obtaining unit 41, configured to obtain soft load queue lengths of multiple times of a soft load resource pool, where the soft load queue lengths of the multiple times at least include a soft load queue length of a current time;
a queue mutation information obtaining unit 42, configured to obtain queue mutation information according to the soft load queue lengths at the multiple times;
and the processing unit 43 is configured to process the soft load resource in units of soft load containers according to the queue sudden change information.
According to the soft load resource processing device based on the container cloud, provided by the embodiment of the invention, the bottom layer resources are integrated based on the container technology, and the soft load service and the application service share the resources, so that the resource utilization rate is improved; the containerized soft load service overcomes the defect that the soft load service cannot be rapidly deployed in the prior art, automatically performs dynamic capacity expansion or capacity reduction on soft load resources by taking a soft load container as a unit, and reduces service interruption caused by high concurrent high flow or burst flow of a system.
Further, the queue mutation information obtaining unit 42 includes:
a queue mutation factor obtaining module, configured to obtain a first queue mutation factor and a second queue mutation factor according to the soft load queue lengths at the multiple times, where the first queue mutation factor is a queue mutation factor before the current time, and the second queue mutation factor is a queue mutation factor including the current time;
and the queue mutation information acquisition module is used for acquiring queue mutation information according to the difference value of the first queue mutation factor and the second queue mutation factor.
The container cloud-based soft load resource processing device of the embodiment of the present invention may be used to implement the method embodiments, and the principle and technical effect are similar, which are not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Referring to fig. 5, the electronic device includes: a processor (processor)51, a memory (memory)52, and a bus 53; wherein the content of the first and second substances,
the processor 51 and the memory 52 are communicated with each other through a bus 53;
the processor 51 is configured to call program instructions in the memory 52 to execute the container cloud-based soft load resource processing method provided by the above-described method embodiments.
Furthermore, the logic instructions in the memory 52 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes 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 storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The present embodiments provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the container cloud based soft load resource processing method provided by the above-mentioned method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to execute the container cloud-based soft load resource processing method provided by the above method embodiments.
According to the soft load resource processing method and device based on the container cloud, provided by the embodiment of the invention, the soft load queue lengths of a soft load resource pool at multiple moments are obtained, wherein the soft load queue lengths at the multiple moments at least comprise the soft load queue length at the current moment; acquiring queue mutation information according to the soft load queue lengths at the multiple moments; and processing the soft load resources by taking the soft load container as a unit according to the queue mutation information. The embodiment of the invention is based on a containerization technology, integrates bottom resources, and shares resources with soft load service and application service, thereby improving the resource utilization rate; the containerized soft load service overcomes the defect that the soft load service cannot be rapidly deployed in the prior art, automatically performs dynamic capacity expansion or capacity reduction on soft load resources by taking a soft load container as a unit, and reduces service interruption caused by high concurrent high flow or burst flow of a system.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is to be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
In the description of the present invention, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
The above examples are only for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (7)

1. A soft load resource processing method based on a container cloud is characterized by comprising the following steps:
acquiring soft load queue lengths of a soft load resource pool at multiple moments, wherein the soft load queue lengths at the multiple moments at least comprise the soft load queue length at the current moment;
acquiring queue mutation information according to the soft load queue lengths at the multiple moments;
processing the soft load resources by taking the soft load container as a unit according to the queue mutation information;
wherein, the obtaining of the queue mutation information according to the soft load queue lengths at the multiple moments comprises:
acquiring a first queue mutation factor and a second queue mutation factor according to the soft load queue lengths at the multiple moments, wherein the first queue mutation factor is a queue mutation factor before the current moment, and the second queue mutation factor is a queue mutation factor including the current moment;
acquiring queue mutation information according to the difference value of the first queue mutation factor and the second queue mutation factor;
wherein the first queue mutation factor is obtained according to the following formula:
Figure FDA0002838794020000011
obtaining the second queue mutation factor according to the following formula:
Figure FDA0002838794020000012
wherein ε 1 represents a first cohort mutation factor and ε 2 represents a second cohort mutation factor; n represents the number of the obtained soft load queue lengths; x represents the soft load queue length at the current time, xiRepresenting the soft load queue length at a difference i from the current time.
2. The method according to claim 1, wherein the processing soft load resources in units of soft load containers according to the queue break information comprises:
if the difference between the second queue mutation factor and the second queue mutation factor is larger than a first preset threshold value, carrying out capacity expansion on the soft load resource by taking a soft load container as a unit;
and if the difference between the first queue mutation factor and the second queue mutation factor is larger than a first preset threshold value, carrying out capacity reduction on the soft load resource by taking a soft load container as a unit.
3. The method of claim 2, wherein when the absolute value of the difference between the first queue mutation factor and the second queue mutation factor is less than a first preset threshold, the method further comprises:
acquiring a weight value of resource processing according to the length, the concurrency quantity and the response time of the soft load queue at the current moment;
if the weight value of the resource processing is larger than a second preset threshold value, carrying out capacity expansion on the soft load resource by taking a soft load container as a unit;
and if the weight value of the resource processing is smaller than a third preset threshold value, carrying out capacity reduction on the soft load resource by taking a soft load container as a unit.
4. The method according to claim 3, wherein the obtaining the weight value of the resource processing according to the soft load queue length, the concurrency amount and the response time at the current time comprises:
respectively acquiring a degree coefficient of the soft load queue length, a degree coefficient of the concurrency amount and a degree coefficient of the response time at the current moment according to the concurrency amount and the response time of the soft load queue length at the current moment;
and acquiring a weight value of resource processing according to the degree coefficient of the soft load queue length at the current moment, the degree coefficient of the concurrency quantity and the degree coefficient of the response time.
5. A container cloud-based soft load resource processing apparatus, comprising:
a soft load queue length obtaining unit, configured to obtain soft load queue lengths at multiple times of a soft load resource pool, where the soft load queue lengths at the multiple times at least include a soft load queue length at a current time;
a queue mutation information obtaining unit, configured to obtain queue mutation information according to the soft load queue lengths at the multiple times;
the processing unit is used for processing the soft load resources by taking the soft load container as a unit according to the queue mutation information;
wherein the queue mutation information acquiring unit includes:
a queue mutation factor obtaining module, configured to obtain a first queue mutation factor and a second queue mutation factor according to the soft load queue lengths at the multiple times, where the first queue mutation factor is a queue mutation factor before the current time, and the second queue mutation factor is a queue mutation factor including the current time;
the queue mutation information acquisition module is used for acquiring queue mutation information according to the difference value of the first queue mutation factor and the second queue mutation factor;
wherein the first queue mutation factor is obtained according to the following formula:
Figure FDA0002838794020000031
obtaining the second queue mutation factor according to the following formula:
Figure FDA0002838794020000032
wherein ε 1 represents a first cohort mutation factor and ε 2 represents a second cohort mutation factor; n represents the number of the obtained soft load queue lengths; x represents the soft load queue length at the current time, xiIndicating the phase from the current timeThe soft load queue length of difference i.
6. An electronic device, comprising: a processor, a memory, and a bus; wherein the content of the first and second substances,
the processor and the memory complete mutual communication through the bus;
the processor is configured to call program instructions in the memory to perform the container cloud based soft load resource handling method of any of claims 1-4.
7. A non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the container cloud based soft load resource processing method of any one of claims 1-4.
CN201710428727.3A 2017-06-08 2017-06-08 Soft load resource processing method and device based on container cloud Active CN109040156B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710428727.3A CN109040156B (en) 2017-06-08 2017-06-08 Soft load resource processing method and device based on container cloud

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710428727.3A CN109040156B (en) 2017-06-08 2017-06-08 Soft load resource processing method and device based on container cloud

Publications (2)

Publication Number Publication Date
CN109040156A CN109040156A (en) 2018-12-18
CN109040156B true CN109040156B (en) 2021-06-22

Family

ID=64629200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710428727.3A Active CN109040156B (en) 2017-06-08 2017-06-08 Soft load resource processing method and device based on container cloud

Country Status (1)

Country Link
CN (1) CN109040156B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115225577B (en) * 2022-09-20 2022-12-27 深圳市明源云科技有限公司 Data processing control method and device, electronic equipment and readable storage medium
CN116708297A (en) * 2023-05-31 2023-09-05 杭州复恒科技有限公司 Cross-platform server flow resource adjusting method, system and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095846A (en) * 2013-02-02 2013-05-08 深圳先进技术研究院 A method and a system of user personalized scheduling of cloud calculation resources
CN104104551A (en) * 2013-04-02 2014-10-15 中国移动通信集团公司 Cloud resource requirement assessment method and device
CN105975340A (en) * 2016-03-24 2016-09-28 国云科技股份有限公司 Deployment algorithm of application distribution of virtual machine
CN106528266A (en) * 2016-10-28 2017-03-22 柏域信息科技(上海)有限公司 Resource dynamic adjustment method and device in cloud computing system
CN106534318A (en) * 2016-11-15 2017-03-22 浙江大学 OpenStack cloud platform resource dynamic scheduling system and method based on flow affinity
CN106603661A (en) * 2016-12-14 2017-04-26 国云科技股份有限公司 Dynamic resource balance scheduling method suitable for cloud platform

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9854045B2 (en) * 2015-04-13 2017-12-26 Sap Se Generic cloud enabling of stateful applications

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103095846A (en) * 2013-02-02 2013-05-08 深圳先进技术研究院 A method and a system of user personalized scheduling of cloud calculation resources
CN104104551A (en) * 2013-04-02 2014-10-15 中国移动通信集团公司 Cloud resource requirement assessment method and device
CN105975340A (en) * 2016-03-24 2016-09-28 国云科技股份有限公司 Deployment algorithm of application distribution of virtual machine
CN106528266A (en) * 2016-10-28 2017-03-22 柏域信息科技(上海)有限公司 Resource dynamic adjustment method and device in cloud computing system
CN106534318A (en) * 2016-11-15 2017-03-22 浙江大学 OpenStack cloud platform resource dynamic scheduling system and method based on flow affinity
CN106603661A (en) * 2016-12-14 2017-04-26 国云科技股份有限公司 Dynamic resource balance scheduling method suitable for cloud platform

Also Published As

Publication number Publication date
CN109040156A (en) 2018-12-18

Similar Documents

Publication Publication Date Title
CN111078363B (en) NUMA node scheduling method, device, equipment and medium of virtual machine
CN110134495B (en) Container cross-host online migration method, storage medium and terminal equipment
US20150295970A1 (en) Method and device for augmenting and releasing capacity of computing resources in real-time stream computing system
CN110221915B (en) Node scheduling method and device
CN111966453B (en) Load balancing method, system, equipment and storage medium
CN108063784B (en) Method, device and system for distributing application cluster resources in cloud environment
KR101886072B1 (en) Dynamic job scheduling system and method for supporting real-time stream data processing in distributed in-memory environment
CN111381928B (en) Virtual machine migration method, cloud computing management platform and storage medium
CN110532154B (en) Application system capacity expansion method, device and equipment
CN106209422A (en) Reduce the method and apparatus of Disaster Preparation Center's system switching unavailable time
US11681447B2 (en) Method, device and computer program product of balance of storage space for file system
CN109040156B (en) Soft load resource processing method and device based on container cloud
CN111666266A (en) Data migration method and related equipment
CN106164888A (en) The sequencing schemes of network and storage I/O request for minimizing interference between live load free time and live load
CN112905334A (en) Resource management method, device, electronic equipment and storage medium
CN114356543A (en) Kubernetes-based multi-tenant machine learning task resource scheduling method
JP2023526883A (en) Scheduling methods, computing devices, and storage media for tasks
CN110442428B (en) Coordination method of Docker container
CN111352726B (en) Stream data processing method and device based on containerized micro-service
CN102970349B (en) A kind of memory load equalization methods of DHT network
CN103617083A (en) Storage scheduling method and system, job scheduling method and system and management node
CN110728372B (en) Cluster design method and cluster system for dynamic loading of artificial intelligent model
CN111510479A (en) Resource allocation method and device for heterogeneous cache system
CN111104203A (en) Virtual machine decentralized scheduling method and device, electronic device and storage medium
CN115269118A (en) Scheduling method, device and equipment of virtual machine

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
CP01 Change in the name or title of a patent holder

Address after: No. 19, Jiefang East Road, Hangzhou, Zhejiang Province, 310016

Patentee after: CHINA MOBILE GROUP ZHEJIANG Co.,Ltd.

Patentee after: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd.

Address before: No. 19, Jiefang East Road, Hangzhou, Zhejiang Province, 310016

Patentee before: CHINA MOBILE GROUP ZHEJIANG Co.,Ltd.

Patentee before: CHINA MOBILE COMMUNICATIONS Corp.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20231220

Address after: No. 19, Jiefang East Road, Hangzhou, Zhejiang Province, 310016

Patentee after: CHINA MOBILE GROUP ZHEJIANG Co.,Ltd.

Patentee after: China Mobile (Zhejiang) Innovation Research Institute Co.,Ltd.

Patentee after: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd.

Address before: No. 19, Jiefang East Road, Hangzhou, Zhejiang Province, 310016

Patentee before: CHINA MOBILE GROUP ZHEJIANG Co.,Ltd.

Patentee before: CHINA MOBILE COMMUNICATIONS GROUP Co.,Ltd.

TR01 Transfer of patent right