CN116679955A - Container updating method, device, equipment and storage medium - Google Patents

Container updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN116679955A
CN116679955A CN202310678587.0A CN202310678587A CN116679955A CN 116679955 A CN116679955 A CN 116679955A CN 202310678587 A CN202310678587 A CN 202310678587A CN 116679955 A CN116679955 A CN 116679955A
Authority
CN
China
Prior art keywords
target
service
container
service container
determining
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
CN202310678587.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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310678587.0A priority Critical patent/CN116679955A/en
Publication of CN116679955A publication Critical patent/CN116679955A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45583Memory management, e.g. access or allocation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure provides a method, apparatus, device, and storage medium for updating a container, which can be applied to the technical field of computers and the technical field of finance. The method comprises the following steps: in response to receiving the service processing request, determining a service container corresponding to the service information based on the service information carried by the service processing request; under the condition that first target data of a service container are obtained through monitoring of a preset monitoring node, determining a second target data set in a target time period, wherein the first target data comprises first memory usage amounts, and the second target data set comprises a plurality of second memory usage amounts at different moments in the target time period; determining memory usage trend information of the service container based on the second target data set; generating a target service container based on the first target data and the memory use trend information; and updating the business container with the target business container.

Description

Container updating method, device, equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technology and financial technology, and more particularly, to a container updating method, apparatus, device, medium, and program product.
Background
The container is a sandbox technology, the main purpose of which is to isolate the application from the environment in which it is running, and to facilitate the transfer of this sandbox to other host machines. With the development of cloud services, more and more applications adopt containerized deployment, and containers can not only solve continuous integration and version control, but also realize rapid deployment and application isolation, and further realize reasonable utilization of resources.
In the process of implementing the disclosed concept, the inventor finds that at least the following problems exist in the related art: problems with containers, for example: insufficient memory in the container, etc., are required to be processed after the service is interrupted, and meanwhile, the basis for the problem of the container is human judgment, so that the real-time performance and the accuracy cannot be ensured.
Disclosure of Invention
In view of the foregoing, the present disclosure provides container updating methods, apparatus, devices, media, and program products.
According to a first aspect of the present disclosure, there is provided a container updating method comprising: in response to receiving a service processing request, determining a service container corresponding to the service information based on the service information carried by the service processing request; under the condition that first target data of the service container are obtained through monitoring of a preset monitoring node, determining a second target data set in a target time period, wherein the first target data comprises a first memory usage amount, and the second target data set comprises a plurality of second memory usage amounts at different moments in the target time period; determining memory usage trend information of the service container based on the second target data set; generating a target service container based on the first target data and the memory use trend information; updating the service container with the target service container.
According to an embodiment of the present disclosure, the determining the memory usage trend information of the service container based on the second target data set includes: determining third target data of historical time and fourth target data of current time from the second target data set monitored by the monitoring node in the target time period; and performing first calculation processing on the third target data and the fourth target data to obtain the memory use trend information of the service container.
According to an embodiment of the disclosure, the generating a target service container based on the first target data and the memory usage trend information includes: determining a data threshold value to which the first target data belongs; determining trend types based on the memory use trend information; and generating a target service container under the condition that the data threshold and the trend type meet the preset conditions, wherein the memory capacity of the target service container is the target memory capacity.
According to an embodiment of the present disclosure, the predetermined condition includes a first predetermined condition and a second predetermined condition, and the method further includes: determining that the data threshold and the trend type meet the first predetermined condition when the data threshold is a first data threshold and the trend type is an upward trend; and determining that the data threshold and the trend type meet the second predetermined condition when the data threshold is a second data threshold and the trend type is a descending trend, wherein the first data threshold is greater than the second data threshold.
According to an embodiment of the present disclosure, the generating a target service container in a case where it is determined that the data threshold and the trend type satisfy predetermined conditions includes: generating the target service container based on a first target memory capacity under the condition that the data threshold and the trend type meet a first preset condition, wherein the first target memory capacity is larger than the memory capacity of the service container; and generating the target service container based on a second target memory capacity under the condition that the data threshold and the trend type meet a second preset condition, wherein the second target memory capacity is smaller than the memory capacity of the service container.
According to an embodiment of the disclosure, the generating a target service container based on the first target data and the memory usage trend information includes: determining fault detection information of the service container based on the service processing record of the service container; and generating a target service container based on the first target data and the memory usage trend information under the condition that the fault detection information of the service container is determined to be used for representing that the service container has faults.
According to an embodiment of the present disclosure, determining fault detection information of the service container based on the service processing record of the service container includes: determining a first historical processing result and a second historical processing result from a business processing record of the business container, wherein the first historical processing result and the second historical processing result are chart type results; comparing the historical processing result with the target processing result to determine the similarity of the historical processing result and the target processing result; determining a data position where a difference exists between the first history result and the second history result when the similarity is equal to or greater than a similarity threshold; and determining fault detection information of the target service container based on the historical processing data corresponding to the data position.
According to an embodiment of the present disclosure, the determining, in response to receiving a service processing request, a service container corresponding to the service information based on the service information carried by the service processing request includes: in response to receiving a service processing request, determining the service information based on the service processing request; and determining the service container corresponding to the service information based on a preset configuration file, wherein the configuration file comprises the association relation between the service information and the service container.
A second aspect of the present disclosure provides a container updating apparatus, comprising: the service container determining module is used for determining a service container corresponding to the service information based on the service information carried by the service processing request in response to receiving the service processing request; the second target data set determining module is used for determining a second target data set in a target time period under the condition that first target data of the service container are obtained through monitoring of a preset monitoring node, wherein the first target data comprises a first memory usage amount, and the second target data set comprises a plurality of second memory usage amounts at different moments in the target time period; the memory use trend information determining module is used for determining memory use trend information of the service container based on the second target data set; the target service container generation module is used for generating a target service container based on the first target data and the memory use trend information; and a service container updating module for updating the service container by using the target service container.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the above method.
According to the container updating method provided by the disclosure, a corresponding service container is determined by utilizing a service processing request, a second target data set in a target time period is determined under the condition that first target data of the service container is detected, namely that the memory usage amount at least at a certain moment is monitored to reach a threshold value, then the memory usage trend in the target time is calculated based on the second target data set, a target service container can be generated based on the memory usage trend and the first target data, and finally the service container is replaced by utilizing the target service container. Under the condition that the first target data is detected, the memory use trend in the target time period is calculated, and the target service container meeting expectations is generated based on the memory use trend and the first target data, so that the technical problem that the container has the problem of needing artificial judgment is at least partially solved, the use condition of the container memory can be rapidly determined according to real-time data monitoring, the target service container is generated based on the use condition of the container memory, and the real-time performance and reliability of problem judgment and the high availability of a new service container are ensured. Because the target service container is utilized to update the service container, the technical problem that the service of the container is required to be interrupted and then processed is at least partially solved, the service container is automatically updated on line, the continuity of service processing is ensured, and the operation and maintenance cost is reduced.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be more apparent from the following description of embodiments of the disclosure with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a container update method, apparatus, device, medium and program product according to an embodiment of the present disclosure;
FIG. 2 schematically illustrates a flow chart of a method of container update according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a flow chart for determining memory usage trend information according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a flow chart of determining failure detection information for a traffic container according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a schematic diagram of a container update method according to an embodiment of the present disclosure;
FIG. 6 schematically illustrates a flow chart of a method of updating a container according to another embodiment of the present disclosure;
FIG. 7 schematically illustrates a block diagram of a container update method apparatus according to an embodiment of the present disclosure; and
fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a container updating method according to an embodiment of the disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is only exemplary and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the present disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and/or the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It should be noted that the terms used herein should be construed to have meanings consistent with the context of the present specification and should not be construed in an idealized or overly formal manner.
Where expressions like at least one of "A, B and C, etc. are used, the expressions should generally be interpreted in accordance with the meaning as commonly understood by those skilled in the art (e.g.," a system having at least one of A, B and C "shall include, but not be limited to, a system having a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
In the technical scheme of the disclosure, the related data (such as including but not limited to personal information of a user) are collected, stored, used, processed, transmitted, provided, disclosed, applied and the like, all conform to the regulations of related laws and regulations, necessary security measures are adopted, and the public welcome is not violated.
K8s, collectively known as Kubernetes, is a tool for orchestration management of portable containers for container services. The K8s is deployed in a cluster mode and consists of a management node, a working node and a storage node. The management node is a K8s cluster control node and is used for managing and controlling the whole cluster. The working nodes are also called hosts, each job can be distributed with some working loads by the management node, and when a certain working node is down, the working loads (containers) on the node can be automatically transferred to other nodes by the management node. The storage node is a high availability distributed key value database.
In the research process, with the development of cloud services, more and more applications adopt a container technology, and when the service traffic of the service is suddenly increased, the performance capacities of a CPU, a memory and the like of the current container can be improved to improve the overall processing capacity of the system, which is also called resource preheating, namely, resources are expanded/contracted in advance so as to be used by the state container service, and the utilization rate of the container resources is improved. The services may include stateful services, i.e., services requiring persistence of data storage, and stateless services. Stateless services are services without special states, where each request is handled uniformly and indiscriminately to the server, and the server itself does not store any data related to the request. Wherein the container encapsulates all relevant details necessary to run the application, such as application dependencies and operating systems.
For the container during expansion, interruption service is required, which affects continuity and high availability of business service. And the capacity expansion basis is artificial judgment, so that accuracy and instantaneity are difficult to ensure, and certain operation and maintenance cost is brought. When the human monitoring is insufficient in resources, the capacity of the resources is expanded, so that the problem of insufficient time exists, and the service use experience is also affected.
In view of this, embodiments of the present disclosure provide a container updating method, including: in response to receiving the service processing request, determining a service container corresponding to the service information based on the service information carried by the service processing request; under the condition that first target data of a service container are obtained through monitoring of a preset monitoring node, determining a second target data set in a target time period, wherein the first target data comprises first memory usage amounts, and the second target data set comprises a plurality of second memory usage amounts at different moments in the target time period; determining memory usage trend information of the service container based on the second target data set; generating a target service container based on the first target data and the memory use trend information; and updating the business container with the target business container.
Fig. 1 schematically illustrates an application scenario diagram of a container updating method, apparatus, device, medium and program product according to an embodiment of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, and a third terminal device 103. The network 104 is a medium used to provide a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may interact with the server 105 through the network 104 using at least one of the first terminal device 101, the second terminal device 102, the third terminal device 103, to receive or send messages, etc. Various communication client applications, such as a shopping class application, a web browser application, a search class application, an instant messaging tool, a mailbox client, social platform software, etc. (by way of example only) may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103.
The first terminal device 101, the second terminal device 102, the third terminal device 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smartphones, tablets, laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (by way of example only) providing support for websites browsed by the user using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process the received data such as the user request, and feed back the processing result (e.g., the web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that, the method for updating a container provided by the embodiments of the present disclosure may be generally performed by the server 105. Accordingly, the container updating apparatus provided by the embodiments of the present disclosure may be generally provided in the server 105. The container updating method provided by the embodiments of the present disclosure may also be performed by a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105. Accordingly, the container updating apparatus provided by the embodiments of the present disclosure may also be provided in a server or a server cluster that is different from the server 105 and is capable of communicating with the first terminal device 101, the second terminal device 102, the third terminal device 103, and/or the server 105.
It should be understood that the number of terminal devices, networks and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The container updating method of the disclosed embodiment will be described in detail below with reference to the scenario described in fig. 1 through fig. 2 to 6.
Fig. 2 schematically illustrates a flow chart of a container update method according to an embodiment of the present disclosure.
As shown in fig. 2, the container updating method of this embodiment includes operations S201 to S205.
In response to receiving the service processing request, a service container corresponding to the service information is determined based on the service information carried by the service processing request in operation S201.
In accordance with embodiments of the present disclosure, upon receiving a business process request, a business container associated with the business information may be determined based on the business information, wherein the business container may be used to process the business process request.
According to the embodiment of the disclosure, if the application scenario of the container updating method is a K8s cluster, the method may receive, through the management node, a service processing request sent by the target client, and send the service processing request of the client to a service container in a corresponding working node.
According to the embodiment of the disclosure, the corresponding service container can be determined through the service information carried by the service processing request, so that the corresponding service container can be quickly found out, and a subsequent service processing process is performed.
In operation S202, under the condition that the first target data of the service container is obtained through monitoring of the preset monitoring node, a second target data set in the target time period is determined, wherein the first target data includes a first memory usage amount, and the second target data set includes a plurality of second memory usage amounts at different moments in the target time period.
According to the embodiment of the disclosure, the first target data of the service container can be monitored and obtained through the preset monitoring node, the first target data at least comprises a first memory usage amount, and the first memory usage amount can be the memory usage amount reaching the data threshold.
According to an embodiment of the disclosure, through real-time uninterrupted monitoring of target data of a service container by a preset monitoring node, when first target data is obtained by monitoring, determining a second target data set in a target time period, where the target time period may be a time period after a time when the first target data is monitored, or may be a time period including a time when the first target data is monitored, for example: time 1, 2, 3, 4, 5, where 5 is the current time, and when the first target data is detected at time 2, it can be considered that time 1 to 5 are target time periods. Time 3 to 5 may be considered as the target time period.
According to an embodiment of the present disclosure, the preset monitoring node may be a system or an application that may monitor and alarm the monitoring data, for example: prometaus, wherein Prometaus is an open source system monitoring and alarm system.
According to the embodiment of the disclosure, under the condition that the first target data is monitored, the second target data set in the target time period is determined, so that the effect of saving the computing resources can be achieved, namely, when the first target data is not monitored, the determination of the second target data set can be omitted, and the waste of the computing resources is avoided.
In operation S203, memory usage trend information of the service container is determined based on the second target data set.
According to the embodiment of the disclosure, by calculating the second target data at different time included in the second target data set, memory usage trend information of the service container in the target time period may be determined, where the memory usage trend information may include a trend type and a trend rate of increasing or decreasing a trend, for example: the rate of rise is 60%, etc.
According to the embodiment of the disclosure, the memory use trend information of the service container determined by the second target data set can determine the memory use trend of the service container in the target time period, and different processing directions can be determined for different use trends, so that the technical problems of untimely or inaccurate judgment caused by manual judgment are avoided, and a certain operation and maintenance cost is saved.
In operation S204, a target service container is generated based on the first target data and the memory usage trend information.
According to an embodiment of the present disclosure, the first target data may satisfy both the first data threshold and the second data threshold, and when the first target data satisfies the first data threshold, the memory usage of the service container may be considered to be near saturation, for example: when the memory capacity of the service container is 100GB, the first data threshold may be 75GB. The traffic container may be considered to have a lower memory usage when the first target data meets the second data threshold, for example: the second data threshold may be 35GB when the memory capacity of the traffic container is 100 GB.
According to an embodiment of the present disclosure, based on the data threshold value satisfied by the first target data and the trend type included in the memory usage trend information, an update direction of the service container may be determined, for example: obtaining the insufficient memory of the service container based on the data threshold value satisfied by the first target data and the trend type included in the memory usage trend information, a target service container with the memory satisfying the requirement may be generated, for example: when the memory usage of the service container is 80GB and the total memory capacity is 100GB, and the service container with 120GB memory capacity can be generated.
According to the embodiment of the disclosure, the target service container can be generated by calling the target thread under the condition that the memory of the service container is insufficient.
According to the embodiment of the disclosure, through the first target data and the memory usage trend information, an expected target service container can be generated, when the data threshold value met by the first target data and the memory usage trend information meet the preset rule, the generation direction of the target service container can be determined, if the first target data and the memory usage trend information are in a rapid ascending trend, the target service container with larger memory capacity can be generated, the service container is prevented from being incapable of processing a subsequent overload service processing request, and if the first target data and the memory usage trend information are in a rapid descending trend, the target service container with smaller memory capacity can be generated, and the resource utilization rate is saved.
In operation S205, the service container is updated with the target service container.
According to embodiments of the present disclosure, a business container may be replaced with a newly generated target business container to enable updating of the target business container.
According to the container updating method provided by the disclosure, a corresponding service container is determined by utilizing a service processing request, a second target data set in a target time period is determined under the condition that first target data of the service container is detected, namely that the memory usage amount at least at a certain moment is monitored to reach a threshold value, then the memory usage trend in the target time is calculated based on the second target data set, a target service container can be generated based on the memory usage trend and the first target data, and finally the service container is replaced by utilizing the target service container. Under the condition that the first target data is detected, the memory use trend in the target time period is calculated, and the target service container meeting expectations is generated based on the memory use trend and the first target data, so that the technical problem that the container has the problem of needing artificial judgment is at least partially solved, the use condition of the container memory can be rapidly determined according to real-time data monitoring, the target service container is generated based on the use condition of the container memory, and the real-time performance and reliability of problem judgment and the high availability of a new service container are ensured. Because the target service container is utilized to update the service container, the technical problem that the service of the container is required to be interrupted and then processed is at least partially solved, the service container is automatically updated on line, the continuity of service processing is ensured, and the operation and maintenance cost is reduced.
According to an embodiment of the present disclosure, in response to receiving a service processing request, determining a service container corresponding to service information based on the service information carried by the service processing request may include the following operations.
Determining service information based on the service processing request in response to receiving the service processing request; and determining a service container corresponding to the service information based on a preset configuration file, wherein the configuration file comprises the association relation between the service information and the service container.
According to the embodiment of the disclosure, under the condition that the service processing request is received, service information included in the service processing request can be determined, and a service container corresponding to the service information is determined according to the association relationship between the service information included in the preset configuration file and the service container.
FIG. 3 schematically illustrates a flow chart for determining memory usage trend information according to an embodiment of the present disclosure.
As shown in fig. 3, determining the memory usage trend information includes operations S301 to S302.
In operation S301, third target data at a historical time and fourth target data at a current time are determined from a second target data set monitored by the monitoring node during a target period.
In operation S302, a first calculation process is performed on the third target data and the fourth target data, so as to obtain the memory usage trend information of the service container.
According to embodiments of the present disclosure, the historical time may characterize any time within the target time period other than the current time.
According to an embodiment of the present disclosure, the first processing calculation may include any calculation manner of calculating the memory usage trend information, as shown in formula (1).
Wherein ρ represents the rate of rise or fall of the memory usage; a represents the memory usage at the historical moment; and b represents the memory usage at the current moment.
According to the embodiment of the disclosure, the rising rate or the falling rate of the memory usage amount and the type of the memory usage trend can be obtained through the first processing calculation, whether the service container needs to be updated or not can be further analyzed through determining the trend type and the rising rate or the falling rate of the memory usage amount, if the service container needs to be updated, the service container is updated as soon as possible, the memory is enlarged or reduced, the memory is preheated online, the continuity of the service is guaranteed, and the like.
According to an embodiment of the present disclosure, generating the target service container based on the first target data and the memory usage trend information may further include the following operations.
Determining a data threshold value to which the first target data belongs; determining trend types based on the memory usage trend information; and under the condition that the data threshold and the trend type meet the preset conditions, generating a target service container, wherein the memory capacity of the target service container is the target memory capacity.
According to embodiments of the present disclosure, a data threshold of first target data may be determined, and a trend type may be determined based on the memory usage trend information, and if the data threshold and the trend type satisfy predetermined conditions, a target business container may be generated by the predetermined conditions.
According to an embodiment of the disclosure, in a case that the data threshold and the trend type are determined not to meet a predetermined condition, processing a service processing request by using a service container; and under the condition that the target service container is updated, the target service container is utilized to process the service processing request. That is, the service processing request can be processed through the service container under the condition that the service container does not need to be updated, and the service processing request can be processed through the target service container under the condition that the service container needs to be updated.
According to an embodiment of the present disclosure, the predetermined condition includes a first predetermined condition and a second predetermined condition, and the container updating method may further include the following operations.
Under the condition that the data threshold is a first data threshold and the trend type is an ascending trend, determining that the data threshold and the trend type meet a first preset condition; and under the condition that the data threshold is a second data threshold and the trend type is a descending trend, determining that the data threshold and the trend type meet a second preset condition, wherein the first data threshold is larger than the second data threshold.
According to an embodiment of the present disclosure, in the case where the data threshold is a first data threshold and the trend type is an upward trend, it may be determined that the data threshold and the trend type satisfy a first predetermined condition, for example: assuming that the memory capacity of the service container is 100GB, the first target data already exists to satisfy the first data threshold value of 85GB, and the trend type is an upward trend, it can be considered that, under the condition that the available memory of the service container at a certain moment is small, the subsequent memory usage trend or the memory usage trend during the period is an upward trend, if no processing is performed, the service cannot be continuously processed due to the fact that the memory is exploded.
According to an embodiment of the present disclosure, in a case where the data threshold of the first target data is a second data threshold and the trend type is a downward trend, it is determined that the data threshold and the trend type satisfy a second predetermined condition. For example: assuming that the memory capacity of the service container is 100GB, the existing first target data satisfies the second data threshold value to be 35GB, and the trend type is a downward trend, it may be considered that in the case that the used memory of the service container at a certain moment is small, the subsequent memory usage trend or the memory usage trend during the period is still a downward trend, and the subsequent service processing work may be completed only by using the small memory capacity.
According to embodiments of the present disclosure, trend rate thresholds may also be set for different trend types, such as: the rise rate threshold or the fall rate threshold is used to determine whether a predetermined condition is satisfied using the data threshold, the trend type, and the trend rate threshold. For example: if the trend type is calculated to be an ascending trend and the ascending rate reaches 80% on the premise that the data threshold is the first data threshold, the first preset condition can be considered to be met; if the trend type is a decreasing trend and the decreasing rate reaches 30% on the premise that the data threshold is the second data threshold, it can be considered that the second predetermined condition is satisfied.
According to an embodiment of the present disclosure, generating the target business container may further include the following operations in a case where it is determined that the data threshold and the trend type satisfy the predetermined condition.
Generating a target service container based on a first target memory capacity under the condition that the data threshold and the trend type meet a first preset condition, wherein the first target memory capacity is larger than the memory capacity of the service container; and generating a target service container based on a second target memory capacity under the condition that the data threshold and the trend type meet a second preset condition, wherein the second target memory capacity is smaller than the memory capacity of the service container.
According to the embodiment of the disclosure, under the condition that the first predetermined condition is met, that is, the available memory of the service container at a certain moment is small, and the memory usage trend in a period of time subsequent to the moment or the memory usage trend in a period of time including the moment is still an ascending trend, if no processing is performed, the problem that the service cannot be continuously processed due to the fact that the memory is exploded is likely to be caused, online preheating of the memory can be performed, a target service container with larger memory capacity is generated, and continuity of the service is ensured.
According to the embodiment of the disclosure, under the condition that the second predetermined condition is met, that is, the used memory of the service container at a certain moment is small, and the memory usage trend of the time period subsequent to the moment or the memory usage trend of the time period including the moment is still a decreasing trend, the subsequent service processing work can be completed by using only small memory capacity, so that online preheating of the memory can be performed, a target service container with smaller memory capacity is generated, and the resource utilization rate is improved on the premise of ensuring service continuity.
According to an embodiment of the present disclosure, generating the target service container based on the first target data and the memory usage trend information may further include the following operations.
Determining fault detection information of the service container based on the service processing record of the service container; and under the condition that the fault detection information of the service container is determined to be used for representing that the service container has faults, generating a target service container based on the first target data and the memory use trend information.
According to the embodiment of the disclosure, based on the service processing record of the service container, fault detection information of the service container can be determined, based on the fault detection information, whether the service container has a fault or not and the fault occurrence rate can be determined, and when the service container has a fault or the fault occurrence rate is relatively high, the target service container can be generated based on the first target data and the memory use trend information.
According to embodiments of the present disclosure, the fault detection information may include information of fault occurrence, fault occurrence rate, fault occurrence location, and the like of the service container.
According to the embodiment of the disclosure, whether the service container has faults or not is determined, and then the target service container is generated, so that the computing resources can be saved, the resource waste caused by frequent updating of the service container without problems is avoided, meanwhile, the service container with more perfect processing logic can be obtained based on the fault detection information, the problems of the service container are avoided, and the target service container also exists. In addition, based on the fault detection information, operation and maintenance personnel can be helped to determine the fault position of the service container more quickly, and the fault cause can be conveniently inquired.
Fig. 4 schematically illustrates a flow chart of determining failure detection information for a traffic container according to an embodiment of the present disclosure.
As shown in fig. 4, determining the failure detection information of the service container may include operations S401 to S404.
In operation S401, a first history processing result and a second history processing result are determined from a business process record of a business container, wherein the first history processing result and the second history processing result are chart type results.
In operation S402, the history processing result is compared with the target processing result, and the similarity of the history processing result and the target processing result is determined.
In operation S403, in the case where the similarity is equal to or greater than the similarity threshold, a data position where there is a difference in the first history result and the second history result is determined.
In operation S404, failure detection information of the target service container is determined based on the history processing data corresponding to the data location.
According to embodiments of the present disclosure, two historical processing results may be determined from a business process record, where the historical processing results are all business processing results of the same type. Comparing the two historical processing results, determining the similarity of the pictures or the charts, if the similarity of the pictures or the charts reaches a similarity threshold, considering that the two processing results possibly have no problem, then determining the position of difference between the two processing results, determining whether the position of difference is a preset position, if the position of difference is the preset position, considering that the two processing results also have no problem, and if the position of difference is not the preset position, determining the fault detection information of the target service container based on the historical processing data corresponding to the data position.
According to the embodiment of the disclosure, since the historical processing results are all the same type of service processing results, the graphs of the same type of service processing results are similar, if the similarity is too low, one of the historical processing results may have a problem, the historical processing results which may have a problem may be continuously compared with other historical processing results, and if the similarity is still low after multiple comparisons, the service processing results are considered to have a problem.
According to the embodiment of the disclosure, each historical processing result can be compared with different historical processing results for multiple times, so that the accuracy of fault detection information is higher.
Fig. 5 schematically illustrates a schematic diagram of a container update method according to an embodiment of the present disclosure.
As shown in fig. 5, when the application scenario of the container updating method is a K8s cluster, the management node 501 may receive a service processing request, and the management node 501 may call a configuration file or other data from the storage node 502 to obtain a corresponding relationship between service information and a service container, so as to find a service container of a working node 503 corresponding to the service processing request. The service container internally runs a specific service and can provide service.
According to embodiments of the present disclosure, monitoring the service container by the monitoring node 504 may implement monitoring performance data in the service container, for example: memory usage data, and the like.
According to an embodiment of the present disclosure, in a case where the monitoring node 504 monitors the first target data, a second target data set in the target period is determined, and memory usage trend information is calculated according to the second target data set. And when the data threshold of the first target data is the first data threshold and the memory use trend information is the ascending trend, the service container A needs to be expanded, the service container B is generated, and the service container A is replaced by the service container B. And under the condition that the data threshold value of the first target data is the second data threshold value and the memory use trend information is the descending trend, the service container C needs to be scaled, and the service container C is generated to replace the service container A.
According to the embodiments of the present disclosure, the memory capacities of the service container a, the service container B, and the service container C are schematic, and different memory capacities may be set according to circumstances.
Fig. 6 schematically illustrates a flow chart of a method of updating a container according to another embodiment of the present disclosure.
As shown in fig. 6, the container updating method of another embodiment includes operations S601 to S610.
In response to receiving the service processing request, a service container corresponding to the service information is determined based on the service information carried by the service processing request in operation S601.
In operation S602, in a case where the first target data of the service container is monitored by the preset monitoring node, a second target data set in the target time period is determined.
In operation S603, memory usage trend information of the service container is determined based on the second target data set.
In operation S604, it is determined whether the data threshold to which the first target data belongs and the trend type satisfy a predetermined condition.
In operation S605, in the case where the data threshold is the first data threshold and the trend type is the upward trend, it is determined that the data threshold and the trend type satisfy the first predetermined condition.
In operation S606, in the case where the data threshold is a second data threshold and the trend type is a downward trend, it is determined that the data threshold and the trend type satisfy a second predetermined condition.
In operation S607, in a case where it is determined that the data threshold and the trend type satisfy the first predetermined condition, a target service container is generated based on the first target memory capacity, wherein the first target memory capacity is greater than the memory capacity of the service container.
In operation S608, in a case where it is determined that the data threshold and the trend type satisfy the second predetermined condition, a target service container is generated based on a second target memory capacity, wherein the second target memory capacity is smaller than the memory capacity of the service container.
In operation S609, the service processing request is processed using the target service container.
In operation S610, in a case where the data threshold value to which the first target data belongs and the trend type do not satisfy the predetermined condition, it is determined to process the service processing request using the service container.
Based on the container updating method, the disclosure also provides a container updating device. The device will be described in detail below in connection with fig. 7.
Fig. 7 schematically illustrates a block diagram of a container updating apparatus according to an embodiment of the present disclosure.
As shown in fig. 7, the container updating apparatus 700 of this embodiment includes a service container determining module 710, a second target data set determining module 720, a memory usage trend information determining module 730, a target service container generating module 740, and a service container updating module 750.
A service container determining module 710, configured to determine, in response to receiving the service processing request, a service container corresponding to the service information based on the service information carried by the service processing request;
A second target data set determining module 720, configured to determine, when first target data of the service container is obtained by monitoring through a preset monitoring node, a second target data set in a target period, where the first target data includes a first memory usage amount, and the second target data set includes a plurality of second memory usage amounts at different moments in the target period;
a memory usage trend information determining module 730, configured to determine memory usage trend information of the service container based on the second target data set;
the target service container generating module 740 is configured to generate a target service container based on the first target data and the memory usage trend information; and
the service container update module 750 is configured to update the service container with the target service container.
According to an embodiment of the present disclosure, the service container determination module 710 may include: a business information determination sub-module and a business container determination sub-module.
And the service information determining sub-module is used for responding to the received service processing request and determining service information based on the service processing request.
And the service container determining submodule is used for determining a service container corresponding to the service information based on a preset configuration file, wherein the configuration file comprises the association relation between the service information and the service container.
According to an embodiment of the present disclosure, the memory usage trend information determining module 730 may include: a target data determination sub-module and a first calculation processing sub-module.
And the target data determining sub-module is used for determining third target data of the historical moment and fourth target data of the current moment from the second target data set monitored by the monitoring node in the target time period.
And the first calculation processing sub-module is used for carrying out first calculation processing on the third target data and the fourth target data to obtain the memory use trend information of the service container.
According to an embodiment of the present disclosure, the target business container generation module 740 may include: the system comprises a data threshold determining sub-module, a trend type determining sub-module and a target service container generating sub-module.
And the data threshold determining submodule is used for determining the data threshold to which the first target data belong.
And the trend type determining submodule is used for determining the trend type based on the memory use trend information.
And the target service container generation sub-module is used for generating a target service container under the condition that the data threshold and the trend type meet the preset conditions, wherein the memory capacity of the target service container is the target memory capacity.
According to an embodiment of the present disclosure, the predetermined conditions include a first predetermined condition and a second predetermined condition, and the container updating apparatus 700 may further include: the first predetermined condition satisfaction module and the second predetermined condition satisfaction module.
The first preset condition meeting module is used for determining that the data threshold and the trend type meet the first preset condition under the condition that the data threshold is the first data threshold and the trend type is the ascending trend.
And the second preset condition satisfaction module is used for determining that the data threshold and the trend type meet the second preset condition under the condition that the data threshold is a second data threshold and the trend type is a descending trend, wherein the first data threshold is larger than the second data threshold.
According to an embodiment of the present disclosure, the target business container generation sub-module may include: a first target business container generation unit and a second target business container generation unit.
And the first target service container generating unit is used for generating a target service container based on the first target memory capacity under the condition that the data threshold and the trend type meet the first preset condition, wherein the first target memory capacity is larger than the memory capacity of the service container.
And the second target service container generating unit is used for generating a target service container based on a second target memory capacity under the condition that the data threshold and the trend type meet a second preset condition, wherein the second target memory capacity is smaller than the memory capacity of the service container.
According to an embodiment of the present disclosure, the target service container generation module 740 may further include: the system comprises a fault detection information determining module and a target service container updating module.
The fault detection information determining module is used for determining fault detection information of the service container based on the service processing record of the service container.
And the target service container updating module is used for generating a target service container based on the first target data and the memory use trend information under the condition that the fault detection information of the service container is determined to be used for representing that the service container has faults.
According to an embodiment of the present disclosure, the fault detection information determination module may include: the data position determining sub-module is used for determining the data position of the object to be tested.
The history processing result determining sub-module is used for determining a first history processing result and a second history processing result from the business processing record of the business container, wherein the first history processing result and the second history processing result are chart type results.
And the similarity determination submodule is used for comparing the historical processing result with the target processing result and determining the similarity of the historical processing result and the target processing result.
And the data position determining sub-module is used for determining the data position with the difference in the first historical processing result and the second historical processing result under the condition that the similarity is larger than or equal to a similarity threshold value.
And the fault detection information determining sub-module is used for determining the fault detection information of the target service container based on the historical processing data corresponding to the data position.
According to an embodiment of the present disclosure, any of the service container determining module 710, the second target data set determining module 720, the memory usage trend information determining module 730, the target service container generating module 740, and the service container updating module 750 may be combined in one module to be implemented, or any of the modules may be split into a plurality of modules. Alternatively, at least some of the functionality of one or more of the modules may be combined with at least some of the functionality of other modules and implemented in one module. According to embodiments of the present disclosure, at least one of the business container determination module 710, the second target data set determination module 720, the memory usage trend information determination module 730, the target business container generation module 740, and the business container update module 750 may be implemented at least in part as hardware circuitry, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system-on-chip, a system-on-substrate, a system-on-package, an Application Specific Integrated Circuit (ASIC), or as hardware or firmware in any other reasonable manner of integrating or packaging the circuitry, or as any one of or a suitable combination of three of software, hardware, and firmware. Alternatively, at least one of the business container determination module 710, the second target data set determination module 720, the memory usage trend information determination module 730, the target business container generation module 740, and the business container update module 750 may be at least partially implemented as a computer program module that, when executed, performs the corresponding functions.
Fig. 8 schematically illustrates a block diagram of an electronic device adapted to implement a container updating method according to an embodiment of the disclosure.
As shown in fig. 8, an electronic device 800 according to an embodiment of the present disclosure includes a processor 801 that can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage section 808 into a Random Access Memory (RAM) 803. The processor 801 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or an associated chipset and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), or the like. The processor 801 may also include on-board memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing the different actions of the method flows according to embodiments of the disclosure.
In the RAM 803, various programs and data required for the operation of the electronic device 800 are stored. The processor 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. The processor 801 performs various operations of the method flow according to the embodiments of the present disclosure by executing programs in the ROM 802 and/or the RAM 803. Note that the program may be stored in one or more memories other than the ROM 802 and the RAM 803. The processor 801 may also perform various operations of the method flows according to embodiments of the present disclosure by executing programs stored in one or more memories.
According to an embodiment of the present disclosure, the electronic device 800 may also include an input/output (I/O) interface 805, the input/output (I/O) interface 805 also being connected to the bus 804. The electronic device 800 may also include one or more of the following components connected to an input/output (I/O) interface 805: an input portion 806 including a keyboard, mouse, etc.; an output portion 807 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and a speaker; a storage section 808 including a hard disk or the like; and a communication section 809 including a network interface card such as a LAN card, a modem, or the like. The communication section 809 performs communication processing via a network such as the internet. The drive 810 is also connected to an input/output (I/O) interface 805 as needed. A removable medium 811 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 810 as needed so that a computer program read out therefrom is mounted into the storage section 808 as needed.
The present disclosure also provides a computer-readable storage medium that may be embodied in the apparatus/device/system described in the above embodiments; or may exist alone without being assembled into the apparatus/device/system. The computer-readable storage medium carries one or more programs which, when executed, implement methods in accordance with embodiments of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example, but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, the computer-readable storage medium may include ROM 802 and/or RAM 803 and/or one or more memories other than ROM 802 and RAM 803 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the methods shown in the flowcharts. The program code, when executed in a computer system, causes the computer system to implement the container updating method provided by embodiments of the present disclosure.
The above-described functions defined in the system/apparatus of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
In one embodiment, the computer program may be based on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted, distributed, and downloaded and installed in the form of a signal on a network medium, and/or from a removable medium 811 via a communication portion 809. The computer program may include program code that may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program may be downloaded and installed from a network via the communication section 809, and/or installed from the removable media 811. The above-described functions defined in the system of the embodiments of the present disclosure are performed when the computer program is executed by the processor 801. The systems, devices, apparatus, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the disclosure.
According to embodiments of the present disclosure, program code for performing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, such computer programs may be implemented in high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. Programming languages include, but are not limited to, such as Java, c++, python, "C" or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that the features recited in the various embodiments of the disclosure and/or in the claims may be provided in a variety of combinations and/or combinations, even if such combinations or combinations are not explicitly recited in the disclosure. In particular, the features recited in the various embodiments of the present disclosure and/or the claims may be variously combined and/or combined without departing from the spirit and teachings of the present disclosure. All such combinations and/or combinations fall within the scope of the present disclosure.
The embodiments of the present disclosure are described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the embodiments cannot be used advantageously in combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be made by those skilled in the art without departing from the scope of the disclosure, and such alternatives and modifications are intended to fall within the scope of the disclosure.

