CN112416590A - Server system resource adjusting method and device, computer equipment and storage medium - Google Patents

Server system resource adjusting method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112416590A
CN112416590A CN202011329873.9A CN202011329873A CN112416590A CN 112416590 A CN112416590 A CN 112416590A CN 202011329873 A CN202011329873 A CN 202011329873A CN 112416590 A CN112416590 A CN 112416590A
Authority
CN
China
Prior art keywords
subsystem
statistical information
trend
resource
access records
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
CN202011329873.9A
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011329873.9A priority Critical patent/CN112416590A/en
Publication of CN112416590A publication Critical patent/CN112416590A/en
Pending legal-status Critical Current

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/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Abstract

The invention discloses a server system resource adjusting method, a server system resource adjusting device and computer equipment. The method comprises the following steps: the method comprises the steps of monitoring subsystems of an enterprise server in real time to obtain system access records, eliminating abnormal access records in the system access records to obtain effective access records, conducting trend statistics on the effective access records to obtain system trend statistical information, judging whether each subsystem operates normally or not by combining historical trend statistical information, and obtaining a resource adjustment proportion of each subsystem if the subsystems operate normally. And adjusting the system resources of each subsystem according to the resource adjustment proportion. The invention is based on a system resource monitoring technology, belongs to the field of cloud computing, acquires system trend statistical information of each subsystem, and acquires a corresponding resource adjustment proportion by combining historical trend statistical information, so that accurate automatic adjustment of system resources of the subsystems can be realized, and the efficiency of adjusting the system resources is further improved.

Description

