CN117215799A - Management method, system, computer equipment and storage medium of software module - Google Patents

Management method, system, computer equipment and storage medium of software module Download PDF

Info

Publication number
CN117215799A
CN117215799A CN202311454207.1A CN202311454207A CN117215799A CN 117215799 A CN117215799 A CN 117215799A CN 202311454207 A CN202311454207 A CN 202311454207A CN 117215799 A CN117215799 A CN 117215799A
Authority
CN
China
Prior art keywords
resource
data
software module
database
flow
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311454207.1A
Other languages
Chinese (zh)
Inventor
李广文
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianjin Vocational Institute
Original Assignee
Tianjin Vocational Institute
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 Tianjin Vocational Institute filed Critical Tianjin Vocational Institute
Priority to CN202311454207.1A priority Critical patent/CN117215799A/en
Publication of CN117215799A publication Critical patent/CN117215799A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The application relates to the technical field of software management, and particularly discloses a management method, a system, computer equipment and a storage medium of software modules, wherein the method comprises the steps of acquiring application data of each software module and inputting a database containing software module labels; receiving a data period input by a management party, extracting application data from a database according to the data period, and creating an influence factor; randomly determining the resource proportion of each software module, and adjusting the resource proportion according to the influence factors; and cycling the above, and outputting the resource allocation when the adjusted resource allocation accords with the preset output condition. According to the method, the influence factors are determined according to the application data, then some resource ratios are randomly determined, at the moment, the resource ratios are known data, the known data are evaluated by the influence factors, in the process, unknowns do not exist, the calculation speed is extremely high, the optimal resource ratio is selected, and the method is an enumeration scheme and is small in resource consumption.

Description