Claims (12)

1. A method of updating a container, comprising:
in response to receiving a service processing request, determining a service container corresponding to service information based on the service information carried by the service processing request;
Under the condition that first target data of the service container are obtained through monitoring of a preset monitoring node, determining a second target data set in a target time period, wherein the first target data comprises first memory usage amount, and the second target data set comprises a plurality of second memory usage amounts at different moments in the target time period;
determining memory usage trend information of the service container based on the second target data set;
generating a target service container based on the first target data and the memory usage trend information; and
and updating the service container by using the target service container.
2. The method of claim 1, wherein the determining memory usage trend information for the business container based on the second set of target data comprises:
determining third target data of historical time and fourth target data of current time from the second target data set monitored by the monitoring node in the target time period;
and performing first calculation processing on the third target data and the fourth target data to obtain the memory use trend information of the service container.
3. The method of claim 1, wherein the generating a target business container based on the first target data and the memory usage trend information comprises:
determining a data threshold value to which the first target data belongs;
determining a trend type based on the memory usage trend information;
and generating the target service container under the condition that the data threshold and the trend type meet the preset condition, wherein the memory capacity of the target service container is the target memory capacity.
4. A method according to claim 3, wherein the predetermined conditions comprise a first predetermined condition and a second predetermined condition, the method further comprising:
determining that the data threshold and the trend type meet the first predetermined condition when the data threshold is a first data threshold and the trend type is an ascending trend;
and determining that the data threshold and the trend type meet the second preset condition under the condition that the data threshold is a second data threshold and the trend type is a descending trend, wherein the first data threshold is larger than the second data threshold.
5. The method of claim 4, wherein the generating a target business container if it is determined that the data threshold and the trend type satisfy a predetermined condition comprises:
Generating the target service container based on a first target memory capacity under the condition that the data threshold and the trend type meet a first preset condition, wherein the first target memory capacity is larger than the memory capacity of the service container;
and generating the target service container based on a second target memory capacity under the condition that the data threshold and the trend type meet a second preset condition, wherein the second target memory capacity is smaller than the memory capacity of the service container.
6. The method of claim 1, wherein generating a target service container based on the first target data and the memory usage trend information comprises:
determining fault detection information of the service container based on the service processing record of the service container;
and under the condition that the fault detection information of the service container is used for representing that the service container has faults, generating a target service container based on the first target data and the memory use trend information.
7. The method of claim 6, wherein determining fault detection information for the service container based on the service processing record for the service container comprises:
Determining a first historical processing result and a second historical processing result from a business processing record of the business container, wherein the first historical processing result and the second historical processing result are chart type results;
comparing the historical processing result with the target processing result, and determining the similarity of the historical processing result and the target processing result;
determining a data position with a difference in the first historical processing result and the second historical processing result under the condition that the similarity is greater than or equal to a similarity threshold value;
and determining fault detection information of the target service container based on the historical processing data corresponding to the data position.
8. The method of claim 1, wherein the determining, in response to receiving a service processing request, a service container corresponding to the service information based on the service information carried by the service processing request, comprises:
in response to receiving a service processing request, determining the service information based on the service processing request;
and determining the service container corresponding to the service information based on a preset configuration file, wherein the configuration file comprises the association relation between the service information and the service container.
9. A container updating apparatus comprising:
the service container determining module is used for determining a service container corresponding to the service information based on the service information carried by the service processing request in response to receiving the service processing request;
the second target data set determining module is used for determining a second target data set in a target time period under the condition that first target data of the service container are obtained through monitoring of a preset monitoring node, wherein the first target data comprises a first memory usage amount, and the second target data set comprises a plurality of second memory usage amounts at different moments in the target time period;
the memory use trend information determining module is used for determining memory use trend information of the service container based on the second target data set;
the target service container generation module is used for generating a target service container based on the first target data and the memory use trend information; and
and the service container updating module is used for updating the service container by utilizing the target service container.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs,
Wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-8.
11. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method according to any of claims 1-8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the method according to any one of claims 1 to 8.
CN202310678587.0A 2023-06-09 2023-06-09 Container updating method, device, equipment and storage medium Pending CN116679955A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310678587.0A CN116679955A (en) 2023-06-09 2023-06-09 Container updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310678587.0A CN116679955A (en) 2023-06-09 2023-06-09 Container updating method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116679955A true CN116679955A (en) 2023-09-01