Server system resource adjusting method and device, computer equipment and storage medium
Technical Field
The invention relates to the technical field of cloud computing, belongs to an application scene of intelligently adjusting system resources in an enterprise server in a smart city, and particularly relates to a method and a device for adjusting the system resources of the server, computer equipment and a storage medium.
Background
The development of the internet technology changes the traditional business processing model, business handling can be conveniently realized in an online mode by means of a client, a client can send a service request to an enterprise server through the client, the enterprise server can conveniently and quickly handle related business for the client after receiving the service request, in order to adapt to the change of the number of the service requests sent by the client, an enterprise generally needs to perform targeted configuration on system resources of the enterprise server, for example, if the number of the received service requests is obviously increased, the system resources of the enterprise server need to be expanded to meet the use requirements. In the prior art, an enterprise usually adjusts the system resources of the server when the number of service requests changes greatly, but in the prior art, it is usually difficult to accurately adjust the system resources to meet actual requirements, which results in low efficiency of adjusting the system resources. Therefore, the prior art method has the problem of low adjustment efficiency when adjusting the server system resources.
Disclosure of Invention
The embodiment of the invention provides a method and a device for adjusting server system resources, computer equipment and a storage medium, aiming at solving the problem of low adjustment efficiency when the prior art method is used for adjusting the server system resources.
In a first aspect, an embodiment of the present invention provides a method for adjusting resources of a server system, where the method includes:
monitoring a plurality of subsystems in the enterprise server in real time to obtain corresponding system access records;
if the preset processing time point is reached, rejecting abnormal access records in the system access records within the processing interval time to obtain effective access records, wherein the processing interval time is the interval time between the current processing time point and the previous processing time point;
performing trend statistics on the effective access records according to a preset trend statistical rule to obtain system trend statistical information;
judging whether the running state of each subsystem is normal or not according to the system trend statistical information and pre-stored historical trend statistical information;
if the running states of the subsystems are normal, acquiring the resource adjustment proportion of each subsystem according to a preset proportion analysis model, the system trend statistical information and the historical trend statistical information;
and adjusting the system resources of each subsystem according to the resource adjustment proportion.
In a second aspect, an embodiment of the present invention provides a server system resource adjusting apparatus, which includes:
the system access record acquisition unit is used for monitoring a plurality of subsystems in the enterprise server in real time to acquire corresponding system access records;
the effective access record obtaining unit is used for removing abnormal access records in the system access records within processing interval time to obtain effective access records if a preset processing time point is reached, wherein the processing interval time is the interval time between the current processing time point and the last processing time point;
the trend statistical information acquisition unit is used for carrying out trend statistics on the effective access records according to a preset trend statistical rule to obtain system trend statistical information;
the running state judging unit is used for judging whether the running state of each subsystem is normal or not according to the system trend statistical information and pre-stored historical trend statistical information;
a resource adjustment proportion obtaining unit, configured to obtain a resource adjustment proportion of each subsystem according to a preset proportion analysis model, the system trend statistical information, and the historical trend statistical information if the operating states of the subsystems are normal;
and the system resource adjusting unit is used for adjusting the system resources of each subsystem according to the resource adjusting proportion.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor, when executing the computer program, implements the server system resource adjustment method described in the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and the computer program, when executed by a processor, causes the processor to execute the server system resource adjustment method according to the first aspect.
The embodiment of the invention provides a method and a device for adjusting server system resources, computer equipment and a storage medium. The method comprises the steps of monitoring subsystems of an enterprise server in real time to obtain system access records, eliminating abnormal access records in the system access records to obtain effective access records, conducting trend statistics on the effective access records to obtain system trend statistical information, judging whether each subsystem operates normally or not by combining historical trend statistical information, and obtaining a resource adjustment proportion of each subsystem if the subsystems operate normally. And adjusting the system resources of each subsystem according to the resource adjustment proportion. By the method, the system trend statistical information of each subsystem is obtained, and the corresponding resource adjustment proportion is obtained by combining the historical trend statistical information, so that the system resources of the subsystems can be accurately and automatically adjusted, and the efficiency of adjusting the system resources is improved.
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 description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are 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 schematic flowchart of a method for adjusting resources of a server system according to an embodiment of the present invention;
fig. 2 is a schematic view of an application scenario of a server system resource adjustment method according to an embodiment of the present invention;
fig. 3 is a sub-flow diagram of a method for adjusting resources of a server system according to an embodiment of the present invention;
FIG. 4 is a schematic view of another sub-flow of a method for adjusting server system resources according to an embodiment of the present invention;
FIG. 5 is a schematic view of another sub-flow chart of a method for adjusting resources of a server system according to an embodiment of the present invention;
fig. 6 is another schematic flow chart illustrating a method for adjusting resources of a server system according to an embodiment of the present invention;
FIG. 7 is a schematic view of another sub-flow chart of a method for adjusting resources of a server system according to an embodiment of the present invention;
FIG. 8 is a schematic view of another sub-flow chart of a method for adjusting resources of a server system according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of a server system resource adjusting apparatus according to an embodiment of the present invention;
FIG. 10 is a schematic block diagram of a computer device provided by an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. 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.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification 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 further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a flow chart illustrating a method for adjusting resources of a server system according to an embodiment of the present invention, fig. 2 is a schematic view of an application scenario of the method for adjusting server system resources according to the embodiment of the present invention, the server system resource adjusting method is applied to a management terminal 10, the method is executed by application software installed in the management terminal 10, the management terminal 10 is connected with an enterprise server 20 through a network for data information transmission, the management terminal 10 is a terminal device for executing the server system resource adjusting method to realize intelligent adjustment of system resources in the enterprise server, such as a desktop computer, a notebook computer, a tablet computer, or a mobile phone, the user of the management terminal 10 may be an administrator inside an enterprise, and the enterprise server 20 is a server side constructed inside the enterprise for providing services to users outside the enterprise. As shown in fig. 1, the method includes steps S110 to S160.
And S110, monitoring a plurality of subsystems in the enterprise server in real time to obtain corresponding system access records.
And monitoring a plurality of subsystems in the enterprise server in real time to obtain corresponding system access records. The user can send a service request to the enterprise server, the enterprise server comprises a plurality of subsystems, each subsystem can process one type of service request, one subsystem processes one service request, namely the subsystem is accessed once, a series relation exists among the subsystems, for example, A, B, C subsystems are configured in one enterprise server, part of the service request processed by the subsystem A flows to the subsystem B to be processed, and part of the service request processed by the subsystem B flows to the subsystem C to be processed. The management server can monitor the enterprise server in real time to acquire system access records corresponding to the subsystems. Specifically, the system access record includes the service request received by each subsystem at each time point and the system resource occupation ratio at each time point, where the system resource occupation ratio includes the CPU load, the memory occupation ratio, the network occupation ratio, the processing response time, and the like of each subsystem at each time point.
And S120, if the preset processing time point is reached, eliminating abnormal access records in the system access records within the processing interval time to obtain effective access records.
If the preset processing time point is reached, the abnormal access records in the system access records can be removed to obtain valid access records, specifically, the processing interval time can be set, and when the processing time is separated from the previous processing time point, the system access records obtained in the interval time can be processed, for example, the processing interval time can be configured to be 5 minutes. The system access record contains part of abnormal data, and the adjustment of the system resources based on the system access record containing the abnormal data affects the accuracy of the adjustment, so that the abnormal data in the system access record needs to be removed to obtain an effective access record.
Specifically, in one embodiment, as shown in fig. 3, step S120 includes substeps S121, S122, S123, S124, S125 and S126.
S121, counting the access times of each access source address according to the access source address of the service request received by each subsystem.
Each service request received by the enterprise server comprises a corresponding access source address, the access source address is the network address information of the terminal sending the service request, and the access source addresses of the service requests sent by the same terminal are the same. The number of accesses per access source address may be counted based on the access source address of the received service request.
S122, judging whether the access times of each access source address exceed a preset time threshold value; and S123, removing the service request corresponding to the access source address exceeding the time threshold from the system access record to obtain a system access correction record.
The method can judge whether the access times of each access source address in the processing interval time exceed a time threshold, and if the access times from the same access source address in a short time are too many, the access source address is indicated to have abnormal access conditions, so that the service requests of the access source addresses exceeding the time threshold can be removed, and a system access correction record is obtained.
For example, if the number threshold is set to 10, an access source address whose access number exceeds 10 within the processing interval time may be acquired, and the service request corresponding to the access source address may be rejected.
S124, acquiring the number of the service requests received by each subsystem at each time point according to the system access correction record to obtain request number information; and S125, acquiring the quantity value meeting the extreme value eliminating rule in the request quantity information of each subsystem according to a preset extreme value eliminating rule as a request quantity extreme value.
The data of the service requests received by each subsystem at each time point can be obtained, for example, if the time point is 1 second, the quantity value of the service requests received by each subsystem per second can be obtained, and the request quantity information of each subsystem is obtained. The method comprises the steps of obtaining a quantity value meeting an extreme value eliminating rule from request quantity information according to a preset extreme value eliminating rule, wherein the extreme value eliminating rule is a specific rule for eliminating a maximum value and a minimum value in the request quantity information, the maximum value and the minimum value in the request quantity information are quantity values obtained under the extreme condition, the reference meanings of the maximum value and the minimum value are limited, and in order to avoid the influence of the maximum value and the minimum value on the subsequent analysis process, the corresponding quantity value can be eliminated from the request quantity information according to the extreme value eliminating rule. Specifically, the quantity value satisfying the extreme value rejection rule in the request quantity information can be obtained to obtain the request quantity extreme value, the extreme value rejection rule can include a maximum value proportion and a minimum value proportion, corresponding maximum values and minimum values in the request quantity information are respectively obtained according to the maximum value proportion and the minimum value proportion and serve as the request quantity extreme value satisfying the extreme value rejection rule, for example, the maximum value proportion is 5%, the minimum value proportion is 3%, and then the quantity values of 5% at the top and 3% at the tail in the request quantity information of each subsystem can be determined as the request quantity extreme value according to the extreme value rejection rule.
And S126, removing the service requests and the system resource occupation ratios at the time points corresponding to the request quantity extremum from the system access records to obtain the effective access records.
The request quantity information of one subsystem comprises the quantity value of the service request corresponding to each time point, the system access record comprises the service request received by each subsystem at each time point and the system resource occupation ratio of each time point, the time point corresponding to the request quantity extremum of each subsystem can be obtained, the service request corresponding to the time point and the system resource occupation ratio information in the system access record are removed, effective access information is obtained, and the accuracy of adjusting the system resources based on the effective access record can be improved after the maximum value and the minimum value are removed.
And S130, performing trend statistics on the effective access records according to a preset trend statistical rule to obtain system trend statistical information.
The effective access records can be subjected to trend statistics according to preset trend statistical rules to obtain system trend statistical information, wherein the trend statistical rules are specific rules for performing statistics on the effective access records, the system trend statistical information is trend information of system resource consumption of each subsystem obtained through statistics, the system resource consumption condition of the corresponding subsystem can be specifically analyzed based on the system trend statistical information of each subsystem, and the system resources of the corresponding subsystem are adjusted according to the analysis result. Specifically, the trend statistical rule includes a plurality of step statistical values, and the trend statistics can be performed on the effective access records of each subsystem according to the step statistical values.
Specifically, in one embodiment, as shown in fig. 4, step S130 includes sub-steps S131 and S132.
S131, acquiring the comprehensive resource ratio of each subsystem at each time point according to a preset coefficient calculation formula and the effective access records.
The comprehensive resource proportion of each subsystem at each time point can be obtained according to the effective access information, the comprehensive resource proportion can reflect the comprehensive consumption condition of the system resources of the subsystem at a certain time point, and the comprehensive resource proportion of a certain subsystem at a certain time point can be obtained through the effective access records of the subsystem. Specifically, an average resource occupation ratio of each subsystem at each time point is calculated, where the average resource occupation ratio may be an average value of three numerical values, i.e., CPU load, memory occupation ratio, and network occupation ratio, and a processing response coefficient of each subsystem at each time point is calculated, where the processing response coefficient may be calculated by a coefficient calculation formula: and T is the calculated processing response coefficient, T is the processing response time, wherein the value of T is more than 5ms, and the average resource occupation ratio of each subsystem at the same time point is multiplied by the processing response coefficient to obtain the comprehensive resource occupation ratio of each subsystem at each time point.
For example, the CPU load, the memory occupancy rate, and the network occupancy rate of a certain subsystem at a certain time point are respectively 35%, 25%, and 40%, the processing response time is 43ms, and the calculated average resource occupancy rate is (35% + 25% + 40%)/3 is 0.33; calculating to obtain a processing response coefficient T-log (43/50) + 1-0.9345; the total resource share ratio of the subsystem at the corresponding time point is 0.33 × 0.9345 — 0.3084.
And S132, performing trend statistics on the effective access records according to the step statistics value contained in the trend statistical rule and the comprehensive resource ratio of each subsystem to obtain system trend statistical information of each subsystem.
The trend statistical rule comprises a plurality of step statistical values, and the trend statistics is carried out according to the step statistical values and the comprehensive resource occupation ratio effective access records, so that system trend statistical information can be obtained, wherein the system trend statistical information is the trend information of the system resource consumption of the corresponding subsystem. Specifically, the time point of exceeding the statistical value of each step in the comprehensive resource ratio of each subsystem can be obtained, the comprehensive resource ratio number of the time point of exceeding the statistical value of each step is further counted, and the average request number of the service requests corresponding to the time point of exceeding the statistical value of each step in the effective access record is obtained.
For example, the system trend statistics information obtained by trend statistics of the valid access records of the a subsystem is shown in table 1.
Step statistic Number of time points Average number of requests
Ratio of comprehensive resources>30% 170 236
Ratio of comprehensive resources>50% 69 425
Ratio of comprehensive resources>80% 12 621
Ratio of comprehensive resources>95% 3 834
TABLE 1
And S140, judging whether the running state of each subsystem is normal or not according to the system trend statistical information and the pre-stored historical trend statistical information.
And judging whether the running state of each subsystem is normal or not according to the system trend statistical information and pre-stored historical trend statistical information. And performing the statistical analysis on the system access records obtained by monitoring each subsystem all the time to obtain historical trend statistical information of each subsystem, and judging the corresponding system trend statistical information based on the historical trend statistical information corresponding to each subsystem to obtain a judgment result of whether the running state of each subsystem is normal.
Specifically, in one embodiment, as shown in fig. 5, step S140 includes sub-steps S141 and S142.
S141, acquiring a loop ratio increment value corresponding to each subsystem and each step statistic value according to the historical trend statistic information and the system trend statistic information of each subsystem; and S142, judging whether each ring ratio increment value of each subsystem is in a preset increment interval or not, and obtaining a judgment result whether the running state of each subsystem is normal or not.
Specifically, historical trend statistical information obtained through last statistics corresponding to a certain subsystem is obtained, and based on the historical trend statistical information obtained through last statistics and the system trend statistical information of the subsystem, a ring ratio increase value corresponding to each step statistical value of the subsystem can be obtained through calculation. For example, if the number of time points in the system trend statistical information of a certain subsystem where the total resource occupancy is greater than 80% is 12 times, and the number of time points in the historical trend statistical information of the last statistical time where the total resource occupancy is greater than 80% is 9 times, the loop ratio increase value corresponding to the step statistical value of the subsystem is 1.33.
Acquiring a loop ratio increment value corresponding to each subsystem and each step statistic value, and judging whether each loop ratio increment value of each subsystem is in an increment interval or not, wherein if each loop ratio increment value of a certain subsystem is in the increment interval, the running state of the subsystem is normal; and if any ring ratio increment value of a certain subsystem is not in the increment interval, the running state of the subsystem is abnormal.
For example, the growth interval may be set to [0.2, 2 ].
S150, if the running states of the subsystems are normal, acquiring the resource adjustment proportion of each subsystem according to a preset proportion analysis model, the system trend statistical information and the historical trend statistical information.
And if the running states of the subsystems are normal, acquiring the resource adjustment proportion of each subsystem according to a preset proportion analysis model, the system trend statistical information and the historical trend statistical information. Comparing the historical trend statistical information with the currently obtained system trend statistical information to obtain a comparison result of each subsystem, inputting the comparison result into a proportional analysis model to obtain the resource adjustment proportion of each subsystem, and adjusting the system resources of each subsystem according to the resource adjustment proportion, wherein the proportional analysis model is an intelligent model which is constructed based on a neural network and is used for carrying out overall analysis on the resource adjustment proportion of the subsystems.
Specifically, in one embodiment, as shown in fig. 6, step S1401 is included after step S140.
S1401, if the subsystem with abnormal operation state exists, corresponding alarm prompt information is sent to the subsystem with abnormal operation state.
And generating corresponding alarm prompt information for the abnormal subsystems according to the running states, and acquiring which subsystems are abnormal currently by receiving the alarm prompt information by an administrator of the management terminal.
Specifically, in one embodiment, as shown in fig. 7, step S140 includes sub-steps S151, S152, and S153.
S151, calculating the historical trend statistical information of each subsystem according to a preset reference calculation formula to obtain reference comparison information of each subsystem; and S152, acquiring the growth coefficient of each subsystem according to the reference comparison information and the system trend statistical information.
The reference comparison information comprises a comparison value corresponding to each statistical item, and can be used as a comparison reference to be compared with the system trend statistical information of the subsystem so as to obtain the growth coefficient of the subsystem.
Specifically, the reference calculation formula can be expressed as: sj=r1×vj1+r2×vj2+…+ri×vji(ii) a Wherein r is1+r2+…+ri=1,SjIs a contrast value corresponding to the jth statistical term, vjiIs the ith statistical value r corresponding to the jth statistical item in the historical trend statistical informationiAre the coefficient values in the formula. If the system trend statistics in table 1 includes eight statistics, eight comparison values are obtained.
And calculating the reference contrast information of each subsystem according to the reference calculation formula, wherein the reference contrast information comprises a contrast value corresponding to each statistical term, calculating a ratio value of the system trend statistical information of each subsystem divided by each pair of ratio values according to the reference contrast information, and the plurality of ratio values of each subsystem are growth coefficients of each subsystem.
And S153, inputting the growth coefficient of each subsystem into the proportion analysis model to obtain the resource adjustment proportion of each subsystem.
The proportion analysis model is composed of a plurality of input nodes, an output node and a full connection layer, each input node corresponds to a proportion value in a growth coefficient, the output node corresponds to an adjustment proportion value corresponding to the growth coefficient, the full connection layer is arranged between the input nodes and the output node, the full connection layer comprises a plurality of characteristic units, a first formula group is arranged between the input nodes and the full connection layer, and a second formula group is arranged between the output nodes and the full connection layer. The first formula group comprises formulas from all input nodes to all feature cells, the formulas in the first formula group all use input node values as input values and feature cell values as output values, the second formula group comprises formulas from all output nodes to all feature cells, and the formulas in the second formula group all use feature cell values as input values and output node values as output values. And the output node value is also the adjustment proportion value corresponding to the growth coefficient, the growth coefficient of each subsystem is respectively input into the input node of the proportion analysis model, the output node value of the output node is obtained after calculation of the full connection layer, and the output node value of each subsystem is used as the corresponding resource adjustment proportion, wherein the obtained resource adjustment proportion is any value larger than 0.
And S160, adjusting the system resources of each subsystem according to the resource adjustment proportion.
And after the resource adjustment proportion of each subsystem is obtained, the system resources of the subsystems can be adjusted according to the resource adjustment proportion. Specifically, if the system resources of each subsystem cannot meet the existing use requirements, the system resources of each subsystem need to be expanded and adjusted, and if some of the system resources of the subsystems have surplus, the system resources of all the subsystems can be reallocated according to the resource adjustment proportion.
Specifically, in one embodiment, as shown in fig. 8, step S160 includes sub-steps S161, S162, and S163.
S161, judging whether the resource adjustment proportions of all the subsystems meet preset allocation conditions or not; and S162, if the resource adjustment proportion does not meet the distribution condition, expanding and adjusting the system resources of each subsystem according to the resource adjustment proportion.
If the resource adjustment proportion does not meet the allocation condition, the system resources of each subsystem cannot meet the existing use requirements, and a corresponding adjustment instruction can be sent to the enterprise server so as to expand the system resources to be allocated in the enterprise server to the corresponding subsystem and realize the expansion adjustment of the system resources of the subsystem. For example, the allocation condition may be that the sum of the resource adjustment ratios is not more than 3.
And S163, if the resource adjustment proportion meets the allocation condition, reallocating the system resources of each subsystem according to the resource adjustment proportion.
If the resource adjustment proportion meets the allocation condition, it indicates that the system resources of a middle subsystem are surplus, the system resources of the subsystems are reallocated according to the resource adjustment proportion, specifically, the overall system resources of all the subsystems are obtained, the system resource allocation ratio of each subsystem is calculated according to the initial system resources and the resource adjustment proportion of all the subsystems, and the overall system resources are reallocated according to the system resource allocation ratio, so that the system resources of each subsystem are reallocated.
For example, the initial system resource occupation ratios of the subsystem a, the subsystem B and the subsystem C are 56, 30 and 12, respectively, and the resource adjustment ratios of the three subsystems are 0.9, 0.85 and 1.2, respectively; the calculated system resource allocation ratios are 55.8%, 28.2% and 15.9%, and 98 parts of system resources of the three subsystems are reallocated according to the resource allocation ratios.
The technical method can be applied to application scenes including intelligent adjustment of system resources in enterprise servers, such as intelligent government affairs, intelligent city management, intelligent community, intelligent security protection, intelligent logistics, intelligent medical treatment, intelligent education, intelligent environmental protection and intelligent traffic, so that the construction of intelligent cities is promoted.
In the server system resource adjustment method provided by the embodiment of the invention, the subsystems of the enterprise server are monitored in real time to obtain the system access records, the abnormal access records in the system access records are eliminated to obtain the effective access records, the effective access records are subjected to trend statistics to obtain the system trend statistical information, the historical trend statistical information is combined to judge whether each subsystem operates normally, and if the subsystems operate normally, the resource adjustment proportion of each subsystem is obtained. And adjusting the system resources of each subsystem according to the resource adjustment proportion. By the method, the system trend statistical information of each subsystem is obtained, and the corresponding resource adjustment proportion is obtained by combining the historical trend statistical information, so that the system resources of the subsystems can be accurately and automatically adjusted, and the efficiency of adjusting the system resources is improved.
The embodiment of the invention also provides a server system resource adjusting device, which is used for executing any embodiment of the server system resource adjusting method. Specifically, referring to fig. 9, fig. 9 is a schematic block diagram of a server system resource adjusting apparatus according to an embodiment of the present invention. The server system resource adjusting apparatus may be disposed in the management terminal 10.
As shown in fig. 9, the server system resource adjustment apparatus 100 includes a system access record acquisition unit 110, an effective access record acquisition unit 120, a trend statistical information acquisition unit 130, an operation state judgment unit 140, a resource adjustment ratio acquisition unit 150, and a system resource adjustment unit 160.
A system access record obtaining unit 110, configured to perform real-time monitoring on multiple subsystems in the enterprise server to obtain corresponding system access records.
And the valid access record obtaining unit 120 is configured to, if the preset processing time point is reached, remove an abnormal access record in the system access records within the processing interval time to obtain a valid access record.
In an embodiment, the valid access record obtaining unit 120 includes sub-units: the system comprises an access frequency counting unit, an access frequency judging unit, a first rejecting unit, a request quantity information acquiring unit, a request quantity extreme value acquiring unit and a second rejecting unit.
The access frequency counting unit is used for counting the access frequency of each access source address according to the access source address of the service request received by each subsystem; an access frequency judging unit, configured to judge whether the access frequency of each access source address exceeds a preset frequency threshold; the first removing unit is used for removing the service request corresponding to the access source address exceeding the frequency threshold value from the system access record to obtain a system access correction record; a request quantity information obtaining unit, configured to obtain, according to the system access correction record, the quantity of service requests received by each subsystem at each time point to obtain request quantity information; a request quantity extreme value obtaining unit, configured to obtain, according to a preset extreme value eliminating rule, a quantity value that satisfies the extreme value eliminating rule in the request quantity information of each subsystem as a request quantity extreme value; and the second removing unit is used for removing the service requests and the system resource ratios at the time points corresponding to the extreme value of the number of the requests from the system access records to obtain the effective access records.
And a trend statistical information obtaining unit 130, configured to perform trend statistics on the valid access records according to preset trend statistical rules to obtain system trend statistical information.
In one embodiment, the trend statistics information obtaining unit 130 includes sub-units: the comprehensive resource ratio acquiring unit and the trend statistical unit.
The comprehensive resource proportion obtaining unit is used for obtaining the comprehensive resource proportion of each subsystem at each time point according to a preset coefficient calculation formula and the effective access records; and the trend statistical unit is used for carrying out trend statistics on the effective access records according to the step statistical value contained in the trend statistical rule and the comprehensive resource ratio of each subsystem to obtain system trend statistical information of each subsystem.
And an operation state judgment unit 140, configured to judge whether the operation state of each subsystem is normal according to the system trend statistical information and pre-stored historical trend statistical information.
In one embodiment, the operation state determination unit 140 includes sub-units: an annular ratio increase value acquisition unit and an annular ratio increase value judgment unit.
The loop ratio increment value acquisition unit is used for acquiring a loop ratio increment value corresponding to each subsystem and each step statistic value according to the historical trend statistic information and the system trend statistic information of each subsystem; and the loop ratio increase value judging unit is used for judging whether each loop ratio increase value of each subsystem is in a preset increase interval or not and obtaining a judgment result whether the running state of each subsystem is normal or not.
And a resource adjustment ratio obtaining unit 150, configured to obtain a resource adjustment ratio of each subsystem according to a preset ratio analysis model, the system trend statistical information, and the historical trend statistical information if the operating states of the subsystems are normal.
In an embodiment, the server system resource adjusting apparatus 100 further includes sub-units: and an alarm prompting unit.
And the alarm prompting unit is used for sending corresponding alarm prompting information to the subsystem with the abnormal operation state if the subsystem with the abnormal operation state exists.
In an embodiment, the resource adjustment ratio obtaining unit 150 includes sub-units: the device comprises a reference comparison information acquisition unit, a growth coefficient acquisition unit and an adjustment proportion acquisition unit.
The reference comparison information acquisition unit is used for calculating the historical trend statistical information of each subsystem according to a preset reference calculation formula to obtain the reference comparison information of each subsystem; the growth coefficient acquisition unit is used for acquiring the growth coefficient of each subsystem according to the reference comparison information and the system trend statistical information; and the adjustment proportion acquisition unit is used for inputting the growth coefficient of each subsystem into the proportion analysis model so as to acquire the resource adjustment proportion of each subsystem.
The system resource adjusting unit 160 is configured to adjust the system resource of each subsystem according to the resource adjustment ratio.
In one embodiment, the system resource adjustment unit 160 includes sub-units: a resource adjustment ratio judging unit, an expansion adjusting unit and an allocation adjusting unit.
A resource adjustment ratio judging unit, configured to judge whether the resource adjustment ratios of all the subsystems meet a preset allocation condition; the expansion adjusting unit is used for expanding and adjusting the system resources of each subsystem according to the resource adjusting proportion if the resource adjusting proportion does not meet the allocation condition; and the allocation adjusting unit is used for reallocating the system resources of each subsystem according to the resource adjusting proportion if the resource adjusting proportion meets the allocation condition.
The server system resource adjusting device provided by the embodiment of the invention is applied to the server system resource adjusting method, the subsystems of the enterprise server are monitored in real time to obtain the system access records, the abnormal access records in the system access records are eliminated to obtain the effective access records, the trend statistics is carried out on the effective access records to obtain the system trend statistical information, whether each subsystem operates normally or not is judged by combining the historical trend statistical information, and if the subsystems operate normally, the resource adjusting proportion of each subsystem is obtained. And adjusting the system resources of each subsystem according to the resource adjustment proportion. By the method, the system trend statistical information of each subsystem is obtained, and the corresponding resource adjustment proportion is obtained by combining the historical trend statistical information, so that the system resources of the subsystems can be accurately and automatically adjusted, and the efficiency of adjusting the system resources is improved.
The server system resource adjusting means may be implemented in the form of a computer program that can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a management terminal for executing the server system resource adjustment method to intelligently adjust system resources in the enterprise server.
Referring to fig. 10, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, causes the processor 502 to perform a server system resource adjustment method.
The processor 502 is used to provide computing and control capabilities that support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to execute the server system resource adjustment method.
The network interface 505 is used for network communication, such as providing transmission of data information. Those skilled in the art will appreciate that the configuration shown in fig. 10 is a block diagram of only a portion of the configuration associated with aspects of the present invention and is not intended to limit the computing device 500 to which aspects of the present invention may be applied, and that a particular computing device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
The processor 502 is configured to run the computer program 5032 stored in the memory to implement the corresponding functions in the server system resource adjustment method.
Those skilled in the art will appreciate that the embodiment of a computer device illustrated in fig. 10 does not constitute a limitation on the specific construction of the computer device, and that in other embodiments a computer device may include more or fewer components than those illustrated, or some components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may only include a memory and a processor, and in such embodiments, the structures and functions of the memory and the processor are consistent with those of the embodiment shown in fig. 10, and are not described herein again.
It should be understood that, in the embodiment of the present invention, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a non-volatile computer readable storage medium. The computer readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps included in the server system resource adjustment method described above.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses, devices and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only a logical division, and there may be other divisions when the actual implementation is performed, or units having the same function may be grouped into one unit, for example, a plurality of units or components may be combined or may be 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 also be an electric, mechanical or other form of connection.
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 of the present invention.
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, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention essentially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product stored in a computer-readable storage medium, which includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage media comprise: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A method for adjusting server system resources is applied to a management terminal, the management terminal is in network connection with an enterprise server to realize the transmission of data information, and the method is characterized by comprising the following steps:
monitoring a plurality of subsystems in the enterprise server in real time to obtain corresponding system access records;
if the preset processing time point is reached, rejecting abnormal access records in the system access records within the processing interval time to obtain effective access records, wherein the processing interval time is the interval time between the current processing time point and the previous processing time point;
performing trend statistics on the effective access records according to a preset trend statistical rule to obtain system trend statistical information;
judging whether the running state of each subsystem is normal or not according to the system trend statistical information and pre-stored historical trend statistical information;
if the running states of the subsystems are normal, acquiring the resource adjustment proportion of each subsystem according to a preset proportion analysis model, the system trend statistical information and the historical trend statistical information;
and adjusting the system resources of each subsystem according to the resource adjustment proportion.
2. The method for adjusting server system resources according to claim 1, wherein the culling abnormal access records from the system access records within the processing interval time to obtain valid access records comprises:
counting the access times of each access source address according to the access source address of the service request received by each subsystem;
judging whether the access times of each access source address exceed a preset time threshold value or not;
removing the service request corresponding to the access source address exceeding the time threshold from the system access record to obtain a system access correction record;
acquiring the number of service requests received by each subsystem at each time point according to the system access correction record to obtain request number information;
acquiring the quantity value meeting the extreme value eliminating rule in the request quantity information of each subsystem according to a preset extreme value eliminating rule as a request quantity extreme value;
and removing the service requests and the system resource occupation ratios at the time points corresponding to the request quantity extremum from the system access records to obtain the effective access records.
3. The method for adjusting server system resources according to claim 1, wherein performing trend statistics on the valid access records according to preset trend statistical rules to obtain system trend statistical information includes:
acquiring the comprehensive resource proportion of each subsystem at each time point according to a preset coefficient calculation formula and the effective access records;
and performing trend statistics on the effective access records according to the step statistics value contained in the trend statistical rule and the comprehensive resource ratio of each subsystem to obtain system trend statistical information of each subsystem.
4. The method for adjusting server system resources according to claim 1, wherein the determining whether the operation status of each of the subsystems is normal according to the system trend statistical information and pre-stored historical trend statistical information includes:
acquiring a loop ratio increment value corresponding to each subsystem and each step statistic value according to the historical trend statistic information and the system trend statistic information of each subsystem;
and judging whether each ring ratio increment value of each subsystem is within a preset increment interval or not to obtain a judgment result whether the running state of each subsystem is normal or not.
5. The method for adjusting server system resources according to claim 1, wherein after determining whether the operating status of each of the subsystems is normal according to the system trend statistical information and pre-stored historical trend statistical information, the method further comprises:
and if the subsystem with the abnormal operation state exists, sending corresponding alarm prompt information to the subsystem with the abnormal operation state.
6. The method for adjusting resources of a server system according to claim 1, wherein the obtaining the resource adjustment ratio of each subsystem according to a preset ratio analysis model, the system trend statistical information, and the historical trend statistical information includes:
calculating the historical trend statistical information of each subsystem according to a preset reference calculation formula to obtain reference comparison information of each subsystem;
acquiring a growth coefficient of each subsystem according to the reference comparison information and the system trend statistical information;
and inputting the growth coefficient of each subsystem into the proportion analysis model to obtain the resource adjustment proportion of each subsystem.
7. The method according to claim 1, wherein the adjusting the system resources of each of the subsystems according to the resource adjustment ratio comprises:
judging whether the resource adjustment proportions of all the subsystems meet preset allocation conditions or not;
if the resource adjustment proportion does not meet the allocation condition, expanding and adjusting the system resources of each subsystem according to the resource adjustment proportion;
and if the resource adjustment proportion meets the allocation condition, reallocating the system resources of each subsystem according to the resource adjustment proportion.
8. A server system resource adjustment apparatus, comprising:
the system access record acquisition unit is used for monitoring a plurality of subsystems in the enterprise server in real time to acquire corresponding system access records;
the effective access record obtaining unit is used for removing abnormal access records in the system access records within processing interval time to obtain effective access records if a preset processing time point is reached, wherein the processing interval time is the interval time between the current processing time point and the last processing time point;
the trend statistical information acquisition unit is used for carrying out trend statistics on the effective access records according to a preset trend statistical rule to obtain system trend statistical information;
the running state judging unit is used for judging whether the running state of each subsystem is normal or not according to the system trend statistical information and pre-stored historical trend statistical information;
a resource adjustment proportion obtaining unit, configured to obtain a resource adjustment proportion of each subsystem according to a preset proportion analysis model, the system trend statistical information, and the historical trend statistical information if the operating states of the subsystems are normal;
and the system resource adjusting unit is used for adjusting the system resources of each subsystem according to the resource adjusting proportion.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the server system resource adjustment method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to execute the server system resource adjustment method according to any one of claims 1 to 7.
CN202011329873.9A 2020-11-24 2020-11-24 Server system resource adjusting method and device, computer equipment and storage medium Pending CN112416590A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011329873.9A CN112416590A (en) 2020-11-24 2020-11-24 Server system resource adjusting method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011329873.9A CN112416590A (en) 2020-11-24 2020-11-24 Server system resource adjusting method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112416590A true CN112416590A (en) 2021-02-26

Family

ID=74778580

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011329873.9A Pending CN112416590A (en) 2020-11-24 2020-11-24 Server system resource adjusting method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112416590A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208893A (en) * 2022-05-23 2022-10-18 中国银行股份有限公司 Resource scheduling method and device
CN117112236A (en) * 2023-10-23 2023-11-24 山东曙光照信息技术股份有限公司 Jurisdictional server configuration method and system based on data inrush current and volatility prediction

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130166486A1 (en) * 2011-12-21 2013-06-27 Sung Jin Kim Making estimations or predictions about databases based on data trends
CN107766299A (en) * 2017-10-24 2018-03-06 携程旅游信息技术(上海)有限公司 The abnormal monitoring method of data target and its system, storage medium, electronic equipment
US10715393B1 (en) * 2019-01-18 2020-07-14 Goldman Sachs & Co. LLC Capacity management of computing resources based on time series analysis
CN111813535A (en) * 2019-04-11 2020-10-23 中国移动通信集团四川有限公司 Resource configuration determining method and device and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130166486A1 (en) * 2011-12-21 2013-06-27 Sung Jin Kim Making estimations or predictions about databases based on data trends
CN107766299A (en) * 2017-10-24 2018-03-06 携程旅游信息技术(上海)有限公司 The abnormal monitoring method of data target and its system, storage medium, electronic equipment
US10715393B1 (en) * 2019-01-18 2020-07-14 Goldman Sachs & Co. LLC Capacity management of computing resources based on time series analysis
CN111813535A (en) * 2019-04-11 2020-10-23 中国移动通信集团四川有限公司 Resource configuration determining method and device and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115208893A (en) * 2022-05-23 2022-10-18 中国银行股份有限公司 Resource scheduling method and device
CN115208893B (en) * 2022-05-23 2024-04-16 中国银行股份有限公司 Resource scheduling method and device
CN117112236A (en) * 2023-10-23 2023-11-24 山东曙光照信息技术股份有限公司 Jurisdictional server configuration method and system based on data inrush current and volatility prediction
CN117112236B (en) * 2023-10-23 2024-02-20 山东曙光照信息技术股份有限公司 Jurisdictional server configuration method and system based on data inrush current and volatility prediction

Similar Documents

Publication Publication Date Title
CN110245687B (en) User classification method and device
CN112416590A (en) Server system resource adjusting method and device, computer equipment and storage medium
CN114500339B (en) Node bandwidth monitoring method and device, electronic equipment and storage medium
CN114116828A (en) Association rule analysis method, device and storage medium for multidimensional network index
CN108390793A (en) A kind of method and device of analysis system stability
CN108197795B (en) Malicious group account identification method, device, terminal and storage medium
US20150142872A1 (en) Method of operating a server apparatus for delivering website content, server apparatus and device in communication with server apparatus
CN105991574B (en) Risk behavior monitoring method and device
CN108171570A (en) A kind of data screening method, apparatus and terminal
CN112001563B (en) Method and device for managing ticket quantity, electronic equipment and storage medium
CN112494935B (en) Cloud game platform pooling method, electronic equipment and storage medium
CN110633304B (en) Combined feature screening method, device, computer equipment and storage medium
CN108027760B (en) Method and system for monitoring data storage device
CN116739742A (en) Monitoring method, device, equipment and storage medium of credit wind control model
CN107871213B (en) Transaction behavior evaluation method, device, server and storage medium
US20220222752A1 (en) Methods for analyzing insurance data and devices thereof
CN110246026B (en) Data transfer output combination setting method and device and terminal equipment
CN111581508B (en) Service monitoring method, device, equipment and storage medium
CN114066310A (en) Approval task allocation method and device, computer equipment and storage medium
CN112669091A (en) Data processing method, device and storage medium
CN108537654B (en) Rendering method and device of customer relationship network graph, terminal equipment and medium
CN112363926A (en) Production environment capacity detection method and device, computer equipment and storage medium
CN113626282B (en) Cloud computing physical node load monitoring method, device, terminal and storage medium
JP2017142603A (en) First program, second program, and generation method and generation device
CN116962417A (en) Tenant health determination method and device of container cloud platform

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