Management method, system, computer equipment and storage medium of software module
Technical Field
The application relates to the technical field of software management, in particular to a management method, a management system, computer equipment and a storage medium of a software module.
Background
The existing software mainly uses integrated software, the integrated software contains different software modules, the different software modules are used for completing different functions, such as game set software, cartoon creation software and the like, the inside of the integrated software contains different functions, a user selects different modules, and acquired services are different.
The required resources of each software module are different, the server resources are limited, and under the condition of extremely large user quantity, the existing server resources are required to be allocated, so that the requirements of more software modules are met as much as possible, the experience of a certain number of software modules can be reduced in the use process, and the whole software can be enabled to run stably.
The existing resource allocation rules are mainly to process the existing application data, a resource proportioning process is determined according to the characteristics of the application data, in the process, an unknown proportioning scheme is required to be determined according to the application data with extremely large data quantity, the operation amount is large, and the calculation speed is low; how to reduce the calculation amount in the resource allocation process and obtain high calculation speed is the technical problem to be solved by the technical scheme of the application.
Disclosure of Invention
The present application is directed to a method, a system, a computer device and a storage medium for managing software modules, so as to solve the problems set forth in the background art.
In order to achieve the above purpose, the present application provides the following technical solutions:
a method of managing software modules, the method comprising:
acquiring application data of each software module, and inputting the application data into a database containing software module labels;
receiving a data period input by a management party, extracting application data from a database according to the data period, and creating an influence factor;
randomly determining the resource proportion of each software module, and adjusting the resource proportion according to the influence factors;
circularly executing the above, and outputting the resource ratio when the adjusted resource ratio accords with a preset output condition;
wherein the influence factors are used for representing the influence degree of each software module on the resource allocation process.
As a further scheme of the application: the step of acquiring application data of each software module and inputting a database containing software module tags comprises the following steps:
embedding a flow monitoring port in a software module, and acquiring instantaneous flow at fixed time according to the flow monitoring port; the instantaneous flow is represented by a histogram, the abscissa of the histogram is determined by an interaction party parameter, and the ordinate of the histogram is used for representing the data quantity of the transmission data element; the interactive party parameters are used for representing the types of interactive parties;
calculating the instantaneous flow in a period of time, calculating the average flow, and determining the size of the database according to the average flow;
creating a database based on the database size; the database contains software module tags;
and inserting the instantaneous flow into a database according to the acquisition time of the instantaneous flow in real time.
As a further scheme of the application: the step of receiving the data period input by the manager, extracting application data from the database according to the data period, and creating the influence factor comprises the following steps:
receiving a data period input by a management party, and extracting instantaneous flow from a database according to the data period;
identifying the instantaneous flow and extracting the total interactive data;
according to the time sequence, arranging the total interactive data, and fitting a total change curve through a list dotting method;
creating a demand profile based on the aggregate amount profile;
the extraction process of the total interactive data comprises the following steps:
,/>the method comprises the steps of carrying out a first treatment on the surface of the Wherein Y is the total interactive data amount, < >>For the ith data in the histogram, +.>The weight of the ith data in the histogram; n is the total amount of abscissa in the histogram; />Mapping the parameters of the interaction party to weights, and autonomously setting rules by a manager; />And respectively representing m parameters including user position, user age and user account level.
As a further scheme of the application: the step of randomly determining the resource proportion of each software module and adjusting the resource proportion according to the influence factors comprises the following steps:
randomly determining the resource ratio of each software module with a preset number;
inquiring the total resource amount of the current server, and determining the allocation amount of each software module according to the total resource amount and the resource ratio;
determining a global optimal ratio and an own optimal ratio according to the distribution amount and the demand amount curve;
and adjusting the resource proportion according to the global optimal proportion and the self optimal proportion.
As a further scheme of the application: the step of determining the global optimum ratio and the self optimum ratio according to the distribution amount and the demand amount curve comprises the following steps:
inquiring the demand of each software module at the current moment in the demand curve;
calculating a satisfaction rate according to the difference between the distribution amount and the demand amount and the difference;
sequentially counting all the satisfaction rates of each resource proportion, and calculating the average value of the satisfaction rates;
determining a global optimal ratio and an own optimal ratio according to the average value of the satisfaction rates; the global optimal ratio is the resource ratio with the largest satisfaction rate average value under the current iteration times; the self optimal ratio is a historical resource ratio with the largest average value of the satisfaction rate of a certain resource ratio.
As a further scheme of the application: the step of adjusting the resource ratio according to the global optimum ratio and the self optimum ratio comprises the following steps:
calculating an adjustment item of the current resource proportion according to the global optimal proportion and the self optimal proportion;
determining an adjustment flow of the current resource proportion according to the adjustment item;
adjusting the current resource proportion according to the adjustment flow;
the process of determining the adjustment flow of the current resource ratio according to the adjustment item comprises the following steps:
the process for adjusting the current resource proportion according to the adjustment flow comprises the following steps:
in the method, in the process of the application,for the adjustment procedure in the (i+1) th iteration process,/a>The adjustment flow in the ith iteration process is adopted; qbest is global optimum, zbest is self optimum; />And->As a learning factor, the value is generally 2;is [0,1 ]]Random numbers of (a); the difference process of the resource ratio is the difference value between the distribution ratios of all the software modules, wherein the difference value contains a symbol, and the symbol is used for representing the direction; />For the resource proportion obtained in the (i+1) th iteration process,/a>The resource ratio obtained in the ith iteration process is obtained.
The technical scheme of the application also provides a management system of the software module, which comprises the following components:
the data acquisition module is used for acquiring application data of each software module and inputting the application data into the database containing the software module labels;
the influence factor determining module is used for receiving the data period input by the management side, extracting application data from the database according to the data period and creating an influence factor;
the influence factor application module is used for randomly determining the resource proportion of each software module and adjusting the resource proportion according to the influence factors;
the circulation execution module is used for circularly executing the content, and outputting the resource ratio when the adjusted resource ratio accords with a preset output condition;
wherein the influence factors are used for representing the influence degree of each software module on the resource allocation process.
As a further scheme of the application: the data acquisition module comprises:
the flow monitoring unit is used for embedding a flow monitoring port in the software module and acquiring the instantaneous flow at fixed time according to the flow monitoring port; the instantaneous flow is represented by a histogram, the abscissa of the histogram is determined by an interaction party parameter, and the ordinate of the histogram is used for representing the data quantity of the transmission data element; the interactive party parameters are used for representing the types of interactive parties;
the scale determining unit is used for counting the instantaneous flow in a period of time, calculating the average flow and determining the scale of the database according to the average flow;
a database creation unit for creating a database based on the database size; the database contains software module tags;
and the data inserting unit is used for inserting the instantaneous flow into the database according to the acquisition time of the instantaneous flow in real time.
The technical scheme of the application also provides computer equipment, which comprises one or more processors and one or more memories, wherein at least one program code is stored in the one or more memories, and when the program code is loaded and executed by the one or more processors, the management method of the software module is realized.
The technical scheme of the application also provides a storage medium, at least one program code is stored in the storage medium, and when the program code is loaded and executed by a processor, the management method of the software module is realized.
Compared with the prior art, the application has the beneficial effects that: according to the method, the influence factors are determined according to the application data, then some resource ratios are randomly determined, at the moment, the resource ratios are known data, the known data are evaluated by the influence factors, in the process, unknowns do not exist, the calculation speed is extremely high, the optimal resource ratio is selected, and the method is an enumeration scheme and is small in resource consumption.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly introduce the drawings that are needed in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the present application.
FIG. 1 is a flow chart diagram of a method of managing software modules.
FIG. 2 is a first sub-flowchart of a method of managing software modules.
FIG. 3 is a second sub-flowchart block diagram of a method of managing software modules.
Fig. 4 is a third sub-flowchart of a method of managing software modules.
Fig. 5 is a block diagram showing the constitution of a management system of software modules.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects to be solved more clear, the application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
Fig. 1 is a flowchart of a method for managing a software module, and in an embodiment of the present application, a method for managing a software module includes:
step S100: acquiring application data of each software module, and inputting the application data into a database containing software module labels;
the software comprises a plurality of modules, application data of each module is recorded, and a local storage library or a cloud can be adopted for recording the application data; when the application data is acquired, the corresponding database is queried according to the software module, and the application data is input into the database (a local storage library or a cloud end).
The application data is data which is generated in the application process of the software module and interacts with the client.
Step S200: receiving a data period input by a management party, extracting application data from a database according to the data period, and creating an influence factor;
the data time period is a time period input by a manager, and in the technical scheme of the application, the data of each software module in the time period is obtained from each database, and the resource proportion is determined according to the data; the resource proportion is the distribution proportion of each software module to all operation resources; the operation resource is all resources for providing software services, including a gateway, a server, a memory and the like, and even comprises maintenance personnel.
Step S300: randomly determining the resource proportion of each software module, and adjusting the resource proportion according to the influence factors;
in the technical scheme of the application, a specific resource proportioning determining mode suitable for a computer is provided, which is essentially an enumeration strategy, and a proper resource proportioning scheme can be obtained by randomly determining a plurality of resource proportioning schemes and then adjusting the resource proportioning schemes by taking an influence factor as an evaluation index.
Although the optimal resource proportioning process is difficult to determine in the mode, the method has extremely strong adaptability, and an intelligent resource proportioning generation scheme can be obtained only by adjusting the generation process of the influence factors by a management party; the impact factor is determined by parameters entered by the user.
Step S400: circularly executing the above, and outputting the resource ratio when the adjusted resource ratio accords with a preset output condition;
the above steps are circularly executed, and each time a resource proportioning scheme (known data) is determined, the resource proportioning scheme is judged, in the process, all the data are known data, no unknown number exists in the calculation process, and the calculation speed is extremely high; in practical application, the manager may limit the determined number of the resource proportioning, for example, only determine several tens or several hundreds of resource proportioning schemes at a time, and select the most suitable resource proportioning scheme from the resource proportioning schemes.
It should be noted that, the influence factor is used to characterize the influence degree of each software module on the resource allocation process, and is generally some indexes, and the more the application data of each software module meets the indexes, the better the corresponding resource proportioning scheme.
FIG. 2 is a first sub-flowchart of a method for managing software modules, wherein the steps of obtaining application data of each software module and inputting a database containing labels of the software modules include:
step S101: embedding a flow monitoring port in a software module, and acquiring instantaneous flow at fixed time according to the flow monitoring port; the instantaneous flow is represented by a histogram, the abscissa of the histogram is determined by an interaction party parameter, and the ordinate of the histogram is used for representing the data quantity of the transmission data element; the interactive party parameters are used for representing the types of interactive parties;
step S102: calculating the instantaneous flow in a period of time, calculating the average flow, and determining the size of the database according to the average flow;
step S103: creating a database based on the database size; the database contains software module tags;
step S104: and inserting the instantaneous flow into a database according to the acquisition time of the instantaneous flow in real time.
The above-mentioned content has made the concrete limitation to the acquisition and storage process of the application data, at first, insert the flow monitoring port at the same time while establishing the software module, monitor the application data of the software module in real time according to the flow monitoring port, will apply the data to store in the database can; specifically, in one example of the technical solution of the present application, the application data is defined as an instantaneous flow, where the instantaneous flow is a histogram, and the abscissa of the histogram corresponds to the parameters of the interaction party (the user using the software module), including the user location, the user age, the user account level, etc., and is specifically determined by the administrator, and the ordinate of the histogram is the instantaneous data amount; where one time corresponds to one histogram and is therefore referred to as instantaneous flow.
Then, the instantaneous flow rate over a period of time is counted, an average flow rate may be calculated (the calculation may be a calculation of the total data amount of the histogram and then a calculation of the average data amount of the total data amount), the size of the database is determined according to the average flow rate, the database is created based on the size of the database, and the tag corresponding to the software module is inserted in the database.
And finally, when the instantaneous data is generated, inquiring a corresponding database according to the tag, and executing a storage action.
FIG. 3 is a second sub-flowchart of a method for managing software modules, wherein the steps of receiving a data period input by a manager, extracting application data from a database according to the data period, and creating an influence factor include:
step S201: receiving a data period input by a management party, and extracting instantaneous flow from a database according to the data period;
step S202: identifying the instantaneous flow and extracting the total interactive data;
step S203: according to the time sequence, arranging the total interactive data, and fitting a total change curve through a list dotting method;
step S204: a demand profile is created based on the aggregate amount profile.
The above-mentioned contents define the generation process of the influence factors, the management side inputs the data time period (time period), extracts the instantaneous flow in each database according to the data time period, identifies the instantaneous flow, and can calculate the total interactive data; it should be noted that, the calculation process of the total amount of interactive data is not to directly calculate the average value, but to introduce a weight, where the weight is used to characterize the influence of the parameter of the interactive party, and the calculation process of the total amount of interactive data is as follows:,/>the method comprises the steps of carrying out a first treatment on the surface of the Wherein Y is the total interactive data amount, < >>For the i-th data in the histogram,the weight of the ith data in the histogram; n is the total amount of abscissa in the histogram; />Mapping the parameters of the interaction party to weights, and autonomously setting rules by a manager; />And respectively representing m parameters including user position, user age and user account level.
The total interactive data amount at each moment is counted, a function coordinate (independent variable is time, dependent variable is total interactive data amount) is determined, a total amount change curve can be fitted according to the function coordinate, different total interactive data amounts correspond to different demand amounts, the corresponding relation is determined by a management party, and the management party synchronously calculates the required resource amounts (such as the lowest configuration demand and the average configuration demand in the existing software) when setting the software module, so that the demand amount curve can be synchronously determined according to the total amount change curve.
FIG. 4 is a third sub-flowchart of a method for managing software modules, wherein the step of randomly determining the resource allocation of each software module and adjusting the resource allocation according to the influence factor includes:
step S301: randomly determining the resource ratio of each software module with a preset number;
step S302: inquiring the total resource amount of the current server, and determining the allocation amount of each software module according to the total resource amount and the resource ratio;
step S303: determining a global optimal ratio and an own optimal ratio according to the distribution amount and the demand amount curve;
step S304: and adjusting the resource proportion according to the global optimal proportion and the self optimal proportion.
Through the treatment of the steps, the technical scheme of the application adopts the demand curve as an influence factor.
Specifically, the above content provides an application process of a demand curve, firstly, a preset number of resource proportioning schemes are randomly determined, and the allocation of each software module under each resource proportioning scheme can be calculated according to the total resource amount and the resource proportioning schemes; according to the demand curve generated in the foregoing, the allocation amount is compared with the demand, and under the condition that the total resources are limited, the allocation amount of each software module cannot meet the demand, so that an optimal proportioning scheme needs to be selected.
In the process of selecting proper resource proportion in the resource proportion scheme, two parameters of global optimal proportion and self optimal proportion are introduced, and the global optimal proportion and the self optimal proportion continuously adjust each resource proportion scheme, so that each resource proportion scheme is close to the optimal resource proportion scheme, and the more the iteration times are increased, the closer the obtained global optimal proportion is to the theoretical optimal proportion.
As a preferred embodiment of the present application, the step of determining the global optimum and the self-optimum according to the distribution and demand curves includes:
inquiring the demand of each software module at the current moment in the demand curve;
calculating a satisfaction rate according to the difference between the distribution amount and the demand amount and the difference;
sequentially counting all the satisfaction rates of each resource proportion, and calculating the average value of the satisfaction rates;
determining a global optimal ratio and an own optimal ratio according to the average value of the satisfaction rates; the global optimal ratio is the resource ratio with the largest satisfaction rate average value under the current iteration times; the self optimal ratio is a historical resource ratio with the largest average value of the satisfaction rate of a certain resource ratio.
In an example of the technical scheme of the application, the demand of each software module at the current moment is queried according to the demand curve, if each distribution quantity can meet the corresponding demand, the situation is naturally the best, however, when the demand of the software module is larger, such as the late peak of software use, at the moment, the limited resources can not meet a plurality of software modules, and a resource proportioning process exists; the evaluation mode adopted in the above is to calculate the satisfaction rate of all the software modules, judge according to the average value of the satisfaction rate, and the larger the average value of the satisfaction rate is, the better the corresponding resource proportioning scheme is.
In practice, the median or mode of the satisfaction rate may be used, or other evaluation parameters based on the satisfaction rate.
Through the satisfaction rate average value, each resource proportioning scheme can be evaluated to determine which is better; an optimal resource ratio is generated in all resource ratio schemes in one iteration process, and is called global optimal ratio; for a certain resource proportion, with the increase of the iteration times, there is also an optimal proportion under the current iteration times, which is called self optimal proportion.
The step of adjusting the resource ratio according to the global optimum ratio and the self optimum ratio comprises the following steps:
calculating an adjustment item of the current resource proportion according to the global optimal proportion and the self optimal proportion;
determining an adjustment flow of the current resource proportion according to the adjustment item;
adjusting the current resource proportion according to the adjustment flow;
the process of determining the adjustment flow of the current resource ratio according to the adjustment item comprises the following steps:
the process for adjusting the current resource proportion according to the adjustment flow comprises the following steps:
in the method, in the process of the application,for the adjustment procedure in the (i+1) th iteration process,/a>The adjustment flow in the ith iteration process is adopted; qbest is global optimum, zbest is self optimum; />And->As a learning factor, the value is generally 2;is [0,1 ]]Random numbers of (a); the difference process of the resource ratio is the difference value between the distribution ratios of all the software modules, wherein the difference value contains a symbol, and the symbol is used for representing the direction; />For the resource proportion obtained in the (i+1) th iteration process,the resource ratio obtained in the ith iteration process is obtained.
In the calculation process, each iteration changes the resource ratio, and a result which is jointly determined by the original resource ratio, the optimal resource ratio in all the resource ratios at the current times and the optimal resource ratio in the self iteration process is finally obtained, so that the method is influenced by the self and other resource ratio schemes, and the final resource ratio can be rapidly and accurately determined.
Fig. 5 is a block diagram of the composition and structure of a management system for software modules, in an embodiment of the present application, a management system for software modules, where the system 10 includes:
a data acquisition module 11, configured to acquire application data of each software module, and input a database containing software module tags;
the influence factor determining module 12 is configured to receive a data period input by a manager, extract application data from a database according to the data period, and create an influence factor;
the influence factor application module 13 is used for randomly determining the resource proportion of each software module and adjusting the resource proportion according to the influence factors;
the circulation execution module 14 is configured to perform the above-mentioned steps in a circulation manner, and output the resource ratio when the adjusted resource ratio meets a preset output condition;
wherein the influence factors are used for representing the influence degree of each software module on the resource allocation process.
Further, the data acquisition module 11 includes:
the flow monitoring unit is used for embedding a flow monitoring port in the software module and acquiring the instantaneous flow at fixed time according to the flow monitoring port; the instantaneous flow is represented by a histogram, the abscissa of the histogram is determined by an interaction party parameter, and the ordinate of the histogram is used for representing the data quantity of the transmission data element; the interactive party parameters are used for representing the types of interactive parties;
the scale determining unit is used for counting the instantaneous flow in a period of time, calculating the average flow and determining the scale of the database according to the average flow;
a database creation unit for creating a database based on the database size; the database contains software module tags;
and the data inserting unit is used for inserting the instantaneous flow into the database according to the acquisition time of the instantaneous flow in real time.
Based on the same conception, the technical scheme of the application also provides electronic equipment, which can comprise: a processor (processor), a communication interface (Communications Interface), a memory (memory) and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus. The processor may call logic instructions in the memory to perform the management method of the software module.
Further, the logic instructions in the memory described above may be implemented in the form of software functional units and stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Based on the same conception, the embodiments of the present application also provide a non-transitory computer readable storage medium storing a computer program, the computer program containing at least one piece of code executable by a master control device to control the master control device to implement the steps of the software module management method according to the above embodiments.
Based on the same technical concept, the embodiment of the present application also provides a computer program, which is used to implement the above-mentioned method embodiment when the computer program is executed by the master control device.
The program may be stored in whole or in part on a storage medium that is packaged with the processor, or in part or in whole on a memory that is not packaged with the processor.
Based on the same technical concept, the embodiment of the application also provides a processor, which is used for realizing the embodiment of the method. The processor may be a chip.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions in accordance with the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by a wired (e.g., coaxial cable, fiber optic, digital subscriber line), or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), etc.
Those of ordinary skill in the art will appreciate that implementing all or part of the above-described method embodiments may be accomplished by a computer program to instruct related hardware, the program may be stored in a computer readable storage medium, and the program may include the above-described method embodiments when executed. And the aforementioned storage medium includes: ROM or random access memory RAM, magnetic or optical disk, etc.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of managing software modules, the method comprising:
acquiring application data of each software module, and inputting the application data into a database containing software module labels;
receiving a data period input by a management party, extracting application data from a database according to the data period, and creating an influence factor;
randomly determining the resource proportion of each software module, and adjusting the resource proportion according to the influence factors;
circularly executing the above, and outputting the resource ratio when the adjusted resource ratio accords with a preset output condition;
wherein the influence factors are used for representing the influence degree of each software module on the resource allocation process.
2. The method of managing software modules according to claim 1, wherein the step of acquiring application data of each software module and inputting a database containing software module tags comprises:
embedding a flow monitoring port in a software module, and acquiring instantaneous flow at fixed time according to the flow monitoring port; the instantaneous flow is represented by a histogram, the abscissa of the histogram is determined by an interaction party parameter, and the ordinate of the histogram is used for representing the data quantity of the transmission data element; the interactive party parameters are used for representing the types of interactive parties;
calculating the instantaneous flow in a period of time, calculating the average flow, and determining the size of the database according to the average flow;
creating a database based on the database size; the database contains software module tags;
and inserting the instantaneous flow into a database according to the acquisition time of the instantaneous flow in real time.
3. The method for managing software modules according to claim 1, wherein the step of receiving the data period inputted by the manager, extracting the application data from the database according to the data period, and creating the influence factor comprises:
receiving a data period input by a management party, and extracting instantaneous flow from a database according to the data period;
identifying the instantaneous flow and extracting the total interactive data;
according to the time sequence, arranging the total interactive data, and fitting a total change curve through a list dotting method;
creating a demand profile based on the aggregate amount profile;
the extraction process of the total interactive data comprises the following steps:
,/>the method comprises the steps of carrying out a first treatment on the surface of the Wherein Y is the total interactive data amount, < >>For the ith data in the histogram, +.>The weight of the ith data in the histogram; n is the total amount of abscissa in the histogram; />Mapping the parameters of the interaction party to weights, and autonomously setting rules by a manager; />And respectively representing m parameters including user position, user age and user account level.
4. A method of managing software modules according to claim 3, wherein said step of randomly determining the resource ratios of the respective software modules and adjusting the resource ratios according to the influence factors comprises:
randomly determining the resource ratio of each software module with a preset number;
inquiring the total resource amount of the current server, and determining the allocation amount of each software module according to the total resource amount and the resource ratio;
determining a global optimal ratio and an own optimal ratio according to the distribution amount and the demand amount curve;
and adjusting the resource proportion according to the global optimal proportion and the self optimal proportion.
5. The method of software module management according to claim 4, wherein the step of determining the global optimum and the self-optimum according to the distribution amount and the demand amount curve comprises:
inquiring the demand of each software module at the current moment in the demand curve;
calculating a satisfaction rate according to the difference between the distribution amount and the demand amount and the difference;
sequentially counting all the satisfaction rates of each resource proportion, and calculating the average value of the satisfaction rates;
determining a global optimal ratio and an own optimal ratio according to the average value of the satisfaction rates; the global optimal ratio is the resource ratio with the largest satisfaction rate average value under the current iteration times; the self optimal ratio is a historical resource ratio with the largest average value of the satisfaction rate of a certain resource ratio.
6. The method of managing software modules according to claim 4, wherein the step of adjusting the resource allocation according to the global optimum and the self-optimum comprises:
calculating an adjustment item of the current resource proportion according to the global optimal proportion and the self optimal proportion;
determining an adjustment flow of the current resource proportion according to the adjustment item;
adjusting the current resource proportion according to the adjustment flow;
the process of determining the adjustment flow of the current resource ratio according to the adjustment item comprises the following steps:
the process for adjusting the current resource proportion according to the adjustment flow comprises the following steps:
in the method, in the process of the application,for the adjustment procedure in the (i+1) th iteration process,/a>The adjustment flow in the ith iteration process is adopted; qbest is global optimum, zbest is self optimum; />And->As a learning factor, the value is generally 2;is [0,1 ]]Random numbers of (a); the difference process of the resource ratio is the difference value between the distribution ratios of all the software modules, wherein the difference value contains a symbol, and the symbol is used for representing the direction; />For the resource proportion obtained in the (i+1) th iteration process,/a>The resource ratio obtained in the ith iteration process is obtained.
7. A system for managing software modules, the system comprising:
the data acquisition module is used for acquiring application data of each software module and inputting the application data into the database containing the software module labels;
the influence factor determining module is used for receiving the data period input by the management side, extracting application data from the database according to the data period and creating an influence factor;
the influence factor application module is used for randomly determining the resource proportion of each software module and adjusting the resource proportion according to the influence factors;
the circulation execution module is used for circularly executing the content, and outputting the resource ratio when the adjusted resource ratio accords with a preset output condition;
wherein the influence factors are used for representing the influence degree of each software module on the resource allocation process.
8. The software module management system of claim 7, wherein the data acquisition module comprises:
the flow monitoring unit is used for embedding a flow monitoring port in the software module and acquiring the instantaneous flow at fixed time according to the flow monitoring port; the instantaneous flow is represented by a histogram, the abscissa of the histogram is determined by an interaction party parameter, and the ordinate of the histogram is used for representing the data quantity of the transmission data element; the interactive party parameters are used for representing the types of interactive parties;
the scale determining unit is used for counting the instantaneous flow in a period of time, calculating the average flow and determining the scale of the database according to the average flow;
a database creation unit for creating a database based on the database size; the database contains software module tags;
and the data inserting unit is used for inserting the instantaneous flow into the database according to the acquisition time of the instantaneous flow in real time.
9. A computer device comprising one or more processors and one or more memories, the one or more memories having stored therein at least one program code which, when loaded and executed by the one or more processors, implements a method of managing software modules as claimed in any of claims 1 to 6.
10. A storage medium having stored therein at least one program code which, when loaded and executed by a processor, implements a method of managing software modules according to any one of claims 1 to 6.
CN202311454207.1A 2023-11-03 2023-11-03 Management method, system, computer equipment and storage medium of software module Pending CN117215799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311454207.1A CN117215799A (en) 2023-11-03 2023-11-03 Management method, system, computer equipment and storage medium of software module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311454207.1A CN117215799A (en) 2023-11-03 2023-11-03 Management method, system, computer equipment and storage medium of software module

Publications (1)

Publication Number Publication Date
CN117215799A true CN117215799A (en) 2023-12-12

Family

ID=89041185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311454207.1A Pending CN117215799A (en) 2023-11-03 2023-11-03 Management method, system, computer equipment and storage medium of software module

Country Status (1)

Country Link
CN (1) CN117215799A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117479235A (en) * 2023-12-28 2024-01-30 中通信息服务有限公司 Scheduling management method and system for terminal network facilities

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110093457A1 (en) * 2008-06-13 2011-04-21 Kddi Corporation Method for calculating resource points of resource information and distributing points
CN113703945A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Scheduling method, device, equipment and storage medium of micro-service cluster
CN113765949A (en) * 2020-06-02 2021-12-07 华为技术有限公司 Resource allocation method and device
CN115421885A (en) * 2022-08-29 2022-12-02 山东财经大学 Distributed multi-target cloud task scheduling method and device and cloud service system
CN115858161A (en) * 2022-12-08 2023-03-28 北京元年科技股份有限公司 Method, device, equipment and storage medium for intelligently managing resources of data middleboxes
US20230176918A1 (en) * 2021-12-08 2023-06-08 International Business Machines Corporation Automatic resource quota calculations based on tenant workloads
CN116684420A (en) * 2023-05-22 2023-09-01 中山大学 Cluster resource scheduling method, device, cluster system and readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110093457A1 (en) * 2008-06-13 2011-04-21 Kddi Corporation Method for calculating resource points of resource information and distributing points
CN113765949A (en) * 2020-06-02 2021-12-07 华为技术有限公司 Resource allocation method and device
CN113703945A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Scheduling method, device, equipment and storage medium of micro-service cluster
US20230176918A1 (en) * 2021-12-08 2023-06-08 International Business Machines Corporation Automatic resource quota calculations based on tenant workloads
CN115421885A (en) * 2022-08-29 2022-12-02 山东财经大学 Distributed multi-target cloud task scheduling method and device and cloud service system
CN115858161A (en) * 2022-12-08 2023-03-28 北京元年科技股份有限公司 Method, device, equipment and storage medium for intelligently managing resources of data middleboxes
CN116684420A (en) * 2023-05-22 2023-09-01 中山大学 Cluster resource scheduling method, device, cluster system and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王春林,柏建军等主编: "《人工智能=ARTIFICIAL INTELLIGENCE》", 30 September 2020, 西安电子科技大学出版社, pages: 42 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117479235A (en) * 2023-12-28 2024-01-30 中通信息服务有限公司 Scheduling management method and system for terminal network facilities
CN117479235B (en) * 2023-12-28 2024-03-19 中通信息服务有限公司 Scheduling management method and system for terminal network facilities

Similar Documents

Publication Publication Date Title
CN117215799A (en) Management method, system, computer equipment and storage medium of software module
CN106296669B (en) A kind of image quality evaluating method and device
CN109995837A (en) A kind of service package recommended method, device and server
CN106487939B (en) A kind of method and apparatus, a kind of electronic equipment of determining User IP subnet
CN107729924A (en) Picture review probability interval generation method and picture review decision method
CN108121312A (en) ARV SiteServer LBSs and method based on integrated water electricity control platform
CN113568759B (en) Cloud computing-based big data processing method and system
CN113590328B (en) Edge computing service interaction method and system based on block chain
CN117406844B (en) Display card fan control method and related device based on neural network
CN107196839A (en) Business data processing method and device
CN112494935B (en) Cloud game platform pooling method, electronic equipment and storage medium
CN116166444B (en) Collaborative reasoning method oriented to deep learning hierarchical model
CN115170390B (en) File stylization method, device, equipment and storage medium
CN116302874A (en) Model capability test method and device, electronic equipment, storage medium and product
CN114612037A (en) Warehouse information management method and system
CN116703457A (en) Prediction method and prediction device for life cycle value of user
CN111724176A (en) Shop traffic adjusting method, device, equipment and computer readable storage medium
CN116151601A (en) Stream service modeling method, device, platform, electronic equipment and storage medium
CN111768021A (en) Order price adjustment method, device, server and storage medium
CN114465921B (en) Peer-to-peer network control method, device, electronic equipment and storage medium
CN116233026B (en) Intelligent management method and system for data center
CN115473343B (en) Intelligent gateway multi-master-station parallel access test method
CN116402249B (en) Recommendation system overflow effect evaluation method, recommendation system overflow effect evaluation equipment and storage medium
CN108366022A (en) A kind of method and device of bandwidth allocation
CN108881057B (en) Method for selecting back source line and flow distributor

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