Family

ID=87788697

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310678587.0A Pending CN116679955A (en) 2023-06-09 2023-06-09 Container updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116679955A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117762630A (en) * 2023-12-25 2024-03-26 北京燃数科技有限公司 Cloud resource adjusting method, system, equipment and medium for real-time monitoring drive

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117762630A (en) * 2023-12-25 2024-03-26 北京燃数科技有限公司 Cloud resource adjusting method, system, equipment and medium for real-time monitoring drive

Similar Documents

Publication Publication Date Title
US10652119B2 (en) Automatic recovery engine with continuous recovery state machine and remote workflows
US9998393B2 (en) Method and system for managing resource capability in a service-centric system
US10476983B2 (en) Systems monitoring in case of lost network connection in SaaS model
US10884839B2 (en) Processing system for performing predictive error resolution and dynamic system configuration control
CN110875838B (en) Resource deployment method, device and storage medium
CN113900834A (en) Data processing method, device, equipment and storage medium based on Internet of things technology
CN116679955A (en) Container updating method, device, equipment and storage medium
CN115174353B (en) Fault root cause determining method, device, equipment and medium
CN114760233A (en) Service processing method and device, electronic equipment and storage medium
CN113495825A (en) Line alarm processing method and device, electronic equipment and readable storage medium
CN113076224A (en) Data backup method, data backup system, electronic device and readable storage medium
CN111831503B (en) Monitoring method based on monitoring agent and monitoring agent device
CN117112358A (en) Monitoring method, device, equipment, medium and program product
CN115760013A (en) Operation and maintenance model construction method and device, electronic equipment and storage medium
CN115801764A (en) File transmission method, device, equipment and storage medium
CN115550141A (en) Event processing method and device, electronic equipment and readable storage medium
CN115514618A (en) Alarm event processing method and device, electronic equipment and medium
CN115202973A (en) Application running state determining method and device, electronic equipment and medium
CN114327392A (en) Data processing method and device and electronic equipment
CN113138772A (en) Method and device for constructing data processing platform, electronic equipment and storage medium
CN113032237B (en) Data processing method and device, electronic equipment and computer readable storage medium
US11809910B2 (en) System and method for dynamically resizing computational infrastructure to accommodate unexpected demands
CN115484149B (en) Network switching method, network switching device, electronic equipment and storage medium
CN111026571B (en) Processor down-conversion processing method and device and electronic equipment
CN117950802A (en) Resource data updating method, device, equipment, medium and program product

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