CN112084022B - Project capacity planning method and device, computer equipment and storage medium - Google Patents

Project capacity planning method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112084022B
CN112084022B CN202010851042.1A CN202010851042A CN112084022B CN 112084022 B CN112084022 B CN 112084022B CN 202010851042 A CN202010851042 A CN 202010851042A CN 112084022 B CN112084022 B CN 112084022B
Authority
CN
China
Prior art keywords
capacity
project
value
memory
index data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010851042.1A
Other languages
Chinese (zh)
Other versions
CN112084022A (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.)
Beijing Shuidi Technology Group Co ltd
Original Assignee
Beijing Shuidi 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 Beijing Shuidi Technology Group Co ltd filed Critical Beijing Shuidi Technology Group Co ltd
Priority to CN202010851042.1A priority Critical patent/CN112084022B/en
Publication of CN112084022A publication Critical patent/CN112084022A/en
Application granted granted Critical
Publication of CN112084022B publication Critical patent/CN112084022B/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/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention provides a project capacity planning method, a project capacity planning device, computer equipment and a storage medium. In the technical scheme provided by the embodiment of the invention, the original index data of the project is obtained according to the set time interval; generating index parameters according to the original index data; standard index data of the project are obtained; generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project; and generating a project planning capacity value according to the initial capacity value and the set capacity threshold value, and planning project capacity according to project requirements, thereby saving resources.

Description

Project capacity planning method and device, computer equipment and storage medium
[ field of technology ]
The present invention relates to the field of computer technologies, and in particular, to a project capacity planning method, apparatus, computer device, and storage medium.
[ background Art ]
The development process of the new project comprises a capacity planning link, and the existing project capacity planning method generally needs to carry out capacity planning on the new project based on specified default parameters, namely: each item is allocated a fixed size capacity, but for items with marginal traffic or less traffic, the default size capacity is not fully utilized. The method of allocating a fixed size capacity to each item cannot plan the item capacity for the item according to the item demand, resulting in resource waste.
[ invention ]
In view of this, the embodiments of the present invention provide a project capacity planning method, apparatus, computer device, and storage medium, which can plan project capacity according to project requirements, thereby saving resources.
In one aspect, an embodiment of the present invention provides a project capacity planning method, where the method includes:
acquiring original index data of the project according to a set time interval;
generating index parameters according to the original index data;
standard index data of the project are obtained;
generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project;
and generating a project planning capacity value according to the initial capacity value and the set capacity threshold.
Optionally, acquiring standard index data of the project specifically includes:
receiving standard service of items input by a user;
standard index data corresponding to the standard service is obtained.
Optionally, generating the project planning capacity value according to the initial capacity value and the set capacity threshold value includes:
if the initial capacity value is judged to be the same as the capacity threshold value, the initial capacity value is used as a project planning capacity value.
Optionally, the method further comprises:
if the initial capacity value is judged to be different from the capacity threshold value, the initial capacity value is visually displayed;
receiving a capacity modification value input by a user according to the initial capacity value;
judging whether the capacity modification value is the same as the capacity threshold value;
and if the capacity modification value is judged to be the same as the capacity threshold value, taking the capacity modification value as a project planning capacity value.
Optionally, the method further comprises:
if the capacity modification value is different from the capacity threshold value, generating a modification failure message, and continuously executing the step of receiving the capacity modification value input by the user according to the initial capacity value.
Optionally, the method further comprises:
starting the project through the distributed tracking system according to the project planning capacity value, and generating current index data of the project;
taking the current index data as the original index data of the project;
storing the original index data of the item in a persistence container, and continuing to perform the step of acquiring the original index data of the item at set time intervals.
Optionally, the index parameter includes an average duty cycle of the younger generation reclaimed memory and a standard deviation of the younger generation reclaimed memory; the standard index data comprises a standard initial memory, a maximum memory of a current project, an acquired memory attenuation coefficient and a project old-age memory;
generating an initial capacity value according to standard index data, index parameters and the acquired maximum memory of the project, wherein the initial capacity value comprises the following steps:
by the formulaAnd calculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the average duty ratio of the old generation memory of the project and the recovery memory of the young generation and the standard deviation of the recovery memory of the young generation to generate an initial capacity value. Wherein M is an initial capacity value, M 0 Is standard initial memory, M 1 Maximum memory for an item, lambda is the memory decay coefficient, M 2 Is a substitute for memory for the project old.
In another aspect, an embodiment of the present invention provides a project capacity planning apparatus, including:
a first acquisition unit for acquiring original index data of the item at set time intervals;
the first generation unit is used for generating index parameters according to the original index data;
a second acquisition unit configured to acquire standard index data of the item;
the second generation unit is used for generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project;
and the third generation unit is used for generating a project planning capacity value according to the initial capacity value and the set capacity threshold value.
On the other hand, the embodiment of the invention provides a storage medium, which comprises a stored program, wherein the program is used for controlling equipment where the storage medium is located to execute the project capacity planning method when running.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is configured to store information including program instructions, and the processor is configured to control execution of the program instructions, and the program instructions, when loaded and executed by the processor, implement the project capacity planning method described above.
In the scheme of the embodiment of the invention, the original index data of the project is obtained according to the set time interval; generating index parameters according to the original index data; standard index data of the project are obtained; generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project; and generating a project planning capacity value according to the initial capacity value and the set capacity threshold value, and planning project capacity according to project requirements, thereby saving resources.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a system architecture diagram of a project capacity planning method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a project capacity planning method according to an embodiment of the present invention;
FIG. 3 is a flowchart of another project capacity planning method according to an embodiment of the present invention;
FIG. 4 is a trend line graph of Young GC frequency according to an embodiment of the present invention;
FIG. 5 is a trend line graph of a memory according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a project capacity planning apparatus according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a computer device according to an embodiment of the present invention.
[ detailed description ] of the invention
For a better understanding of the technical solution of the present invention, the following detailed description of the embodiments of the present invention refers to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one relationship describing the association of the associated objects, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that although the terms first, second, etc. may be used in embodiments of the present invention to describe the set threshold values, these set threshold values should not be limited to these terms. These terms are only used to distinguish the set thresholds from each other. For example, a first set threshold may also be referred to as a second set threshold, and similarly, a second set threshold may also be referred to as a first set threshold, without departing from the scope of embodiments of the present invention.
Fig. 1 is a system architecture diagram of a project capacity planning method according to an embodiment of the present invention, where, as shown in fig. 1, the system architecture includes a data acquisition layer 110, a data storage layer 120, a data calculation layer 130, and a data display layer 140. Wherein the data acquisition layer 110 includes an acquisition module 111; the data storage layer 120 includes a first storage module 121 and a second storage module 122, and the data calculation layer 130 includes an acquisition module 131 and a calculation module 132; the data presentation layer 140 includes a presentation module 141, a modification module 142, and a startup module 143.
The acquisition module 111 acquires current index data of the item, including index data generated by the distributed system start-up item, and transmits the current index data to the first storage module 121. The first storage module 121 takes current index data as raw index data and stores the raw index data to a persistence container, which is an Elastic Search (ES) as an alternative. The acquisition module 131 acquires the original index data from the first storage module 121, and sends the original index data to the calculation module 132. The calculation module 132 calculates an index parameter according to the original index data, and sends the index parameter to the second storage module 122. The second storage module 122 stores the index parameters to a persistence container, which is a relational database management system (Mysql) as an alternative. The acquiring module 131 acquires standard index data corresponding to the standard service, and sends the standard index data to the calculating module 132. The calculation module 132 generates an initial capacity value according to the standard index data and the index parameter, and sends the initial capacity value to the presentation module 141. The display module 141 displays the initial capacity value on the user terminal of the user, so that the user can check the initial capacity value through the user terminal, and if the user inputs the capacity modification value according to the initial capacity value, the display module 141 receives the capacity modification value and sends the capacity modification value to the modification module 142. The modification module 142 takes the capacity modification value as a project plan capacity value and sends the project plan capacity value to the start module 143. The start module 143 starts the project according to the project plan capacity value.
In the technical scheme provided by the embodiment of the invention, the original index data of the project is obtained according to the set time interval; generating index parameters according to the original index data; standard index data of the project are obtained; generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project; and generating a project planning capacity value according to the initial capacity value and the set capacity threshold value, and planning project capacity according to project requirements, thereby saving resources.
Fig. 2 is a flowchart of a project capacity planning method according to an embodiment of the present invention, as shown in fig. 2, where the method includes:
step 101, acquiring original index data of the project according to a set time interval.
Step 102, generating index parameters according to the original index data.
Step 103, standard index data of the project are obtained.
Step 104, generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project.
Step 105, generating a project planning capacity value according to the initial capacity value and the set capacity threshold.
In the technical scheme provided by the embodiment of the invention, the original index data of the project is obtained according to the set time interval; generating index parameters according to the original index data; standard index data of the project are obtained; generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project; and generating a project planning capacity value according to the initial capacity value and the set capacity threshold value, and planning project capacity according to project requirements, thereby saving resources.
Fig. 3 is a flowchart of another project capacity planning method according to an embodiment of the present invention, as shown in fig. 3, where the method includes:
step 201, acquiring original index data of the project according to a set time interval.
In the embodiment of the invention, each step is executed by a server.
In the embodiment of the invention, the time interval can be set according to actual requirements, and as an alternative, the time interval is set for 5 days.
In the embodiment of the present invention, the original index data includes, but is not limited to, younger generation reclaimed memory (Young GC), project older generation memory, and project initialized memory value.
In the embodiment of the invention, a server acquires the original index data of the project from a persistence container. Among them, persistence containers include, but are not limited to, ES, embedded database engine (H2), or Mysql. As an alternative, the server obtains the original index data of the item from the ES.
In the embodiment of the invention, the aggregate query is carried out from the ES to obtain the original index data, so that the query efficiency is higher, the granularity is finer, and the finer the granularity of the index data is in the aspects of calculation and statistics, the more accurate the calculation result is.
Step 202, generating index parameters according to the original index data.
In the embodiment of the invention, the index parameters comprise the average duty ratio of the Young GC and the standard deviation of the Young GC.
In the embodiment of the invention, the average duty ratio of Young GC is calculated according to Young GC, for example: the time interval is 5 days, the sum of Young GC of 5 days is divided by 5, and the average value of Young GC is calculated; dividing the Young GC of each day by the average value of the Young GC, and calculating the ratio of the Young GC of each day; the average Young GC duty cycle was calculated by dividing the Young GC duty cycle per day by 5.
In the embodiment of the invention, the standard deviation of Young GC is calculated according to the Young GC by a standard deviation formula.
Further, the index parameters are stored to a persistence container. Wherein the persistence container includes, but is not limited to, ES, H2, or Mysql. As an alternative, the index parameter is stored to Mysql.
Step 203, receiving standard service of the project input by the user.
In the embodiment of the invention, the user can select the standard service of the project according to the project requirement and input the selected standard service into the server.
And 204, acquiring standard index data corresponding to the standard service.
In the embodiment of the invention, each standard service comprises corresponding standard index data.
In the embodiment of the invention, the standard index data comprises a standard initial memory, a maximum memory of a current project, an acquired memory attenuation coefficient and a project old-age memory.
Further, a maximum memory of the item is obtained.
Step 205, generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the item.
Specifically, by the formulaAnd calculating the standard initial memory, the maximum memory of the item, the memory attenuation coefficient, the old generation memory of the item, the average duty ratio of the Young GC and the standard deviation of the Young GC to generate an initial capacity value. Wherein the method comprises the steps ofM is the initial capacity value, M 0 Is standard initial memory, M 1 Maximum memory for an item, lambda is the memory decay coefficient, M 2 Is a substitute for memory for the project old.
As an alternative, the memory decay factor is 1.
Step 206, judging whether the initial capacity value is the same as the capacity threshold, if so, executing step 207; if not, go to step 208.
In an embodiment of the present invention, the capacity value includes a memory capacity value or a central processing unit (Central Processing Unit, CPU) capacity value.
In the embodiment of the invention, the capacity threshold value can be changed according to actual conditions.
In the embodiment of the present invention, if it is determined that the initial capacity value is the same as the capacity threshold, it indicates that the initial capacity value matches the capacity value required by the item, and step 207 is continuously executed; if it is determined that the initial capacity value is different from the capacity threshold, it indicates that the initial capacity value is not identical to the capacity value required by the item, and step 208 is continued.
Step 207, taking the initial capacity value as the project planning capacity value, and ending the flow.
In the embodiment of the present invention, if the initial capacity value matches the capacity value required by the project, the capacity value can be planned for the project according to the initial capacity value, namely: the initial capacity value is taken as the project planning capacity value.
Further, the project planning capacity value is visually displayed, and as an alternative, the project planning capacity value can be displayed on a user terminal of the user, so that the user can view the project planning capacity value of the project through the user terminal. User terminals include, but are not limited to, cell phones, tablet computers, desktop computers, laptop computers, handheld computers, wearable devices, head-mounted displays, reader devices, notebook computers, or Ultra-Mobile Personal Computer (UMPC for short).
Further, the user can also input a time period on the user terminal, and the server can query a trend line graph of the Young GC frequency or a trend line graph of the memory in the time period according to the time period input by the user, and display the trend line graph through the user terminal so as to enable the user to view the trend of the Young GC frequency or the trend of the memory use condition of the content value in the time period through the user terminal.
For example: fig. 4 is a trend line graph of Young GC frequency according to an embodiment of the present invention. As shown in fig. 4, the horizontal axis of the trend line graph represents time, the vertical axis represents Young GC frequency, and the trend line graph shown in fig. 4 represents 20 on 7 days of 8 months: 52:00 to 8 months 7 days 21:07: young GC frequency per minute during a period of 00. The user can judge whether the project planning capacity value of the project is reasonable according to the trend of the Young GC frequency in the graph.
For example: fig. 5 is a trend line diagram of a memory according to an embodiment of the present invention. As shown in fig. 5, the horizontal axis of the trend line graph represents time, the vertical axis represents memory, and the trend line graph shown in fig. 5 represents 20 at 8 months and 7 days: 52:00 to 8 months 7 days 21:05:45 per minute of memory usage. As shown in fig. 5, the solid pattern indicates the maximum memory of the item at each point in time, and the open pattern indicates the actual use of the item at each point in time. The user can judge whether the project planning capacity value of the project is reasonable or not according to the trend of the memory use condition.
In the embodiment of the invention, the server can inquire the overall data and the modified trend line graph of the project in the appointed time period, and can more intuitively observe the project resource optimization trend.
Further, the user may invoke an application performance monitoring (Application Performance Monitoring, abbreviated: APM) service to view the project plan capacity value for the project through the APM page.
As another alternative, the user may also input a query command to query Young GC and the indicator fitness of the item, where the indicator fitness includes the fitness of the standard indicator data and the indicator data of the item.
In the embodiment of the invention, the initial capacity value is compared with the set capacity threshold value, so that whether the initial capacity value accords with the capacity value required by the project is judged, if the initial capacity value accords with the capacity value required by the project is judged, the initial capacity value is used as the project planning capacity value, so that the project can fully utilize the planning capacity value, and the utilization rate of the project capacity is improved.
And step 208, visually displaying the initial capacity value.
In the embodiment of the invention, the visually displayed bearing interface comprises a modification entry identifier, and as an alternative, the modification entry identifier is a modification button, and the user can enter the modification interface by clicking the modification button.
In the embodiment of the invention, the initial capacity value is displayed on the user terminal of the user, so that the user can check the project planning capacity value of the project through the user terminal.
Step 209, receiving a capacity modification value input by a user according to the initial capacity value.
In the embodiment of the invention, a user checks the project planning capacity value of the project through the user terminal, enters a modification interface through the modification entry mark, and inputs a capacity modification value according to the initial capacity value in the modification interface.
Step 210, judging whether the capacity modification value is the same as the capacity threshold, if so, executing step 211; if not, go to step 215.
In the embodiment of the invention, the capacity modification value comprises a memory capacity modification value or a CPU capacity modification value.
In the embodiment of the invention, the capacity threshold can be set according to actual requirements.
In the embodiment of the present invention, if it is determined that the capacity modification value is the same as the capacity threshold, it indicates that the capacity modification value input by the user matches the capacity value required by the item, and step 211 is continuously executed; if it is determined that the capacity modification value is different from the capacity threshold, it indicates that the capacity modification value input by the user does not match the capacity value required for the item, and the process proceeds to step 215.
Step 211, taking the capacity modification value as a project planning capacity value.
In the embodiment of the present invention, if it is determined that the capacity modification value input by the user matches the capacity value required by the item, the capacity value may be planned for the item according to the capacity modification value, that is: the capacity modification value is taken as the project planning capacity value.
In the embodiment of the invention, the configuration file of the project is obtained; modifying project plan capacity values in the configuration file, namely: taking the capacity modification value as a project planning capacity value; the modified configuration file is validated after the project is restarted.
Step 212, starting the project through the distributed tracking system according to the project planning capacity value, and generating the current index data of the project.
In an embodiment of the invention, the distributed tracking system includes, but is not limited to SkyWalking, dapper, eagle eye, pinpoint or Zipkin. As an alternative, the distributed tracking system is SkyWalking.
For example: the distributed tracking system restarts the project and generates current index data for SkyWalking, at which point the modified profile of the project takes effect, namely: the project plan value of the project is a user entered capacity modification value.
Step 213, using the current index data as the original index data of the project.
In the embodiment of the invention, the current index data is used as the original index data of the project, so that the real-time property of the original index data acquired from the distributed tracking system can be ensured to be higher, and a user can quickly judge whether the modification is effective or not.
Step 214, the original index data of the item is stored in the persistence container, and step 201 is continuously executed.
In an embodiment of the invention, the persistence container includes, but is not limited to, ES, H2 or Mysql. As an alternative, the original index data of the item is stored to the ES.
Step 215, a modification failure message is generated, and step 209 is continued.
In the embodiment of the invention, if the capacity modification value input by the user is judged to be inconsistent with the capacity value required by the project, a modification failure message is generated, and the modification failure message is sent to the user terminal, so that the user inputs the capacity modification value again. For example: the modification failure message is: please re-enter the appropriate capacity modification value.
In the technical scheme of the project capacity planning method provided by the embodiment of the invention, the original index data of the project is obtained according to the set time interval; generating index parameters according to the original index data; standard index data of the project are obtained; generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project; and generating a project planning capacity value according to the initial capacity value and the set capacity threshold value, and planning project capacity according to project requirements, thereby saving resources.
Fig. 6 is a schematic structural diagram of an apparatus for project capacity planning according to an embodiment of the present invention, where the apparatus is configured to execute the project capacity planning method, and as shown in fig. 6, the apparatus includes: a first acquisition unit 11, a first generation unit 12, a second acquisition unit 13, a second generation unit 14, and a third generation unit 15.
The first acquisition unit 11 is configured to acquire raw index data of an item at set time intervals.
The first generation unit 12 is configured to generate an index parameter according to the original index data.
The second acquisition unit 13 is used for acquiring standard index data of the item.
The second generating unit 14 is configured to generate an initial capacity value according to the standard index data, the index parameter, and the obtained maximum memory of the item.
The third generating unit 15 is configured to generate a project plan capacity value according to the initial capacity value and the set capacity threshold value.
In the embodiment of the present invention, the second obtaining unit 13 is specifically configured to receive a standard service of an item input by a user; standard index data corresponding to the standard service is obtained.
In the embodiment of the present invention, the third generating unit 15 is specifically configured to take the initial capacity value as the project planning capacity value if it is determined that the initial capacity value is the same as the capacity threshold.
In the embodiment of the present invention, the third generating unit 15 is specifically further configured to visually display the initial capacity value if it is determined that the initial capacity value is different from the capacity threshold; receiving a capacity modification value input by a user according to the initial capacity value; judging whether the capacity modification value is the same as the capacity threshold value; and if the capacity modification value is judged to be the same as the capacity threshold value, taking the capacity modification value as a project planning capacity value.
In the embodiment of the invention, the device further comprises: a fourth generation unit 16, a determination unit 17 and a storage unit 18.
The fourth generating unit 16 is configured to start the project through the distributed tracking system according to the project planning capacity value, and generate current index data of the project.
The determination unit 17 is configured to take the current index data as the original index data of the item.
The storage unit 18 stores the original index data of the item to the persistence container, and triggers the first acquisition unit 11 to continue the step of acquiring the original index data of the item at set time intervals.
In the embodiment of the present invention, the third generating unit 15 is specifically further configured to generate a modification failure message and continue to execute the step of receiving the capacity modification value input by the user according to the initial capacity value if it is determined that the capacity modification value is different from the capacity threshold.
In the embodiment of the present invention, the second generating unit 14 is specifically configured to pass through the formulaAnd calculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the average duty ratio of the old generation memory of the project and the recovery memory of the young generation and the standard deviation of the recovery memory of the young generation to generate an initial capacity value. Wherein M is an initial capacity value, M 0 Is standard initial memory, M 1 Maximum memory for an item, lambda is the memory decay coefficient, M 2 Is a substitute for memory for the project old.
In the scheme of the embodiment of the invention, the original index data of the project is obtained according to the set time interval; generating index parameters according to the original index data; standard index data of the project are obtained; generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project; and generating a project planning capacity value according to the initial capacity value and the set capacity threshold value, and planning project capacity according to project requirements, thereby saving resources.
The embodiment of the invention provides a storage medium, which comprises a stored program, wherein the program is used for controlling equipment where the storage medium is located to execute the steps of the embodiment of the project capacity planning method, and the specific description can be seen from the embodiment of the project capacity planning method.
The embodiment of the invention provides a computer device, which comprises a memory and a processor, wherein the memory is used for storing information comprising program instructions, the processor is used for controlling the execution of the program instructions, and the program instructions realize the steps of the embodiment of the project capacity planning method when being loaded and executed by the processor.
Fig. 7 is a schematic diagram of a computer device according to an embodiment of the present invention. As shown in fig. 7, the computer device 30 of this embodiment includes: the processor 31, the memory 32, and the computer program 33 stored in the memory 32 and capable of running on the processor 31, where the computer program 33 is executed by the processor 31 to implement the project capacity planning method in the embodiment, and is not described herein in detail to avoid repetition. Alternatively, the computer program when executed by the processor 31 implements the functions of the embodiments applied to each model/unit in the project capacity planning apparatus, and is not described herein in detail to avoid repetition.
Computer device 30 includes, but is not limited to, a processor 31, a memory 32. It will be appreciated by those skilled in the art that fig. 7 is merely an example of computer device 30 and is not intended to limit computer device 30, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., a computer device may also include an input-output device, a network access device, a bus, etc.
The processor 31 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 32 may be an internal storage unit of the computer device 30, such as a hard disk or memory of the computer device 30. The memory 32 may also be an external storage device of the computer device 30, such as a plug-in hard disk, smart Media (SM) Card, secure Digital (SD) Card, flash Card (Flash Card) or the like, which are provided on the computer device 30. Further, the memory 32 may also include both internal and external storage units of the computer device 30. The memory 32 is used to store computer programs and other programs and data required by the computer device. The memory 32 may also be used to temporarily store data that has been output or is to be output.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the invention.

Claims (6)

1. A method of project capacity planning, the method comprising:
acquiring original index data of the project according to a set time interval;
generating index parameters according to the original index data, wherein the index parameters comprise average duty ratio of the recycled memory of the young generation and standard deviation of the recycled memory of the young generation;
standard index data of the project is obtained, wherein the standard index data comprises a standard initial memory, a maximum memory of the current project, an obtained memory attenuation coefficient and a project old-age memory;
generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the item;
generating a project planning capacity value according to the initial capacity value and a set capacity threshold value;
the generating the project planning capacity value according to the initial capacity value and the set capacity threshold value comprises the following steps:
if the initial capacity value is judged to be the same as the capacity threshold, the initial capacity value is used as a project planning capacity value;
if the initial capacity value is judged to be different from the capacity threshold value, the initial capacity value is visually displayed;
receiving a capacity modification value input by a user according to the initial capacity value;
judging whether the capacity modification value is the same as the capacity threshold value;
if the capacity modification value is judged to be the same as the capacity threshold value, the capacity modification value is used as the project planning capacity value;
if the capacity modification value is judged to be different from the capacity threshold value, generating a modification failure message, and continuously executing the step of receiving the capacity modification value input by the user according to the initial capacity value;
the generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the item includes:
by the formulaCalculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the project old memory, the average duty ratio of the young generation recovered memory and the standard deviation of the young generation recovered memory to generate the initial capacity value; wherein M is the initial capacity value, M 0 For the standard initial memory, M 1 Maximum memory for said item, +.>For the memory attenuation coefficient, M 2 And substituting the memory for the project old age.
2. The method according to claim 1, wherein the obtaining standard index data of the item specifically comprises:
receiving standard service of the item input by a user;
and acquiring the standard index data corresponding to the standard service.
3. The method as recited in claim 1, further comprising:
starting the project through a distributed tracking system according to the project planning capacity value, and generating current index data of the project;
taking the current index data as the original index data of the project;
storing the original index data of the project into a persistence container, and continuing to execute the step of acquiring the original index data of the project according to the set time interval.
4. A project capacity planning apparatus, the apparatus comprising:
a first acquisition unit for acquiring original index data of the item at set time intervals;
the first generation unit is used for generating index parameters according to the original index data, wherein the index parameters comprise average duty ratio of the recycled memory of the young generation and standard deviation of the recycled memory of the young generation;
the second acquisition unit is used for acquiring standard index data of the project, wherein the standard index data comprises a standard initial memory, a maximum memory of the current project, an acquired memory attenuation coefficient and a project old-age memory;
the second generation unit is used for generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the item;
a third generating unit, configured to generate a project planning capacity value according to the initial capacity value and a set capacity threshold;
the third generating unit is specifically configured to take the initial capacity value as a project planning capacity value if it is determined that the initial capacity value is the same as the capacity threshold; if the initial capacity value is judged to be different from the capacity threshold value, the initial capacity value is visually displayed; receiving a capacity modification value input by a user according to the initial capacity value; judging whether the capacity modification value is the same as the capacity threshold value; if the capacity modification value is judged to be the same as the capacity threshold value, the capacity modification value is used as the project planning capacity value; if the capacity modification value is judged to be different from the capacity threshold value, generating a modification failure message, and continuously executing the step of receiving the capacity modification value input by the user according to the initial capacity value;
a second generation unit, specifically configured to pass through the formulaCalculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the project old memory, the average duty ratio of the young generation recovered memory and the standard deviation of the young generation recovered memory to generate the initial capacity value; wherein M is the initial capacity value, M 0 For the standard initial memory, M 1 Maximum memory for said item, +.>For the memory attenuation coefficient, M 2 And substituting the memory for the project old age.
5. A storage medium comprising a stored program, wherein the program, when run, controls a device in which the storage medium is located to perform the project capacity planning method of any one of claims 1 to 3.
6. A computer device comprising a memory for storing information including program instructions and a processor for controlling execution of the program instructions, wherein the program instructions when loaded and executed by the processor implement the project capacity planning method of any one of claims 1 to 3.
CN202010851042.1A 2020-08-21 2020-08-21 Project capacity planning method and device, computer equipment and storage medium Active CN112084022B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010851042.1A CN112084022B (en) 2020-08-21 2020-08-21 Project capacity planning method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010851042.1A CN112084022B (en) 2020-08-21 2020-08-21 Project capacity planning method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112084022A CN112084022A (en) 2020-12-15
CN112084022B true CN112084022B (en) 2023-09-08

Family

ID=73728630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010851042.1A Active CN112084022B (en) 2020-08-21 2020-08-21 Project capacity planning method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112084022B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101595457A (en) * 2006-12-06 2009-12-02 艾利森电话股份有限公司 Load balanced profiling
CN101960428A (en) * 2008-02-26 2011-01-26 国际商业机器公司 Routing workloads and method thereof
CN102722432A (en) * 2011-03-29 2012-10-10 国际商业机器公司 Method and apparatus for tracing memory access
CN110134514A (en) * 2019-04-18 2019-08-16 华中科技大学 Expansible memory object storage system based on isomery memory
CN110795236A (en) * 2019-09-26 2020-02-14 北京大米科技有限公司 Method, device, electronic equipment and medium for adjusting capacity of server
CN111309644A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Memory allocation method and device and computer readable storage medium
CN111324461A (en) * 2020-02-20 2020-06-23 西安芯瞳半导体技术有限公司 Memory allocation method and device, computer equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101595457A (en) * 2006-12-06 2009-12-02 艾利森电话股份有限公司 Load balanced profiling
CN101960428A (en) * 2008-02-26 2011-01-26 国际商业机器公司 Routing workloads and method thereof
CN102722432A (en) * 2011-03-29 2012-10-10 国际商业机器公司 Method and apparatus for tracing memory access
CN110134514A (en) * 2019-04-18 2019-08-16 华中科技大学 Expansible memory object storage system based on isomery memory
CN110795236A (en) * 2019-09-26 2020-02-14 北京大米科技有限公司 Method, device, electronic equipment and medium for adjusting capacity of server
CN111309644A (en) * 2020-02-14 2020-06-19 苏州浪潮智能科技有限公司 Memory allocation method and device and computer readable storage medium
CN111324461A (en) * 2020-02-20 2020-06-23 西安芯瞳半导体技术有限公司 Memory allocation method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112084022A (en) 2020-12-15

Similar Documents

Publication Publication Date Title
EP3244312A1 (en) A personal digital assistant
US20230413304A1 (en) Resource Scheduling Method and Terminal Device
CN109889430A (en) Information push method, device, computer equipment and storage medium
WO2015139164A1 (en) Task scheduling method, apparatus and device
CN109840142A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN109840141A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN113868528A (en) Information recommendation method and device, electronic equipment and readable storage medium
CN105847446A (en) Network data obtaining method, device and system
CN111459629A (en) Azkaban-based project operation method and device and terminal equipment
CN114722437A (en) Cross-APP unique identifier generation method, device, equipment and storage medium
CN114157679A (en) Cloud-native-based distributed application monitoring method, device, equipment and medium
CN111858604B (en) Data storage method and device, electronic equipment and storage medium
CN112084022B (en) Project capacity planning method and device, computer equipment and storage medium
CN113076231A (en) Server application scene setting method, system, terminal and storage medium
CN108388458A (en) Message treatment method and Related product
CN111901405A (en) Multi-node monitoring method and device, electronic equipment and storage medium
CN109408544B (en) Data aggregation method and device based on engine, storage medium and server
DE102020131586A1 (en) DEVICE AND METHOD FOR SMART PROCESSOR IDLE PREDICTION
CN111258676A (en) Module preloading method, device, equipment and readable storage medium
CN112016009B (en) Data processing method, balance acquisition device, equipment and storage medium
CN116339733B (en) Application page generation method, system, electronic device and medium
CN112308172B (en) Identification method and device and electronic equipment
CN112016009A (en) Data processing method, balance obtaining method, device, equipment and storage medium
CN113626141A (en) Virtual machine scheduling method, system and device based on label and readable storage medium
CN115409581A (en) Product recommendation method, device, equipment and medium based on user behavior configuration

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
CB02 Change of applicant information

Address after: 100102 201 / F, block C, 2 lizezhong 2nd Road, Chaoyang District, Beijing

Applicant after: Beijing Shuidi Technology Group Co.,Ltd.

Address before: 100102 201 / F, block C, 2 lizezhong 2nd Road, Chaoyang District, Beijing

Applicant before: Beijing Health Home Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant