CN112084022A - 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
CN112084022A
CN112084022A CN202010851042.1A CN202010851042A CN112084022A CN 112084022 A CN112084022 A CN 112084022A CN 202010851042 A CN202010851042 A CN 202010851042A CN 112084022 A CN112084022 A CN 112084022A
Authority
CN
China
Prior art keywords
project
capacity
value
index data
memory
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.)
Granted
Application number
CN202010851042.1A
Other languages
Chinese (zh)
Other versions
CN112084022B (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 Absolute Health Ltd
Original Assignee
Beijing Absolute Health 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 Absolute Health Ltd filed Critical Beijing Absolute Health 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

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • 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. According to the technical scheme provided by the embodiment of the invention, original index data of a project are acquired according to a set time interval; generating index parameters according to the original index data; acquiring standard index data of a project; 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 the project capacity according to the project requirement so as to save resources.

Description

Project capacity planning method and device, computer equipment and storage medium
[ technical field ] A method for producing a semiconductor device
The present invention relates to the field of computer technologies, and in particular, to a project capacity planning method and apparatus, a computer device, and a storage medium.
[ background of the invention ]
The development process of the new project comprises a capacity planning link, and the existing project capacity planning method generally needs to plan the capacity of the new project according to specified default parameters, namely: a fixed size of capacity is allocated for each item, but for marginal traffic or items with smaller traffic, the default size of capacity cannot be fully utilized. The method of allocating a fixed size capacity to each project does not plan the project capacity for the project according to the project requirements, resulting in wasted resources.
[ summary of the invention ]
In view of this, embodiments of the present invention provide a project capacity planning method, an apparatus, a computer device, and a 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;
acquiring standard index data of a project;
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.
Optionally, the acquiring of the standard index data of the project specifically includes:
receiving standard services of projects input by a user;
and acquiring standard index data corresponding to the standard service.
Optionally, generating a project plan capacity value according to the initial capacity value and a set capacity threshold, including:
and if the initial capacity value is judged to be the same as the capacity threshold value, taking the initial capacity value 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, visually displaying the initial capacity value;
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:
and 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 a project through a distributed tracking system according to the project planning capacity value to generate current index data of the project;
taking the current index data as original index data of the project;
and storing the original index data of the project into a persistent container, and continuously executing the step of acquiring the original index data of the project according to a set time interval.
Optionally, the index parameters include an average duty ratio of the young generation recycled memory and a standard deviation of the young generation recycled memory; the standard index data comprises a standard initial memory, a maximum memory of a current item, an acquired memory attenuation coefficient and an old-generation memory of the item;
generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project, wherein the method comprises the following steps:
by the formula
Figure BDA0002644743050000021
And calculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the average occupation ratio of the old generation memory and the young generation recycled memory of the project and the standard deviation of the young generation recycled memory to generate an initial capacity value. Wherein M is an initial capacity value, M0Is a standard initial memory, M1Is the maximum memory of the item, lambda is the memory decay coefficient, M2Is the aged memory of the project.
In another aspect, an embodiment of the present invention provides a project capacity planning apparatus, including:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring original index data of a project according to a set time interval;
the first generation unit is used for generating index parameters according to the original index data;
the second acquisition unit is used for acquiring standard index data of the project;
the second generation unit is used for generating an initial capacity value according to the standard index data, the index parameter and the acquired maximum memory of the project;
and a third generating unit, which is used for generating the project planning capacity value according to the initial capacity value and the set capacity threshold value.
On the other hand, an embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, and when the program runs, the apparatus where the storage medium is located is controlled to execute the project capacity planning method.
In another aspect, an embodiment of the present invention provides a computer device, including a memory and a processor, where the memory is used to store information including program instructions, and the processor is used to control execution of the program instructions, where the program instructions are loaded and executed by the processor to implement the project capacity planning method.
According to the scheme of the embodiment of the invention, original index data of a project are acquired according to a set time interval; generating index parameters according to the original index data; acquiring standard index data of a project; 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 the project capacity according to the project requirement so as to save resources.
[ description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the 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 it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
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 flowchart of a project capacity planning method according to an embodiment of the present invention;
FIG. 3 is a flow chart of a further project capacity planning method provided by an embodiment of the present invention;
FIG. 4 is a trend line graph of the 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 ] embodiments
For better understanding of the technical solutions of the present invention, the following detailed descriptions of the embodiments of the present invention are provided with reference to the accompanying drawings.
It should be understood that the described embodiments are only some embodiments of the invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
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 the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that the term "and/or" as used herein is merely one type of association that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
It should be understood that although the terms first, second, etc. may be used to describe the set thresholds in the embodiments of the present invention, the set thresholds should not be limited to these terms. These terms are used only to distinguish the set thresholds from each other. For example, the first set threshold may also be referred to as the second set threshold, and similarly, the second set threshold may also be referred to as the 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, 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 presentation layer 140. Wherein the data acquisition layer 110 comprises an acquisition module 111; data storage layer 120 includes a first storage module 121 and a second storage module 122, and data computation layer 130 includes an acquisition module 131 and a computation module 132; the data presentation layer 140 includes a presentation module 141, a modification module 142, and an activation module 143.
The collection module 111 collects current index data of a project, and sends the current index data to the first storage module 121, where the current index data includes index data generated by starting the project through a distributed system. The first storage module 121 uses the current index data as original index data, and stores the original index data in a persistent container, where as an alternative, the persistent container is an elastic search (ES for short). The obtaining module 131 obtains the original index data from the first storage module 121, and sends the original index data to the calculating module 132. The calculating module 132 calculates the 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 parameter to a persistent container, which is, as an alternative, a relational database management system (Mysql). The obtaining module 131 obtains 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 display 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 startup module 143. The start module 143 starts the project based on the project plan capacity value.
According to the technical scheme provided by the embodiment of the invention, original index data of a project are acquired according to a set time interval; generating index parameters according to the original index data; acquiring standard index data of a project; 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 the project capacity according to the project requirement so as to save resources.
Fig. 2 is a flowchart of a project capacity planning method according to an embodiment of the present invention, and as shown in fig. 2, the method includes:
step 101, acquiring original index data of the project according to a set time interval.
And 102, generating index parameters according to the original index data.
And 103, acquiring standard index data of the project.
And 104, generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project.
And 105, generating a project planning capacity value according to the initial capacity value and the set capacity threshold value.
According to the technical scheme provided by the embodiment of the invention, original index data of a project are acquired according to a set time interval; generating index parameters according to the original index data; acquiring standard index data of a project; 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 the project capacity according to the project requirement so as to save 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, 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 the 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 to be 5 days.
In the embodiment of the present invention, the original index data includes, but is not limited to, a Young generation reclaimed memory (Young GC), a project old generation memory, and a project initialization memory value.
In the embodiment of the invention, the server acquires the original index data of the project from the persistent container. Persistent containers include, but are not limited to, ES, embedded database engine (H2), or Mysql, among others. As an alternative, the server obtains the original index data of the project from the ES.
In the embodiment of the invention, the aggregation 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 in the aspects of calculation and statistics, the finer the granularity of the index data is, 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 occupation ratio of Young GC and the standard deviation of Young GC.
In the embodiment of the present invention, the average occupancy of Young GC is calculated according to Young GC, for example: dividing the sum of Young GC of 5 days by 5 to calculate average Young GC value at 5-day intervals; dividing the Young GC of each day by the average Young GC value to calculate the Young GC ratio of each day; the average ratio of Young GCs was calculated by dividing the daily ratio of Young GCs by 5.
In the embodiment of the invention, the Young GC standard deviation is calculated according to the Young GC through a standard deviation formula.
Further, the index parameter is stored to a persistence container. Where persistent containers include, but are not limited to, ES, H2, or Mysql. As an alternative, the index parameter is stored to Mysql.
Step 203, receiving the 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 step 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 aged memory.
Further, the maximum memory of the item is obtained.
And step 205, generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project.
In particular, by the formula
Figure BDA0002644743050000071
And calculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the aged memory of the project, the average occupation ratio of the Young GC and the Young GC standard deviation to generate an initial capacity value. Wherein M is an initial capacity value, M0Is a standard initial memory, M1Is the maximum memory of the item, lambda is the memory decay coefficient, M2Is the aged memory of the project.
As an alternative, the memory decay factor is 1.
Step 206, judging whether the initial capacity value is the same as the capacity threshold value, if so, executing step 207; if not, go to step 208.
In the embodiment of the present invention, the capacity value includes a memory capacity value or a Central Processing Unit (CPU) capacity value.
In the embodiment of the invention, the capacity threshold value can be changed according to the actual situation.
In the embodiment of the present invention, if it is determined that the initial capacity value is the same as the capacity threshold, indicating that the initial capacity value matches the capacity value required by the item, the step 207 is continuously executed; if the initial capacity value is different from the capacity threshold value, indicating that the initial capacity value does not match the capacity value required by the item, go to step 208.
And step 207, taking the initial capacity value as a project planning capacity value, and ending the process.
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, that is: and taking the initial capacity value as a project plan capacity value.
Further, the project planning capacity value is visually displayed, and as an alternative, the project planning capacity value may 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. The user terminal includes, but is not limited to, a Mobile phone, a tablet Computer, a desktop Computer, a laptop Computer, a handheld Computer, a wearable device, a head-mounted display, a reader device, a notebook Computer, or an Ultra-Mobile Personal Computer (UMPC).
Further, the user can also input a time period on the user terminal, 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 the trend line graph is displayed through the user terminal, so that the user can check the trend of the Young GC frequency or the trend of the memory use condition of the capacity value in the time period through the user terminal.
For example: fig. 4 is a trend line graph of the Young GC frequency according to the 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: 52: day 21, 00 to 8/7: 07: young GC frequency per minute for 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 graph 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, and the vertical axis represents memory, and the trend line graph shown in fig. 5 represents a time value at 20/8/7/day: 52: day 21, 00 to 8/7: 05: memory usage every minute for a period of 45 hours. As shown in fig. 5, the solid pattern represents the maximum memory of the item at each time point, and the open pattern represents the actual usage of the item at each time point. The user can judge whether the project planning capacity value of the project is reasonable according to the trend of the memory use condition.
In the embodiment of the invention, the server can inquire the general data and the modified trend line graph of the project in the specified time period, and can observe the optimization trend of the project resources more intuitively.
Further, the user may invoke an Application Performance Monitoring (APM) service to view the project planning capacity value of the project through an APM page.
As another alternative, the user may also input a query commander to query the Young GC and the index matching degree of the item, where the index matching degree includes the matching degree between the standard index data and the index 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 is consistent with the capacity value required by the project or not is judged, if the initial capacity value is consistent with the capacity value required by the project, the initial capacity value is taken as the project planning capacity value, 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 present invention, the visually displayed bearer interface includes a modification entry identifier, and as an alternative, the modification entry identifier is a modification button, and a 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.
And step 209, receiving a capacity modification value input by the 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 the modification interface through the modification entrance identifier, and inputs the capacity modification value according to the initial capacity value in the modification interface.
Step 210, determining whether the capacity modification value is the same as the capacity threshold value, if yes, executing step 211; if not, go to step 215.
In the embodiment of the present invention, the capacity modification value includes a memory capacity modification value or a CPU capacity modification value.
In the embodiment of the invention, the capacity threshold value 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, indicating that the capacity modification value input by the user matches the capacity value required by the item, the step 211 is continuously executed; if the capacity modification value is determined to be different from the capacity threshold value, indicating that the capacity modification value entered by the user does not match the capacity value required for the project, go to step 215.
And 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 project, the capacity value may be planned for the project according to the capacity modification value, that is: and taking the capacity modification value as a project planning capacity value.
In the embodiment of the invention, a configuration file of the project is obtained; and modifying the project plan capacity value in the configuration file, namely: taking the capacity modification value as a project planning capacity value; the modified configuration file is in effect after the project is restarted.
And step 212, starting the project through the distributed tracking system according to the project planning capacity value, and generating current index data of the project.
In embodiments of the present invention, the distributed tracking system includes, but is not limited to, Skywalk, Dapper, eagle, Pinpoint, or Zipkin. As an alternative, the distributed tracking system is SkyWalking.
For example: the distributed tracking system is Skywalk, the project is restarted through the Skywalk and current index data are generated, at the moment, the modified configuration file of the project takes effect, namely: the project plan value for the project is the user-entered capacity modification value.
And step 213, taking 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 performance 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.
And step 214, storing the original index data of the project into a persistent container, and continuing to execute the step 201.
In embodiments of the present invention, persistent containers include, but are not limited to, ES, H2, or Mysql. As an alternative, the original index data of the item is stored to the ES.
Step 215, generate a modification failure message, and proceed to step 209.
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 sent to the user terminal, so that the user can input the capacity modification value again. For example: the modification failure message is: please re-enter a reasonable capacity modification value.
According to the technical scheme of the project capacity planning method, original index data of a project are acquired according to a set time interval; generating index parameters according to the original index data; acquiring standard index data of a project; 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 the project capacity according to the project requirement so as to save resources.
Fig. 6 is a schematic structural diagram of a project capacity planning apparatus according to an embodiment of the present invention, 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 original index data of an item at set time intervals.
The first generating unit 12 is configured to generate an index parameter according to the original index data.
The second acquisition unit 13 is used to acquire standard index data of the items.
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 a 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; and acquiring standard index data corresponding to the standard service.
In the embodiment of the present invention, the third generating unit 15 is specifically configured to use 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 value.
In an embodiment of the present invention, the third generating unit 15 is further specifically configured to visually display the initial capacity value if it is determined that the initial capacity value is different from the capacity threshold value; 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 present invention, the apparatus further includes: 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 use 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 a persistent container and triggers the first obtaining unit 11 to continue to perform the step of obtaining the original index data of the item at the set time interval.
In this embodiment of the present invention, the third generating unit 15 is further specifically configured to generate a modification failure message if it is determined that the capacity modification value is different from the capacity threshold value, and continue to execute the step of receiving the capacity modification value input by the user according to the initial capacity value.
In the embodiment of the present invention, the second generating unit 14 is specifically configured to pass a formula
Figure BDA0002644743050000121
And calculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the average occupation ratio of the old generation memory and the young generation recycled memory of the project and the standard deviation of the young generation recycled memory to generate an initial capacity value. Wherein M is an initial capacity value, M0Is a standard initial memory, M1Is the maximum memory of the item, lambda is the memory decay coefficient, M2Is the aged memory of the project.
According to the scheme of the embodiment of the invention, original index data of a project are acquired according to a set time interval; generating index parameters according to the original index data; acquiring standard index data of a project; 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 the project capacity according to the project requirement so as to save resources.
An embodiment of the present invention provides a storage medium, where the storage medium includes a stored program, where, when the program runs, a device on which the storage medium is located is controlled to execute each step of the embodiment of the project capacity planning method, and for specific description, reference may be made to the embodiment of the project capacity planning method.
Embodiments of the present invention provide 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 are loaded and executed by the processor to implement the steps of the embodiment of the project capacity planning method.
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 method applied to project capacity planning in the embodiments, and in order to avoid repetition, the details are not repeated herein. Alternatively, the computer program is executed by the processor 31 to implement the functions of the models/units applied to the project capacity planning apparatus in the embodiments, which are not repeated herein to avoid redundancy.
The computer device 30 includes, but is not limited to, a processor 31, a memory 32. Those skilled in the art will appreciate that fig. 7 is merely an example of a computer device 30 and is not intended to limit the computer device 30 and that it may include more or fewer components than shown, or some components may be combined, or different components, e.g., the computer device may also include input output devices, network access devices, buses, etc.
The Processor 31 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 32 may be an internal storage unit of the computer device 30, such as a hard disk or a 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 provided on the computer device 30, a Smart Media (SM) Card, a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 32 may also include both internal and external storage units of the computer device 30. The memory 32 is used for storing 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 embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. A project capacity planning method, 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;
acquiring standard index data of the project;
generating an initial capacity value according to the standard index data, the index parameters and the acquired maximum memory of the project;
and generating the project planning capacity value according to the initial capacity value and a set capacity threshold value.
2. The method according to claim 1, wherein the acquiring standard index data of the project specifically includes:
receiving standard services of the project input by a user;
and acquiring the standard index data corresponding to the standard service.
3. The method of claim 1, wherein generating the project plan capacity value based on the initial capacity value and a set capacity threshold comprises:
and if the initial capacity value is judged to be the same as the capacity threshold value, taking the initial capacity value as a project planning capacity value.
4. The method of claim 1, further comprising:
if the initial capacity value is judged to be different from the capacity threshold value, visually displaying the initial capacity value;
receiving a capacity modification value input by a user according to the initial capacity value;
determining whether the capacity modification value is the same as the capacity threshold;
and if the capacity modification value is judged to be the same as the capacity threshold value, taking the capacity modification value as the project planning capacity value.
5. The method of claim 4, further comprising:
and if the capacity modification value is different from the capacity threshold value, generating a modification failure message, and continuing to execute the step of receiving the capacity modification value input by the user according to the initial capacity value.
6. The method of claim 1, further comprising:
starting the project through a distributed tracking system according to the project planning capacity value to generate current index data of the project;
taking the current index data as original index data of the project;
and storing the original index data of the project into a persistent container, and continuously executing the step of acquiring the original index data of the project according to the set time interval.
7. The method of claim 1, wherein the index parameters include an average percentage of reclaimed memory for the young generation and a standard deviation of reclaimed memory for the young generation; the standard index data comprises a standard initial memory, a maximum memory of a current item, an acquired memory attenuation coefficient and an old-generation memory of the item;
generating an initial capacity value according to the standard index data, the index parameter and the acquired maximum memory of the project, including:
by the formula
Figure FDA0002644743040000021
And calculating the standard initial memory, the maximum memory of the project, the memory attenuation coefficient, the average proportion of the aged-generation memory of the project and the reclaimed memory of the young generation and the standard deviation of the reclaimed memory of the young generation to generate the initial capacity value. Wherein M is the initial capacity value, M0For the standard initial memory, M1Is the maximum memory of the item, lambda is the memory attenuation coefficient, M2And storing the old generation of the project.
8. A project capacity planning apparatus, the apparatus comprising:
the system comprises a first acquisition unit, a second acquisition unit and a third acquisition unit, wherein the first acquisition unit is used for acquiring original index data of a project according to a set time interval;
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 project;
the second generation unit is used for generating an initial capacity value according to the standard index data, the index parameter and the acquired maximum memory of the project;
and a third generating unit, configured to generate the project plan capacity value according to the initial capacity value and a set capacity threshold value.
9. A storage medium comprising a stored program, wherein the program, when executed, controls an apparatus in which the storage medium is located to perform a project capacity planning method according to any one of claims 1 to 7.
10. A computer device comprising a memory for storing information including program instructions and a processor for controlling the execution of the program instructions, wherein the program instructions when loaded and executed by the processor implement a project capacity planning method according to any one of claims 1 to 7.
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 true CN112084022A (en) 2020-12-15
CN112084022B 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
CN112084022B (en) 2023-09-08

Similar Documents

Publication Publication Date Title
WO2019072200A1 (en) Method for managing resource, and terminal device
CN111045814B (en) Resource scheduling method and terminal equipment
CN110442329A (en) Generation method, device, storage medium and the computer equipment of code segment
US20160360008A1 (en) Efficient context monitoring
CN109815007A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN109787882A (en) Information push method, device, computer equipment and storage medium
CN109409902A (en) Risk subscribers recognition methods, device, computer equipment and storage medium
WO2022161325A1 (en) Prompting method and electronic device
WO2022161050A1 (en) Promotion task processing method and apparatus, storage medium and electronic device
CN108961080A (en) Insurance business distributed approach, device, storage medium and terminal
CN114244595A (en) Method and device for acquiring authority information, computer equipment and storage medium
CN115659039A (en) Information recommendation method, information recommendation device, information display method, information recommendation equipment, information display medium and program product
CN109840141A (en) Thread control method, device, electronic equipment and storage medium based on cloud monitoring
CN109559218A (en) A kind of determination method, apparatus traded extremely and storage medium
CN114157679A (en) Cloud-native-based distributed application monitoring method, device, equipment and medium
CN108197002A (en) Mobile equipment is without burying point data statistical method, system, terminal and medium
CN111858604B (en) Data storage method and device, electronic equipment and storage medium
WO2019024475A1 (en) Breakpoint list distribution method and apparatus, and server and medium
WO2019019596A1 (en) Breakpoint list processing method, device, server and medium
CN108388458A (en) Message treatment method and Related product
CN112084022A (en) Project capacity planning method and device, computer equipment and storage medium
CN111901405A (en) Multi-node monitoring method and device, electronic equipment and storage medium
CN111651522A (en) Data synchronization method and device
CN116185578A (en) Scheduling method of computing task and executing method of computing task
CN113176909A (en) Method and device for determining fluency of terminal, electronic equipment and storage medium

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
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.

GR01 Patent grant
GR01 Patent grant