CN110888733B - Cluster resource use condition processing method and device and electronic equipment - Google Patents

Cluster resource use condition processing method and device and electronic equipment Download PDF

Info

Publication number
CN110888733B
CN110888733B CN201811057086.6A CN201811057086A CN110888733B CN 110888733 B CN110888733 B CN 110888733B CN 201811057086 A CN201811057086 A CN 201811057086A CN 110888733 B CN110888733 B CN 110888733B
Authority
CN
China
Prior art keywords
cluster resource
cluster
time period
use condition
preset
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
CN201811057086.6A
Other languages
Chinese (zh)
Other versions
CN110888733A (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.)
3600 Technology Group Co ltd
Original Assignee
3600 Technology Group 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 3600 Technology Group Co ltd filed Critical 3600 Technology Group Co ltd
Priority to CN201811057086.6A priority Critical patent/CN110888733B/en
Publication of CN110888733A publication Critical patent/CN110888733A/en
Application granted granted Critical
Publication of CN110888733B publication Critical patent/CN110888733B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources

Abstract

The application discloses a cluster resource use condition processing method, a device and electronic equipment, wherein the cluster resource use condition processing method comprises the following steps: acquiring cluster resource use conditions in a preset historical time period; analyzing the cluster resource use condition and determining the current residual cluster resources; and analyzing and predicting the cluster resource use condition in the current preset time period through a preset real-time analysis model based on the current residual cluster resources to obtain a prediction result aiming at the cluster resource use condition in the current preset time period. In the method, accurate prediction of future cluster resource use conditions is realized, so that the configuration of the cluster resources can be timely and effectively adjusted, the cluster resource waste is avoided, the cluster resource utilization rate is improved, and the cluster resource consumption cost is reduced; and through effective discernment, reduce invalid alarm information's transmission to the maximum extent, promote user's use impression.

Description

Cluster resource use condition processing method and device and electronic equipment
Technical Field
The present invention relates to the field of application software technologies, and in particular, to a cluster resource usage processing method and apparatus, and an electronic device.
Background
In the prior art, for the allocation and use of cluster resources, corresponding cluster resource configuration is usually performed on each device in advance, so that corresponding processing can be performed by using the pre-configured cluster resources. However, the design of the pre-configured cluster resources can eliminate the need of adjusting and configuring the cluster resources when processing each device, but the processing of the pre-configured cluster resources can cause a great deal of waste of the cluster resources due to the fact that corresponding cluster resource adjustment cannot be performed according to actual use conditions, thereby reducing the utilization rate of the cluster resources and increasing the consumption cost of the cluster resources. Meanwhile, a large amount of invalid alarm information can be generated due to the fact that effective identification cannot be achieved, and stability of the whole cluster resource platform is further affected.
Disclosure of Invention
The application provides a cluster resource use condition processing method, a cluster resource use condition processing device and electronic equipment, so as to realize effective control and adjustment of cluster resources.
In a first aspect, a method for processing cluster resource usage is provided, including:
acquiring cluster resource use conditions in a preset historical time period;
analyzing the cluster resource use condition and determining the current residual cluster resources;
and analyzing and predicting the cluster resource use condition in the current preset time period through a preset real-time analysis model based on the current residual cluster resources to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
In one possible implementation, obtaining cluster resource usage for a predetermined historical period of time includes:
inquiring a database storing cluster resource use conditions, and extracting the cluster resource use conditions in a preset historical time period from the database;
the cluster resource use conditions stored in the database are arranged according to a preset arrangement sequence.
In one possible implementation manner, the cluster resource usage situation stored in the database is arranged according to a preset arrangement sequence, including:
the cluster resource use condition is stored in the database according to the sequence of the acquisition time, and the cluster resource use condition is acquired based on the preset time.
In one possible implementation manner, based on the current remaining cluster resources, analyzing, predicting, by the predetermined real-time analysis model, the cluster resource usage situation in the current preset time period to obtain a prediction result for the cluster resource usage situation in the current preset time period, where the method includes:
judging through a preset real-time analysis model based on the current residual cluster resources and the preset cluster resource use condition of each time period, and determining whether the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period meet a preset relation;
if the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to meet the preset relation, or the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to not meet the preset relation, a prediction result aiming at the cluster resource use condition in the current preset time period is obtained.
In one possible implementation, the method further includes: if it cannot be determined whether the resource amount of the currently remaining cluster resources and the resource amount of the cluster resource usage in the current preset time period satisfy the preset relationship,
analyzing the cluster resource use condition through a preset predictive analysis model, and determining the use rule of the cluster resource use condition in the historical time period;
and predicting the cluster resource use condition in the current preset time period based on the use rule of the cluster resource use condition in the history time period to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
In one possible implementation manner, if abnormal cluster resource usage exists in cluster resource usage in the historical time period, a notification message carrying labeling information is sent, wherein the labeling information is information for labeling the abnormal cluster resource usage.
In one possible implementation manner, after obtaining the prediction result for the cluster resource usage situation in the current preset time period, at least one of the following processes is further included:
carrying the prediction result in a notification message for pushing based on a preset strategy;
storing the prediction result in the database.
In a second aspect, a cluster resource usage processing device is provided, including:
the acquisition unit is used for acquiring cluster resource use conditions in a preset historical time period;
the first processing unit is used for analyzing the cluster resource use condition and determining the current residual cluster resource;
the second processing unit is used for analyzing and predicting the cluster resource use condition in the current preset time period through a preset real-time analysis model based on the current residual cluster resources to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
In one possible implementation manner, the obtaining unit is configured to query a database storing cluster resource usage, and extract cluster resource usage in a predetermined historical time period from the database;
the cluster resource use conditions in the database are arranged and stored according to a preset arrangement sequence.
In one possible implementation manner, the cluster resource usage situation stored in the database is arranged according to a preset arrangement sequence, including:
the cluster resource use condition is stored in the database according to the sequence of the acquisition time, and the cluster resource use condition is acquired based on the preset time.
In one possible implementation manner, the second processing unit is specifically configured to determine, based on the current remaining cluster resources and the cluster resource usage situation of each time period configured in advance, whether the resource amount of the current remaining cluster resources and the resource amount of the cluster resource usage situation in the current preset time period satisfy a preset relationship through judging by using a predetermined real-time analysis model; if the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to meet the preset relation, or the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to not meet the preset relation, a prediction result aiming at the cluster resource use condition in the current preset time period is obtained.
In one possible implementation manner, the second processing unit is further configured to, if it is unable to determine whether the resource amount of the currently remaining cluster resource and the resource amount of the cluster resource usage situation in the current preset time period satisfy a preset relationship, analyze the cluster resource usage situation through a predetermined predictive analysis model, and determine a usage rule of the cluster resource usage situation in the historical time period; and predicting the cluster resource use condition in the current preset time period based on the use rule of the cluster resource use condition in the history time period to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
In one possible implementation manner, if there is an abnormal cluster resource usage in the historical time period, the second processing unit is configured to send a notification message carrying labeling information, where the labeling information is information for labeling the abnormal cluster resource usage.
In one possible implementation, the method further includes:
the third processing unit is used for carrying the prediction result in a notification message for pushing based on a preset strategy; and/or for storing the prediction result in the database.
In a third aspect, a computer readable storage medium is provided, where a computer program is stored, the program, when executed by a processor, implementing the cluster resource usage processing method described above.
In a fourth aspect, there is provided an electronic device comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is used for storing at least one executable instruction, and the executable instruction enables the processor to execute the operation corresponding to the cluster resource use condition processing method.
Compared with the prior art, the application has at least the following advantages:
acquiring cluster resource use conditions in a preset historical time period; analyzing the acquired cluster resource use condition and determining the current residual cluster resources; and then, based on the current residual cluster resources, analyzing and predicting the cluster resource use condition in the current preset time period through a preset real-time analysis model to obtain a prediction result aiming at the cluster resource use condition in the current preset time period. The method realizes the accurate prediction of the future cluster resource use condition so as to effectively adjust the configuration of the cluster resource in time, thereby avoiding the waste of the cluster resource, improving the utilization rate of the cluster resource and reducing the consumption cost of the cluster resource; and through effective discernment, reduce invalid alarm information's transmission to the maximum extent, promote user's use impression.
Drawings
FIG. 1 is a flowchart of a cluster resource usage processing method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of a specific process flow of one possible implementation of a cluster resource usage processing method according to an embodiment of the present application;
FIG. 3 is a schematic linear analysis of an analytical prediction model provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a cluster resource usage processing device provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to a cluster resource usage processing method according to an embodiment of the present application.
Detailed Description
The application provides a cluster resource use condition processing method, a cluster resource use condition processing device and electronic equipment, and a detailed description of specific embodiments of the application is provided below with reference to the accompanying drawings.
Embodiments of the present application are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are exemplary only for the purpose of illustrating the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless expressly stated otherwise, as understood by those skilled in the art. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. The term "and/or" as used herein includes all or any element and all combination of one or more of the associated listed items.
It will be understood by those skilled in the art that all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs unless defined otherwise. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
As shown in fig. 1, a flow chart of a cluster resource usage processing method provided in the present application is shown, and the method includes the following steps:
step S101, obtaining cluster resource use conditions in a preset historical time period;
step S102, analyzing the cluster resource use condition and determining the current residual cluster resource;
step S103, analyzing and predicting the cluster resource use condition in the current preset time period through a preset real-time analysis model based on the current residual cluster resources to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
In the embodiment, the accurate prediction of the future cluster resource use condition is realized, so that the configuration of the cluster resource can be timely and effectively adjusted, the waste of the cluster resource is avoided, the utilization rate of the cluster resource is improved, and the consumption cost of the cluster resource is reduced.
Based on the technical solution provided in the embodiments of the present application, the following describes the technical solution in detail, as shown in fig. 2, which is a specific process flow diagram of one possible implementation manner of the cluster resource usage processing method provided in the embodiments of the present application.
In one possible implementation, the foregoing processing of step S101 specifically includes the processing of step S201 described below.
Step S201, inquiring a database, and extracting cluster resource use conditions in a preset historical time period.
In this step, the database storing the cluster resource usage is queried, so that the required cluster resource usage is extracted from the database, and in this embodiment, the required cluster resource usage is the usage in a predetermined historical time period.
And for the database storing the cluster resource use cases, wherein the stored cluster resource use cases are stored in the database after being collected based on preset time, and the cluster resource use cases stored in the database are arranged according to a preset arrangement sequence.
In one possible implementation, polling collection of cluster resource usage of all users is performed at intervals (e.g., every 5 minutes), and cluster resource usage of each user collected at each time is stored in the database according to the sequence of collection times.
In one possible implementation, the foregoing processing of step S102 specifically includes the following processing of step S202 to step S206.
Step S202, analyzing the acquired cluster resource use condition and determining the current residual cluster resource.
In the step, the cluster resource usage condition in the acquired historical time period is analyzed, so that the current quantity of the cluster resources can be determined.
Step S203 determines whether the resource amount of the currently remaining cluster resources and the resource amount of the cluster resource usage in the current preset time period satisfy the preset relationship.
In this step, specifically, based on the current remaining cluster resources and the cluster resource usage situation of each time period configured in advance, the judgment is performed through a predetermined real-time analysis model, so as to determine whether the resource amount of the current remaining cluster resources and the resource amount of the cluster resource usage situation in the current preset time period satisfy the preset relationship.
Specifically, if it can be determined that the resource amount of the currently remaining cluster resource and the resource amount of the cluster resource usage in the current preset time period satisfy the preset relationship or it can be determined that the resource amount of the currently remaining cluster resource and the resource amount of the cluster resource usage in the current preset time period do not satisfy the preset relationship, the process goes to step S204, otherwise, the process goes to step S205.
For the above-mentioned process of determining whether the current remaining amount of resources of the cluster resources and the amount of resources of the cluster resources in the current preset time period satisfy the preset relationship, in one possible implementation manner, the determining that the current remaining amount of resources of the cluster resources satisfies the preset relationship may include determining that the current remaining amount of resources of the cluster resources can support the amount of resources of the cluster resources in the current preset time period, or determining that the current remaining amount of resources of the cluster resources cannot support the amount of resources of the cluster resources in the current preset time period at all, for example, the current remaining amount of resources of 1T, where the current preset time period is 2 days, the maximum amount of resources occupied per day is 2T, and it is obvious that the remaining amount of resources of 1T is the amount of resources occupied that cannot support the future 2 days.
The inability to determine that the preset relationship is satisfied may include an inability to determine that the current remaining amount of resources of the cluster resources can support the usage of the cluster resources in the current preset time period, such as the current remaining amount of resources of 3T, where the preset time period is 2 days, the maximum amount of resources occupied per day is 2T, but the actual usage of the resources per day is not determined, that is, if 1T is actually occupied per day, the remaining amount of resources can satisfy the usage of the resources of 2 days in the future, but if 2T is occupied for both days, the remaining amount of resources cannot satisfy the usage of the resources of 2 days in the future, which is the case where the current remaining amount of resources of the cluster resources cannot be determined to support the usage of the cluster resources in the current preset time period.
The real-time analysis model is mainly a model for comparing the average value of cluster resource usage in a past period (such as 2-7 days) with the increment value of a current preset period (such as 24 and 48 hours) based on the current usage.
Step S204, obtaining a prediction result aiming at the cluster resource use condition in the current preset time period.
Step S205, analyzing the cluster resource use condition and determining the use rule of the cluster resource use condition in the historical time period.
In the step, analysis is carried out through a preset predictive analysis model, so that the usage rule of the cluster resource usage situation in the historical time period is determined.
Wherein in one possible implementation, the analytical predictive model is constructed by means of a "linear regression" approach.
The analytical prediction model may be represented by an equation: y=a+b x+e, where a represents the intercept, b represents the slope of the line, and e is the error term. A relationship is established between the dependent variable (Y) and one or more independent variables (X) by using a best fit straight line (i.e., regression line), as shown in fig. 3. By this equation, the value of the target variable can be predicted from a given predicted variable(s).
Step S206, predicting based on the determined usage rules to obtain a prediction result corresponding to the cluster resource usage situation in the current preset time period.
In the step, after determining the usage rule of the cluster resource in the historical time period, the usage rule is based on the usage rule to predict the cluster resource in the current preset time period, and a prediction result corresponding to the cluster resource in the current preset time period is obtained.
If abnormal cluster resource use conditions exist in the cluster resource use conditions in the historical time period, a notification message carrying marking information can be sent, and the marking information is information for marking the abnormal cluster resource use conditions.
Step S207, subsequent processing based on the prediction result.
After obtaining the prediction result for the cluster resource usage situation in the current preset time period, the following processing may be further performed:
(1) The prediction results are stored in a database.
In the processing, the corresponding prediction result is only required to be stored in a database, and the corresponding checking is carried out when the follow-up needs exist.
(2) Based on a preset strategy, carrying the prediction result in the notification message for pushing.
In the processing, the corresponding prediction result is carried in a notification message and pushed to a corresponding operation user through a pre-configured strategy, so that the operation user can perform corresponding adjustment processing according to the prediction result.
Wherein, the preset strategy may include one of the following:
directly sending the notification message carrying the prediction result;
and sending the notification message carrying the prediction result at preset time intervals.
Of course, the foregoing preset strategy is merely illustrative of two possible implementations listed in the technical solutions of the present application, and is not limited thereto.
(3) And storing the predicted result in a database, and carrying the predicted result in a notification message for pushing based on a preset strategy.
In this process, not only the corresponding prediction result is stored in the database, but also the corresponding prediction result is carried in the notification message through a pre-configured policy and is pushed to the corresponding operation user, so that the operation user performs the corresponding adjustment process according to the prediction result.
In the embodiment, the accurate prediction of the future cluster resource use condition is realized, so that the configuration of the cluster resource can be timely and effectively adjusted, thereby avoiding the waste of the cluster resource, improving the utilization rate of the cluster resource and reducing the consumption cost of the cluster resource; and through effective discernment, reduce invalid alarm information's transmission to the maximum extent, promote user's use impression.
Based on the technical solutions provided in the present application, a specific embodiment is described below.
In one possible implementation, the database stores cluster resource usage of all users collected in a plurality of time periods, and each time period is 5 minutes, that is, collection processing of cluster resource usage of all users is performed every 5 minutes. Corresponding data of cluster resource usage conditions in all days of the history are extracted from the database, and corresponding analysis is carried out on the extracted cluster resource usage conditions in all days of the history, so that the current residual cluster resource is determined to be 3T, the maximum daily resource occupation is determined to be 2T, and whether the residual resource can meet the resource occupation condition of 2 days in the future is determined, so that whether the residual resource can meet the resource occupation condition of 2 days in the future cannot be accurately determined based on the situation. Therefore, the predetermined analysis prediction model is also required to be scheduled to perform corresponding processing, the resource quantity of cluster resources which only occupy 1T every day on average is determined by determining the cluster resource usage condition of 7 days, based on the resource quantity, the prediction result of the resource quantity of the cluster resources required by 2 days in the future can be determined by the residual 3T resource quantity, and the prediction result of the corresponding cluster resource usage condition of 2 days in the future is carried in a notification message and sent to an operation and maintenance person, so that the operation and maintenance person can perform corresponding operation and processing based on the prediction result.
The embodiment of the application provides a cluster resource usage processing device 40, as shown in fig. 4, the information processing device 40 may include: an acquisition unit 41, a first processing unit 42, a second processing unit 43, and a third processing unit 44.
An obtaining unit 41, configured to obtain cluster resource usage in a predetermined historical period;
a first processing unit 42, configured to analyze the cluster resource usage situation, and determine a current remaining cluster resource;
the second processing unit 43 is configured to perform analysis and prediction processing on the cluster resource usage situation in the current preset time period through a predetermined real-time analysis model based on the current remaining cluster resources, so as to obtain a prediction result for the cluster resource usage situation in the current preset time period.
In a possible implementation manner, the obtaining unit 41 is configured to query a database storing cluster resource usage, and extract cluster resource usage in a predetermined historical time period from the database;
the cluster resource use conditions in the database are arranged and stored according to a preset arrangement sequence.
In one possible implementation manner, the cluster resource usage situation stored in the database is arranged according to a preset arrangement sequence, including:
the cluster resource use condition is stored in the database according to the sequence of the acquisition time, and the cluster resource use condition is acquired based on the preset time.
In one possible implementation manner, the second processing unit 43 is specifically configured to determine, based on the current remaining cluster resources and the preconfigured cluster resource usage situation of each time period, whether the resource amount of the current remaining cluster resources and the resource amount of the cluster resource usage situation in the current preset time period satisfy a preset relationship through judging by a predetermined real-time analysis model; if the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to meet the preset relation, or the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to not meet the preset relation, a prediction result aiming at the cluster resource use condition in the current preset time period is obtained.
In one possible implementation manner, the second processing unit 43 is further configured to, if it is not possible to determine whether the resource amount of the currently remaining cluster resource and the resource amount of the cluster resource usage situation in the current preset time period satisfy the preset relationship, analyze the cluster resource usage situation through a predetermined predictive analysis model, and determine a usage rule of the cluster resource usage situation in the historical time period; and predicting the cluster resource use condition in the current preset time period based on the use rule of the cluster resource use condition in the history time period to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
In one possible implementation manner, if there is an abnormal cluster resource usage in the historical period, the second processing unit 43 is configured to send a notification message carrying labeling information, where the labeling information is information for labeling the abnormal cluster resource usage.
In one possible implementation, the method further includes:
a third processing unit 44, configured to carry the prediction result in a notification message for pushing based on a preset policy; and/or for storing the prediction result in the database.
The method realizes the accurate prediction of the future cluster resource use condition so as to effectively adjust the configuration of the cluster resource in time, thereby avoiding the waste of the cluster resource, improving the utilization rate of the cluster resource and reducing the consumption cost of the cluster resource; and through effective discernment, reduce invalid alarm information's transmission to the maximum extent, promote user's use impression.
The embodiment of the application also provides electronic equipment, as shown in fig. 5. The electronic device 2000 may include, but is not limited to: a processor 2001, a memory 2002, a communication bus 2003 for connecting the different components of the device to enable communication between the different components. The memory 2002 may store a computer program and data, and the processor 2001 may implement the methods in the embodiments of the present application by calling the computer program in the memory 2002 to perform corresponding actions and processes. The structure of the electronic device 2000 shown in the drawings is not limiting of the embodiments of the present application.
The electronic device 2000 may also include a display 2004. The processor 2001 may display user interfaces, prompts, or interactions with the end user that are needed or can be displayed via the display 2004 during execution of the actions or processes.
The processor 2001 may be a CPU, general purpose processor, DSP, ASIC, FPGA or other programmable logic device, transistor logic device, hardware components, or any combination thereof. Which may implement or perform the various exemplary logic blocks, modules, and circuits described in connection with this disclosure. The processor 2001 may also be a combination of computing functions, e.g., comprising one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
Communication bus 2003 may include a pathway to transfer information between the aforementioned components. The communication bus 2003 may be a PCI bus or an EISA bus, or the like. The communication bus 2003 may be classified into an address bus, a data bus, a control bus, and the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
Memory 2002 may be, but is not limited to, a ROM or other type of static storage device that can store static information and instructions, a RAM or other type of dynamic storage device that can store information and instructions, an EEPROM, a CD-ROM or other optical disk storage, optical disk storage (including compact disks, laser disks, optical disks, digital versatile disks, blu-ray disks, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
The electronic device 2000 may also include an input/output component 2005 through which input/output of information is accomplished, as well as user interactions with the device.
In practical applications, the input/output component 2005 may be configured according to practical needs, and may include, but is not limited to, a keyboard, a mouse, a touch screen, an audio component, a video component, and the like. For example, the electronic device may receive a trigger instruction of a user through the touch screen, and the processor may perform a corresponding action or process based on the trigger instruction of the user. The audio component/video component may be configured for input and/or output of audio/video signals of the device. The audio component may include, but is not limited to, a speaker, a microphone, etc., and the video component may include, but is not limited to, a camera, a video interface (HDMI, VGA, and/or DVI interface), etc.
It will be appreciated that each of the input/output components 2005 described above may implement processing of information, either alone or in combination.
The electronic device 2000 may also include a communication component 2006, the communication component 2006 being configured to enable communication interactions between the electronic device 2000 and other devices (e.g., electronic devices, storage devices). Among other things, the communication component 2006 can include, but is not limited to, a wired communication component (e.g., a 3G, 4G, 5G, etc. mobile network communication unit), a wireless communication component (e.g., a bluetooth, WIFI communication unit), a USB communication component, an audio component, a video component, etc.
The electronic device 2000 may also include a power management module 2007, which may be configured for power supply of the device, conversion of device power, charge-discharge management of the power supply, etc., and which may also be configured with a charging interface.
It should be noted that the electronic device according to the embodiments of the present application may be specifically implemented as a smart phone, a smart television, a personal digital assistant (Personal Digital Assistant, PDA), a tablet computer, a desktop computer, a portable electronic device (e.g., a portable computer), a vehicle-mounted device, and the like.
The embodiment of the application provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and the program is executed by a processor to realize the cluster resource use condition processing method.
It will be understood by those within the art that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. Those skilled in the art will appreciate that these computer program instructions can be implemented in a processor of a general purpose computer, special purpose computer, or other programmable data processing method, such that the blocks of the block diagrams and/or flowchart illustration are implemented by the processor of the computer or other programmable data processing method.
All modules of the device can be integrated into a whole or can be separately deployed. The modules can be combined into one module or further split into a plurality of sub-modules.
Those skilled in the art will appreciate that the drawing is merely a schematic illustration of one preferred embodiment and that the modules or flows in the drawing are not necessarily required to practice the present application.
Those skilled in the art will appreciate that modules in an apparatus of an embodiment may be distributed in an apparatus of an embodiment as described in the embodiments, and that corresponding changes may be made in one or more apparatuses different from the present embodiment. The modules of the above embodiments may be combined into one module, or may be further split into a plurality of sub-modules.
The foregoing application serial numbers are merely for the purpose of description and do not represent the advantages or disadvantages of the embodiments.
The foregoing disclosure is only a few specific embodiments of the present application, however, the present application is not limited thereto and any variations that can be contemplated by those skilled in the art should fall within the scope of the present application.

Claims (12)

1. The cluster resource use condition processing method is characterized by comprising the following steps:
acquiring cluster resource use conditions in a preset historical time period;
analyzing the cluster resource use condition and determining the current residual cluster resources;
based on the current residual cluster resources, analyzing and predicting the cluster resource use condition in the current preset time period through a preset real-time analysis model to obtain a prediction result aiming at the cluster resource use condition in the current preset time period;
the analyzing and predicting the cluster resource usage situation in the current preset time period through the preset real-time analysis model based on the current residual cluster resources to obtain a prediction result aiming at the cluster resource usage situation in the current preset time period, including:
judging through a preset real-time analysis model based on the current residual cluster resources and the preset cluster resource use condition of each time period, and determining whether the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period meet a preset relation;
if the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to meet the preset relation or the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to not meet the preset relation, a prediction result aiming at the cluster resource use condition in the current preset time period is obtained;
the method comprises the steps of analyzing, predicting and processing the cluster resource use condition in a current preset time period through the preset real-time analysis model based on the current residual cluster resource to obtain a prediction result aiming at the cluster resource use condition in the current preset time period, and further comprises the following steps:
if the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period cannot be determined, analyzing the cluster resource use condition through a preset predictive analysis model, and determining the use rule of the cluster resource use condition in the historical time period;
and predicting the cluster resource use condition in the current preset time period based on the use rule of the cluster resource use condition in the history time period to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
2. The method of claim 1, wherein obtaining cluster resource usage for a predetermined historical period of time comprises:
inquiring a database storing cluster resource use conditions, and extracting the cluster resource use conditions in a preset historical time period from the database;
the cluster resource use conditions stored in the database are arranged according to a preset arrangement sequence.
3. The method of claim 2, wherein the cluster resource usage stored in the database is arranged according to a preset arrangement sequence, comprising:
the cluster resource use condition is stored in the database according to the sequence of the acquisition time, and the cluster resource use condition is acquired based on the preset time.
4. The method of claim 1, wherein if there is an abnormal cluster resource usage in the historical time period, sending a notification message carrying labeling information, where the labeling information is information for labeling the abnormal cluster resource usage.
5. The method of claim 1, further comprising, after obtaining the prediction result for the cluster resource usage in the current preset time period, at least one of:
carrying the prediction result in a notification message for pushing based on a preset strategy;
storing the prediction result in a database.
6. A cluster resource usage processing apparatus, comprising:
the acquisition unit is used for acquiring cluster resource use conditions in a preset historical time period;
the first processing unit is used for analyzing the cluster resource use condition and determining the current residual cluster resource;
the second processing unit is used for analyzing and predicting the cluster resource use condition in the current preset time period through a preset real-time analysis model based on the current residual cluster resources to obtain a prediction result aiming at the cluster resource use condition in the current preset time period;
the second processing unit is specifically configured to determine, according to a preset real-time analysis model, whether a resource amount of the current remaining cluster resource and a resource amount of the cluster resource usage condition in a current preset time period satisfy a preset relationship, based on the current remaining cluster resource and the preset cluster resource usage condition in each time period; if the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to meet the preset relation or the resource quantity of the current residual cluster resources and the resource quantity of the cluster resource use condition in the current preset time period can be determined to not meet the preset relation, a prediction result aiming at the cluster resource use condition in the current preset time period is obtained;
the second processing unit is further configured to analyze the cluster resource usage situation through a predetermined predictive analysis model, and determine a usage rule of the cluster resource usage situation in the historical time period if it is not possible to determine whether the resource amount of the current remaining cluster resource and the resource amount of the cluster resource usage situation in the current preset time period satisfy a preset relationship; and predicting the cluster resource use condition in the current preset time period based on the use rule of the cluster resource use condition in the history time period to obtain a prediction result aiming at the cluster resource use condition in the current preset time period.
7. The apparatus of claim 6, wherein the obtaining unit is configured to query a database storing cluster resource usage, and extract cluster resource usage in a predetermined historical time period from the database;
the cluster resource use conditions in the database are arranged and stored according to a preset arrangement sequence.
8. The apparatus of claim 7, wherein the cluster resource usage stored in the database is arranged according to a preset arrangement sequence, comprising:
the cluster resource use condition is stored in the database according to the sequence of the acquisition time, and the cluster resource use condition is acquired based on the preset time.
9. The apparatus of claim 6, wherein the second processing unit is configured to send a notification message carrying labeling information if there is an abnormal cluster resource usage in the history period, where the labeling information is information for labeling the abnormal cluster resource usage.
10. The apparatus as recited in claim 6, further comprising:
the third processing unit is used for carrying the prediction result in a notification message for pushing based on a preset strategy; and/or for storing the prediction result in a database.
11. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements the cluster resource usage processing method of any of claims 1-5.
12. An electronic device, comprising: the device comprises a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface complete communication with each other through the communication bus;
the memory is configured to store at least one executable instruction, where the executable instruction causes the processor to perform the operations corresponding to the cluster resource usage processing method according to any one of claims 1 to 5.
CN201811057086.6A 2018-09-11 2018-09-11 Cluster resource use condition processing method and device and electronic equipment Active CN110888733B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811057086.6A CN110888733B (en) 2018-09-11 2018-09-11 Cluster resource use condition processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811057086.6A CN110888733B (en) 2018-09-11 2018-09-11 Cluster resource use condition processing method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110888733A CN110888733A (en) 2020-03-17
CN110888733B true CN110888733B (en) 2023-12-26

Family

ID=69745504

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811057086.6A Active CN110888733B (en) 2018-09-11 2018-09-11 Cluster resource use condition processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110888733B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114189482A (en) * 2021-12-14 2022-03-15 郑州阿帕斯数云信息科技有限公司 Control method, device and system for cluster resources
CN115378842A (en) * 2022-08-26 2022-11-22 中国银行股份有限公司 Resource monitoring method, device, storage medium and equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427473A (en) * 2011-11-28 2012-04-25 中国联合网络通信集团有限公司 Method and system for constructing cross-platform resource
CN105468458A (en) * 2015-11-26 2016-04-06 北京航空航天大学 Resource scheduling method and system of computer cluster
CN105589750A (en) * 2015-07-07 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) resource scheduling method and server
CN105591809A (en) * 2015-10-12 2016-05-18 杭州华三通信技术有限公司 Resource distribution method and device
CN105872114A (en) * 2016-06-22 2016-08-17 北京邮电大学 Video monitoring cloud platform resource scheduling method and device
CN106161525A (en) * 2015-04-03 2016-11-23 阿里巴巴集团控股有限公司 A kind of many cluster management methods and equipment
CN106201661A (en) * 2016-07-20 2016-12-07 北京百度网讯科技有限公司 Method and apparatus for elastic telescopic cluster virtual machine
CN106326002A (en) * 2015-07-10 2017-01-11 阿里巴巴集团控股有限公司 Resource scheduling method, device and equipment
CN107315636A (en) * 2016-04-26 2017-11-03 中国移动通信集团河北有限公司 A kind of resource availability method for early warning and device
CN107343023A (en) * 2017-05-25 2017-11-10 北京奇艺世纪科技有限公司 Resource allocation methods, device and electronic equipment in a kind of Mesos management cluster
CN108009016A (en) * 2016-10-31 2018-05-08 华为技术有限公司 A kind of balancing resource load control method and colony dispatching device
CN108073448A (en) * 2016-11-15 2018-05-25 北京金山云网络技术有限公司 Host resource allocation methods, device, host dispatching method and device
CN108427604A (en) * 2018-02-06 2018-08-21 华为技术有限公司 Resource adjusting method, device and the cloud platform of cluster

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8296418B2 (en) * 2008-01-21 2012-10-23 International Business Machines Corporation Optimized modification of a clustered computer system
US20170078850A1 (en) * 2015-09-14 2017-03-16 International Business Machines Corporation Predicting location-based resource consumption in mobile devices

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102427473A (en) * 2011-11-28 2012-04-25 中国联合网络通信集团有限公司 Method and system for constructing cross-platform resource
CN106161525A (en) * 2015-04-03 2016-11-23 阿里巴巴集团控股有限公司 A kind of many cluster management methods and equipment
CN105589750A (en) * 2015-07-07 2016-05-18 杭州华三通信技术有限公司 CPU (Central Processing Unit) resource scheduling method and server
CN106326002A (en) * 2015-07-10 2017-01-11 阿里巴巴集团控股有限公司 Resource scheduling method, device and equipment
CN105591809A (en) * 2015-10-12 2016-05-18 杭州华三通信技术有限公司 Resource distribution method and device
CN105468458A (en) * 2015-11-26 2016-04-06 北京航空航天大学 Resource scheduling method and system of computer cluster
CN107315636A (en) * 2016-04-26 2017-11-03 中国移动通信集团河北有限公司 A kind of resource availability method for early warning and device
CN105872114A (en) * 2016-06-22 2016-08-17 北京邮电大学 Video monitoring cloud platform resource scheduling method and device
CN106201661A (en) * 2016-07-20 2016-12-07 北京百度网讯科技有限公司 Method and apparatus for elastic telescopic cluster virtual machine
CN108009016A (en) * 2016-10-31 2018-05-08 华为技术有限公司 A kind of balancing resource load control method and colony dispatching device
CN108073448A (en) * 2016-11-15 2018-05-25 北京金山云网络技术有限公司 Host resource allocation methods, device, host dispatching method and device
CN107343023A (en) * 2017-05-25 2017-11-10 北京奇艺世纪科技有限公司 Resource allocation methods, device and electronic equipment in a kind of Mesos management cluster
CN108427604A (en) * 2018-02-06 2018-08-21 华为技术有限公司 Resource adjusting method, device and the cloud platform of cluster

Also Published As

Publication number Publication date
CN110888733A (en) 2020-03-17

Similar Documents

Publication Publication Date Title
CN109271411B (en) Report generation method, report generation device, computer equipment and storage medium
CN107678803B (en) Application control method and device, storage medium and electronic equipment
US20150244645A1 (en) Intelligent infrastructure capacity management
US10783002B1 (en) Cost determination of a service call
US20200219016A1 (en) Method for Cleaning Up Background Application, Storage Medium, and Electronic Device
CN110830437B (en) Data compression method, device, equipment and storage medium for high-frequency service data
CN109446041B (en) Server pressure early warning method and system and terminal equipment
CN109445884B (en) Function label display method and terminal equipment
CN104007806A (en) Method and device for controlling CPU frequency in Android system and equipment
CN108243032B (en) Method, device and equipment for acquiring service level information
WO2019062405A1 (en) Application program processing method and apparatus, storage medium, and electronic device
CN110888733B (en) Cluster resource use condition processing method and device and electronic equipment
CN109358904B (en) Centralized distribution of application analytics
CN109919636B (en) Credit grade determining method, system and related components
CN110866040A (en) User portrait generation method, device and system
CN104202305A (en) Transcoding processing method and device, server
CN109447694B (en) User characteristic analysis method and system
CN110729038A (en) Cost sharing method and device, electronic equipment and computer-readable storage medium
CN116756522B (en) Probability forecasting method and device, storage medium and electronic equipment
CN105760280B (en) Power consumption monitoring system and method
CN106940710B (en) Information pushing method and device
CN110347546B (en) Dynamic adjustment method, device, medium and electronic equipment for monitoring task
CN111835536B (en) Flow prediction method and device
US20160253591A1 (en) Method and apparatus for managing performance of database
CN110888898A (en) Cluster resource use condition processing method and device and electronic equipment

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
TA01 Transfer of patent application right

Effective date of registration: 20231204

Address after: 300450 No. 9-3-401, No. 39, Gaoxin 6th Road, Binhai Science Park, Binhai New Area, Tianjin

Applicant after: 3600 Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Applicant before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant