State information processing method and device, management server and storage medium
By combining the first state information and historical state information of the service server, using weighted calculations and error coefficient adjustments, the problem of low accuracy of state information in the prior art is solved, and management efficiency is improved.
Patent Information
- Application Number
- CN202010420721.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-05-18
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2040-05-18
AI Technical Summary
Due to the existence of time intervals in the prior art, the status information reporting scheme based on the heartbeat mechanism is difficult to effectively reflect the real status information of the service server, resulting in low accuracy of the status information.
By obtaining the first state information and the second state information of the service server, combining the first historical state information and the second historical state information, using weighted calculations and error coefficient adjustments, it is estimated that the current time state information of the service server is obtained.
The accuracy of status information is improved, the errors between them and the real status information of the service server are reduced, and the management actions are more reasonable and efficient.
Smart Images

Figure CN113691571B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of server management technology, and in particular to a state information processing method and device, a management server, and a storage medium. Background Art
[0002] In the technical field of server management, in order to accurately manage a server for processing business, a server for management generally needs to first obtain status information of the server for processing business, so as to perform management actions based on the status information.
[0003] In the prior art, a server for management generally obtains status information reported by a server for processing services at preset time intervals based on a heartbeat mechanism between the server and the server.
[0004] The inventors have found that in the prior art, the status information reporting scheme based on the heartbeat mechanism, due to the existence of time intervals, makes it difficult for the status information obtained by the server used for management to effectively reflect the real status information of the server used to process business between intervals. Summary of the invention
[0005] In view of this, the purpose of the present application is to provide a state information processing method and device, a management server and a storage medium, so as to improve the problem of low accuracy of the current state information of the business server obtained in the existing server management technology.
[0006] To achieve the above purpose, the embodiment of the present application adopts the following technical solution:
[0007] A state information processing method is applied to a management server, the management server is connected to a business server, and the method comprises:
[0008] Obtaining first status information of the business server, wherein the first status information is based on the status information most recently sent by the business server at the current moment;
[0009] Obtaining second status information of the business server, wherein the second status information is status information of the business server at at least one time associated with the current time;
[0010] The state information of the service server at the current moment is obtained based on the first state information and the second state information.
[0011] In a preferred embodiment of the present application, in the above-mentioned state information processing method, the step of obtaining the second state information of the business server includes:
[0012] Obtaining first historical status information based on status information of the business server at each moment in a first preset time period adjacent to the current moment;
[0013] Obtaining second historical status information based on status information of each moment of the business server in a second preset time period adjacent to the current moment, which is the same as the current moment, wherein the second preset time period is different from the first preset time period and includes the first preset time period;
[0014] Based on the first historical status information and the second historical status information, second status information of the service server is obtained.
[0015] In a preferred embodiment of the present application, in the above-mentioned state information processing method, the step of obtaining the first historical state information based on the state information of the business server at each moment within the first preset time period adjacent to the current moment includes:
[0016] Obtaining state information of the service server at each moment in a first preset time period adjacent to the current moment;
[0017] The first historical state information is obtained by weighting based on the state information of each moment corresponding to the first preset time period and the first state coefficient pre-configured for the moment.
[0018] In a preferred selection of the embodiment of the present application, in the above-mentioned state information processing method, within the first preset time period, along the direction approaching the current moment, the first state coefficient corresponding to each moment increases successively.
[0019] In a preferred embodiment of the present application, in the above-mentioned state information processing method, the step of obtaining the second historical state information based on the state information of each moment that is the same as the current moment within a second preset time period adjacent to the current moment by the business server includes:
[0020] Obtaining state information of the service server at each moment that is the same as the current moment within a second preset time period adjacent to the current moment;
[0021] The second historical state information is obtained by weighting based on the state information of each moment corresponding to the second preset time period and the second state coefficient preset for the moment.
[0022] In a preferred choice of the embodiment of the present application, in the above-mentioned state information processing method, within the second preset time period, along the direction approaching the current moment, the second state coefficient corresponding to each moment increases successively.
[0023] In a preferred embodiment of the present application, in the above-mentioned state information processing method, the step of obtaining the second state information of the business server based on the first historical state information and the second historical state information includes:
[0024] Obtaining a first time coefficient and a second time coefficient respectively configured for the first historical state information and the second historical state information, wherein a relative size of the first time coefficient and the second time coefficient is used to characterize a size of relevance of the first historical state information and the second historical state information to the state information at the current moment;
[0025] Second status information of the service server is obtained based on the first historical status information, the second historical status information, the first time coefficient, and the second time coefficient.
[0026] In a preferred embodiment of the present application, in the above-mentioned state information processing method, the step of obtaining the state information of the business server at the current moment based on the first state information and the second state information includes:
[0027] Obtaining a first error coefficient and a second error coefficient that are respectively configured in advance for the first state information and the second state information;
[0028] The state information of the service server at the current moment is obtained by weighting based on the first state information, the second state information, the first error coefficient, and the second error coefficient.
[0029] In a preferred embodiment of the present application, the above-mentioned state information processing method further includes:
[0030] Determine whether a variance or a standard deviation between the current state information and the first state information is greater than a preset value;
[0031] If the variance or standard deviation is greater than the preset value, the first error coefficient and the second error coefficient are adjusted, wherein the first error coefficient has a negative correlation with the variance or standard deviation, and the second error coefficient has a positive correlation with the variance or standard deviation.
[0032] The embodiment of the present application further provides a state information processing device, which is applied to a management server, and the management server is connected to a business server, and the device includes:
[0033] A first information obtaining module, configured to obtain first status information of the service server, wherein the first status information is status information most recently sent by the service server at a current moment;
[0034] A second information obtaining module, configured to obtain second status information of the service server, wherein the second status information is status information of the service server at at least one time associated with the current time;
[0035] The current information obtaining module is used to obtain the status information of the service server at the current moment based on the first status information and the second status information.
[0036] Based on the above, the embodiment of the present application further provides a management server, including:
[0037] Memory for storing computer programs;
[0038] The processor connected to the memory is used to execute the computer program stored in the memory to implement the above-mentioned state information processing method.
[0039] On the basis of the above, an embodiment of the present application further provides a computer-readable storage medium storing a computer program, which, when executed, implements the above-mentioned state information processing method.
[0040] The state information processing method and device, management server and storage medium provided by the present application, by combining the state information of the business server at other times associated with the current time based on the state information most recently sent by the business server at the current time as the basis for obtaining the state information of the business server at the current time, so as to infer the state information of the business server at the current time. In this way, compared with the technical solution of directly using the state information most recently sent as the state information of the business server at the current time, the error between the inferred state information and the real state information of the business server can be made smaller, thereby improving the problem of low accuracy of the current state information of the business server obtained in the existing server management technology, so that when the business server is managed based on the state information, the management action can be more reasonable, making the practical value higher.
[0041] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Figure 1 A schematic diagram of system interaction of a server cluster provided in an embodiment of the present application.
[0043] Figure 2 A structural block diagram of the management server provided in an embodiment of the present application.
[0044] Figure 3 A flowchart of a state information processing method provided in an embodiment of the present application.
[0045] Figure 4 for Figure 3 Schematic diagram of the flow of each step included in step S120.
[0046] Figure 5 for Figure 4 Schematic diagram of the flow chart of the steps included in step S121.
[0047] Figure 6 for Figure 4 Schematic diagram of the flow chart of the steps included in step S122.
[0048] Figure 7 for Figure 4 Schematic diagram of the flow chart of the steps included in step S123.
[0049] Figure 8 for Figure 3 Schematic diagram of the flow chart of each step included in step S130.
[0050] Fig. 9 A flowchart of other steps included in the state information processing method provided in an embodiment of the present application.
[0051] Fig.10 A block diagram of functional modules included in the state information processing device provided in an embodiment of the present application.
[0052] Icons: 12 - memory; 14 - processor; 100 - state information processing device; 110 - first information acquisition module; 120 - second information acquisition module; 130 - current information acquisition module. DETAILED DESCRIPTION
[0053] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.
[0054] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0055] like Figure 1As shown, an embodiment of the present application provides a server cluster, wherein the server cluster may include a management server and a business server that is communicatively connected to the management server.
[0056] In detail, the management server can calculate the status information of the business server at the current moment based on the status information reported by the business server at the current moment (reported once at a preset interval) and the status information of other moments (historical moments) associated with the current moment, and then issue management instructions to the business server based on the status information, so that the business server can perform business operations based on the management instructions, thereby achieving high-precision management of the business server.
[0057] There may be multiple business servers. Thus, in a specific application example, the status information may be the load status information of the business servers, so that after obtaining the load status information of each business server, the management server may select one or more target servers (i.e., one or more business servers with the least load) from the multiple business servers based on the load status information under a preset load balancing strategy to perform preset business operations.
[0058] It should be noted that the specific types of the above business operations are not limited and can be selected according to actual application requirements.
[0059] For example, in an alternative example, the business operation may refer to a data backup operation. Specifically, the selected target server may send a request message to a communication-connected data server, or the management server may send a notification message to the data server, so that the data server may send the data to be backed up to the target server for backup storage.
[0060] The data to be backed up may be a binary file, such as binlog, which is used to record user operations on the data server and achieve data consistency between the master (such as the above-mentioned data server) and slave (such as the above-mentioned business server) devices in the distributed system.
[0061] It can be understood that, in the foregoing description and in the following description, "plurality" means two or more, for example, the business servers may be two or more.
[0062] like Figure 2 As shown, the embodiment of the present application provides a management server, which can be applied to the above-mentioned server cluster. The management server may include a memory 12, a processor 14 and a state information processing device 100.
[0063] In detail, the memory 12 and the processor 14 are electrically connected directly or indirectly to realize data transmission or interaction. For example, they can be electrically connected to each other through one or more communication buses or signal lines. The state information processing device 100 may include at least one software function module that can be stored in the memory 12 in the form of software or firmware. The processor 14 is used to execute an executable computer program stored in the memory 12, for example, the software function module and computer program included in the state information processing device 100, so as to implement the state information processing method provided in the embodiment of the present application.
[0064] Optionally, the memory 12 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.
[0065] Furthermore, the processor 14 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), a system on chip (SoC), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0066] Understandably, Figure 2 The structure shown is for illustration only. The management server may also include Figure 2 More or fewer components as shown, or with Figure 2 The different configurations shown, for example, may also include a communication unit for exchanging information with other devices (such as the business server or data server mentioned above).
[0067] Combination Figure 3 The present application also provides a speech synthesis model training method, which can be applied to the above-mentioned management server. The method steps defined in the process related to the speech synthesis model training method can be implemented by the management server. Figure 3The specific process shown is explained in detail.
[0068] Step S110: obtaining first status information of the service server.
[0069] In this embodiment, when the management server needs to obtain the status information of the service server at the current moment, it may first obtain the first status information of the service server at the current moment.
[0070] The first status information may be based on the status information most recently sent by the service server at the current moment.
[0071] Step S120: obtaining second status information of the service server.
[0072] In this embodiment, when the management server needs to obtain the status information of the service server at the current moment, it can first obtain the second status information of the service server at the current moment.
[0073] The second status information may be status information of the service server at at least one time associated with the current time.
[0074] Step S130: obtaining the status information of the service server at the current moment based on the first status information and the second status information.
[0075] In this embodiment, after the first status information and the second status information of the service server are obtained based on step S110 and step S120 respectively, the status information of the service server at the current moment can be obtained based on the first status information and the second status information.
[0076] Based on the above method, since the status of the business server at the current moment is obtained by combining the status information of at least one moment associated with the current moment, compared with the solution of directly using the first status information as the current moment information, the status information at the current moment obtained has a smaller error with the real status information of the business server, that is, the status information at the current moment obtained has higher accuracy, thereby improving the problem of low accuracy of the current status information of the business server obtained in the existing server management technology, so that when the business server is managed based on the status information, the management action can be more reasonable. For example, when applied to data backup, the load balancing degree between the business servers can be higher.
[0077] First, it should be noted that for step S110, the specific method of obtaining the first status information is not limited and can be selected according to actual application requirements.
[0078] For example, in an alternative example, the business server may report current status information to the management server based on a heartbeat mechanism (at intervals of a preset duration), and the management server may store all status information reported by the business server.
[0079] Based on this, when the first status information needs to be obtained, the management server can obtain the latest (most recently received) status information from all stored status information, and use the status information as the first status information.
[0080] For another alternative example, the business server may report current status information to the management server based on a heartbeat mechanism (each interval has a preset duration), and the management server may store the status information most recently reported by the business server, i.e., adopt a status information update mechanism.
[0081] Based on this, when the first status information needs to be obtained, the management server can directly use the existing status information as the first status information.
[0082] It is understandable that the specific execution order between step S110 and step S120 is not limited and can be selected according to actual application requirements.
[0083] For example, in an alternative example, step S110 may be performed first, and then step S120 may be performed. That is, the management server may first obtain the first status information of the service server, and then obtain the second status information of the service server.
[0084] For another example, in an alternative example, step S120 may be performed first, and then step S110 may be performed. In other words, the management server may first obtain the second status information of the service server, and then obtain the first status information of the service server.
[0085] For another example, in another alternative example, step S110 and step S120 may be performed simultaneously. That is, when the management server needs to obtain the status information of the business server at the current moment, it may synchronously obtain the first status information and the second status information, such as simultaneously starting two parallel threads to obtain the first status information and the second status information respectively.
[0086] On the second aspect, it should be noted that for step S120, the specific method of obtaining the second state information is not limited and can be selected according to actual application requirements.
[0087] Wherein, based on different settings of at least one moment associated with the current moment, the specific manner of obtaining the second state information will also be different.
[0088] In this embodiment, in order to make the second status information effectively reflect the status information of the business server at the current moment, the inventor of the present application found after long-term research that the status information of the business server generally or to a large extent maintains a relatively stable trend when changing with time. In this way, the correlation between the current moment and other moments can be characterized based on the proximity of time.
[0089] For example, in an alternative example, the management server may obtain the second status information based on status information of the business server at each moment within a first preset time period adjacent to the current moment.
[0090] In detail, in a specific application example, if the current time is 16:00:00 on May 11, 2020, then the status information of the business server at each moment between 00:00:00 and 16:00:00 on May 11, 2020 can be obtained first, and then, based on the obtained status information, the second status information of the business server can be obtained.
[0091] For another alternative example, the management server may obtain the second historical status information based on status information of the business server at each moment that is the same as the current moment within a second preset time period adjacent to the current moment.
[0092] In detail, in a specific application example, if the current time is 16:00:00 on May 11, 2020, then the status information of the business server at 16:00:00 on each day between May 1 and 10, 2020 (including May 1 and 10) can be obtained first, and then, based on the obtained status information, the second status information of the business server can be obtained.
[0093] For another example, in order to fully ensure that the obtained second status information can reflect the real status information of the service server at the current moment to a large extent, so that the obtained status information has higher accuracy, Figure 4 Step S120 may include step S121, step S122 and step S123, the specific contents of which are described as follows.
[0094] Step S121, obtaining first historical status information based on the status information of the service server at each moment in a first preset time period adjacent to the current moment.
[0095] In this embodiment, after determining the current moment, a first preset time period can be first determined based on a pre-set first duration with the current moment as the end point, and then the status information of each moment in the first preset time period is obtained, and then the first historical status information is obtained based on the status information.
[0096] Step S122: obtaining second historical status information based on status information of the service server at each time point that is the same as the current time point within a second preset time period adjacent to the current time point.
[0097] In this embodiment, after determining the current moment, a second preset time period can be first determined based on a pre-set second duration with the current moment as the end point, and then the status information of each moment in the second preset time period that is the same as the current moment is obtained, and then, based on the status information, the second historical status information is obtained.
[0098] The second preset time period is different from the first preset time period (ie, the second duration is different from the first duration), and the second preset time period includes the first preset time period (ie, the second duration is greater than the first duration).
[0099] Step S123: obtaining second status information of the service server based on the first historical status information and the second historical status information.
[0100] In this embodiment, after obtaining the first historical status information and the second historical status information based on step S121 and step S122, the second status information of the business server can be obtained based on the first historical status information and the second historical status information, that is, the status information of the business server at at least one moment associated with the current moment.
[0101] Optionally, the specific method of executing step S121 to obtain the first historical status information is not limited and can be selected according to actual application requirements.
[0102] For example, in an alternative example, after obtaining the status information of the business server at each moment in a first preset time period adjacent to the current moment, the first historical status information can be obtained based on the maximum value, minimum value, intermediate value or average value in the status information.
[0103] For example, in another alternative example, since the correlation between the status information of the business server at different times and the real status information at the current time is different, in order to make the first historical status information obtained more accurately reflect the real status information at the current time, Figure 5Step S121 may include step S121a and step S121b, the specific contents of which are described as follows.
[0104] Step S121a, obtaining the status information of the service server at each moment in a first preset time period adjacent to the current moment.
[0105] In this embodiment, the management server may first determine a first preset time period based on a preset first duration with the current moment as the end point, and then obtain the status information of the business server at each moment within the first preset time period.
[0106] The specific length of the first duration is not limited and can be selected according to actual application requirements. For example, in an alternative example, it can be 12 hours. For another example, in another alternative example, it can be 24 hours.
[0107] Step S121b: obtaining first historical state information by weighting based on the state information at each moment corresponding to the first preset time period and a first state coefficient pre-configured for the moment.
[0108] In this embodiment, after obtaining the state information of each moment in the first preset time period based on step S121a, the first state coefficient of each moment can be obtained first, and then, based on the state information and the first state coefficient obtained at each moment, a weighted calculation is performed to obtain a weighted mean, and the weighted mean is used as the first historical state information.
[0109] The specific method of performing weighted calculation may be as follows:
[0110] L1=m1*l t1 +m2*l t2 +m3*l t3 +...m x *l tx +...;
[0111] In the above formula, L1 is the first historical state information, l tx is the status information at time tx, m x is the first state coefficient corresponding to the state information at time tx.
[0112] Furthermore, the specific method of configuring the first state coefficient is not limited and can be selected according to actual application requirements.
[0113] For example, in an alternative example, the management server can perform a data writing simulation operation on the business server (in this case, the business server can be used for data backup). In this way, the status information of the business server can be detected in real time to obtain a series of status information, thereby calculating the first status coefficient at different times within the first preset time period.
[0114] Among them, in the first preset period, along the direction close to the current moment, the first state coefficient corresponding to each moment increases in sequence. That is to say, in the first preset period, the closer a moment is to the current moment, the higher the degree of association between the moment and the current moment based on the correlation of state information.
[0115] For example, if the current time is 16:00:00 on May 11, 2020, the first preset time period can be 00:00:00-16:00:00 on May 11, 2020. Then, the first state coefficient corresponding to 00:00:00 on May 11, 2020 should be less than the first state coefficient corresponding to 15:00:00 on May 11, 2020.
[0116] Optionally, the specific method of executing step S122 to obtain the second historical status information is not limited and can be selected according to actual application requirements.
[0117] For example, in an alternative example, after obtaining the status information of the business server at each moment that is the same as the current moment within a second preset time period adjacent to the current moment, the second historical status information can be obtained based on the maximum value, minimum value, intermediate value or average value in the status information.
[0118] For example, in another alternative example, since the correlation between the status information of the business server at different times and the real status information at the current time is different, in order to make the obtained second historical status information more accurately reflect the real status information at the current time, Figure 6 , step S122 may include step S122a and step S122b, the specific contents of which are described as follows.
[0119] Step S122a, obtaining the status information of the service server at each time point that is the same as the current time point within a second preset time period adjacent to the current time point.
[0120] In this embodiment, the management server may first determine a second preset time period based on a preset second duration with the current moment as the end point, and then obtain the status information of the business server at each moment that is the same as the current moment within the second preset time period.
[0121] The specific length of the second duration is not limited and can be selected according to actual application requirements. For example, in an alternative example, it can be 5. For another example, in another alternative example, it can be 10 days. For another example, in another alternative example, it can also be 30 days.
[0122] Step S122b: obtaining second historical state information by weighting based on the state information of each moment corresponding to the second preset time period and the second state coefficient preset for the moment.
[0123] In this embodiment, after obtaining the state information of each moment that is the same as the current moment within the second preset time period based on step S122a, the second state coefficient of each moment can be obtained first, and then, based on the state information and the second state coefficient obtained at each moment, a weighted calculation is performed to obtain a weighted mean, and the weighted mean is used as the second historical state information.
[0124] The specific method of performing weighted calculation may be as follows:
[0125] L2=n1*l τ1 +n2*l τ2 +n3*l τ3 +...n x *l τx +...;
[0126] In the above formula, L2 is the second historical state information, l τx is the state information at time τx, n x is the second state coefficient corresponding to the state information at time τx.
[0127] Furthermore, the specific method for configuring the second state coefficient is not limited and can be selected according to actual application requirements.
[0128] For example, in an alternative example, the management server can perform a data writing simulation operation on the business server (in this case, the business server can be used for data backup). In this way, the status information of the business server can be detected in real time to obtain a series of status information, thereby calculating the second state coefficient at different times within the second preset time period.
[0129] Among them, in the second preset period, along the direction close to the current moment, the second state coefficient corresponding to each moment increases in sequence. That is to say, in the second preset period, the closer a moment is to the current moment, the higher the degree of association between the moment and the current moment based on the correlation of state information.
[0130] For example, if the current time is 16:00:00 on May 11, 2020, the second preset time period may be between May 1 and 10, 2020 (including May 1 and 10). Then, the second state coefficient corresponding to 16:00:00 on May 1, 2020 should be less than the second state coefficient corresponding to 16:00:00 on May 10, 2020.
[0131] Optionally, the specific method of executing step S123 to obtain the second state information is not limited and can be selected according to actual application requirements.
[0132] For example, in an alternative example, after obtaining the first historical state information and the second historical state information based on step S121 and step S122 respectively, the smaller value, the larger value or the average value after the two historical state information can be used as the second state information.
[0133] For another example, in an alternative example, the first historical status information and the second historical status information obtained based on the above two methods are actually different in degree of association with the real status information of the service server at the current moment. Therefore, in order to make the obtained second status information more accurately reflect the real status information, Figure 7 Step S123 may include step S123a and step S123b, the specific contents of which are described as follows.
[0134] Step S123a: Obtain a first time coefficient and a second time coefficient that are preset for the first historical state information and the second historical state information, respectively.
[0135] In this embodiment, the management server may first obtain a first time coefficient preconfigured for the first historical status information and a second time coefficient preconfigured for the second historical status information.
[0136] The relative size of the first time coefficient and the second time coefficient is used to characterize the correlation between the first historical state information and the second historical state information and the state information at the current moment. That is, if the correlation between the first historical state information and the state information at the current moment is higher, the first time coefficient may be greater than the second time coefficient; if the correlation between the second historical state information and the state information at the current moment is higher, the second time coefficient may be greater than the first time coefficient.
[0137] Step S123b: Obtain second status information of the service server based on the first historical status information, the second historical status information, the first time coefficient, and the second time coefficient.
[0138] In this embodiment, after obtaining the first time coefficient and the second time coefficient based on step S123a, a weighted calculation can be performed based on the first time coefficient and the second time coefficient in combination with the first historical state information and the second historical state information to obtain a weighted mean, and the weighted mean is used as the second state information.
[0139] The specific manner of weighted calculation of the second state information may be as follows:
[0140] L c =K1*L1+K2*L2;
[0141] In the above formula, L C It may be the second state information, K1 may be the first time coefficient, K2 may be the second time coefficient, L1 may be the first historical state information, and L2 may be the second historical state information.
[0142] Furthermore, the specific method of configuring the first time coefficient and the second time coefficient is not limited and can be selected according to actual application requirements.
[0143] For example, in an alternative example, the management server can perform a data writing simulation operation on the business server (in this case, the business server can be used for data backup). In this way, the status information of the business server can be detected in real time to obtain a series of status information, thereby calculating the first time coefficient and the second time coefficient.
[0144] It is understandable that in the above examples, the time is in seconds, and in other examples, the time may also be in milliseconds, etc., which can be configured according to the specific application accuracy requirements.
[0145] Furthermore, in the above example, the execution order between step S121 and step S122 is not limited and can be selected according to actual application requirements.
[0146] That is to say, depending on the actual application requirements, step S121 and step S122 can be executed simultaneously or separately, such as first executing step S121 to obtain the first historical status information and then executing step S122 to obtain the second historical status information, or first executing step S122 to obtain the second historical status information and then executing step S121 to obtain the first historical status information.
[0147] Thirdly, it should be noted that for step S130, the specific method of obtaining the status information of the business server at the current moment is not limited and can be determined according to actual application requirements.
[0148] For example, in an alternative example, the average value of the first status information and the second status information may be directly used as the status information of the service server at the current moment.
[0149] For another example, the inventor of the present application has found that the first state information and the second state information actually have different degrees of correlation with the state information of the service server at the current moment. In this way, in order to make the obtained state information closer to the real state information, Figure 8 Step S130 may include step S131 and step S132, the specific contents of which are described as follows.
[0150] Step S131: Obtain a first error coefficient and a second error coefficient that are pre-configured for the first state information and the second state information, respectively.
[0151] In this embodiment, a first error coefficient pre-configured for the first state information and a second error coefficient pre-configured for the second state information may be obtained respectively.
[0152] The first error coefficient and the second error coefficient are configured based on the first status information and the second status information, respectively, to determine the degree of association of the real status information of the service server.
[0153] Step S132: Obtain the state information of the service server at the current moment by weighted calculation based on the first state information, the second state information, the first error coefficient, and the second error coefficient.
[0154] In this embodiment, after obtaining the first error coefficient and the second error coefficient based on step S131, the first state information and the second state information can be weighted calculated based on the first error coefficient and the second error coefficient to obtain a weighted value, and the weighted value can be used as the state information of the business server at the current moment.
[0155] The specific method of performing weighted calculation may be:
[0156] L pumper =λ1*L now +λ2*L c ;
[0157] In the above formula, L pumperL may be the state information of the service server at the current moment, λ1 may be the first error coefficient, λ2 may be the second error coefficient, and L now It can be the first state information.
[0158] Optionally, the specific configuration of the first error coefficient and the second error coefficient obtained by executing step S131 is not limited and can be selected according to actual application requirements.
[0159] For example, the management server may also perform a data writing simulation operation on the business server (in this case, the business server can be used for data backup). In this way, the status information of the business server may be detected in real time to obtain a series of status information, thereby calculating the first error coefficient and the second error coefficient.
[0160] Moreover, with respect to the above-mentioned first error coefficient and second error coefficient, in actual applications, due to the accumulation of errors, the error between the obtained status information and the actual status information will become increasingly larger. Therefore, according to actual application requirements, the first error coefficient and the second error coefficient can also be effectively adjusted.
[0161] Based on this, in this embodiment, in order to enable timely and effective adjustment of the first error coefficient and the second error coefficient, combined with Fig. 9 The state information processing method may further include step S140 and step S150, the specific contents of which are described as follows.
[0162] Step S140, determining whether the variance or standard deviation between the current state information and the first state information is greater than a preset value.
[0163] In this embodiment, after each execution of step S130, or at a certain time interval, after executing step S130, the corresponding variance or standard deviation can be calculated based on the state information obtained at the current moment and the first state information, and then it is determined whether the variance or standard deviation is greater than a preset value.
[0164] If the variance or standard deviation is greater than the preset value, step S150 may be executed.
[0165] Step S150: adjusting the first error coefficient and the second error coefficient.
[0166] In this embodiment, when it is determined based on step S140 that the variance or standard deviation is greater than the preset value, it can be considered that there is a non-negligible error between the calculated state information and the actual state information due to the inaccuracy of the first error coefficient and the second error coefficient, and thus the first error coefficient and the second error coefficient can be adjusted.
[0167] The specific adjustment methods may be:
[0168] There is a negative correlation between the first error coefficient and the variance or standard deviation, and there is a positive correlation between the second error coefficient and the variance or standard deviation.
[0169] That is to say, the larger the variance or standard deviation is, the more it should be reduced. In this case, the first error coefficient needs to be increased and the second error coefficient needs to be reduced.
[0170] Combination Fig.10 The embodiment of the present application further provides a state information processing device 100, which can be applied to the above-mentioned management server. The state information processing device 100 may include a first information obtaining module 110, a second information obtaining module 120 and a current information obtaining module 130.
[0171] The first information acquisition module 110 is used to obtain the first status information of the service server, wherein the first status information is the status information most recently sent by the service server at the current moment. Figure 3 As shown in step S110, the relevant contents of the first information obtaining module 110 can refer to the above description of step S110.
[0172] The second information obtaining module 120 is used to obtain the second status information of the service server, wherein the second status information is the status information of the service server at at least one time associated with the current time. Figure 3 As shown in step S120, the relevant contents of the second information obtaining module 120 can refer to the above description of step S120.
[0173] The current information acquisition module 130 is used to obtain the status information of the service server at the current moment based on the first status information and the second status information. In this embodiment, the current information acquisition module 130 can be used to perform Figure 3 As shown in step S130, the relevant contents of the current information obtaining module 130 can refer to the above description of step S130.
[0174] In an embodiment of the present application, corresponding to the above-mentioned state information processing method, a computer-readable storage medium is also provided, in which a computer program is stored, and when the computer program is run, each step of the above-mentioned state information processing method is executed.
[0175] The steps executed when the aforementioned computer program is running will not be described one by one here, and reference may be made to the explanation of the aforementioned state information processing method in the previous text.
[0176] In summary, the status information processing method and device, management server and storage medium provided by the present application, by combining the status information of the business server at other times associated with the current time based on the status information most recently sent by the business server at the current time as the basis for obtaining the status information of the business server at the current time, so as to infer the status information of the business server at the current time. In this way, compared with the technical solution of directly using the status information most recently sent as the status information of the business server at the current time, the error between the inferred status information and the real status information of the business server can be made smaller, thereby improving the problem of low accuracy of the current status information of the business server obtained in the existing server management technology, so that when the business server is managed based on the status information, the management action can be more reasonable, making the practical value higher.
[0177] In several embodiments provided in the embodiments of the present application, it should be understood that the disclosed device and method can also be implemented in other ways. The device and method embodiments described above are merely schematic, for example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the device, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0178] In addition, the functional modules in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0179] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, an electronic device, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk. It should be noted that, in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such a process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0180] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for processing status information, It is characterized in that Applied to a management server, the management server is connected to a business server, the method comprises: Obtaining first status information of the business server, wherein the first status information is status information most recently sent by the business server at the current moment; the status information is load status information of the business server; Obtaining second state information of the business server, wherein the second state information is state information of the business server at at least one moment associated with the current moment; the load state information at each historical moment is used to calculate the second state information; Based on the first status information and the second status information, obtaining the status information of the service server at the current moment; Determine whether a variance or a standard deviation between the current state information and the first state information is greater than a preset value; If the variance or standard deviation is greater than the preset value, the first error coefficient configured for the first state information and the second error coefficient configured for the second state information are adjusted; wherein the first error coefficient and the second error coefficient are configured based on the first state information and the second state information, respectively, to determine the degree of association with the real state information of the business server; there is a negative correlation between the first error coefficient and the variance or standard deviation, and there is a positive correlation between the second error coefficient and the variance or standard deviation; the adjustment method is: the larger the variance or standard deviation, the greater the first error coefficient and the lower the second error coefficient.
2. The state information processing method according to claim 1, It is characterized in that The step of obtaining the second status information of the service server comprises: Obtaining first historical status information based on status information of the business server at each moment in a first preset time period adjacent to the current moment; Obtaining second historical status information based on status information of each moment of the business server in a second preset time period adjacent to the current moment, which is the same as the current moment, wherein the second preset time period is different from the first preset time period and includes the first preset time period; Based on the first historical status information and the second historical status information, second status information of the service server is obtained.
3. The state information processing method according to claim 2, It is characterized in that The step of obtaining the first historical status information based on the status information of the service server at each moment in a first preset time period adjacent to the current moment comprises: Obtaining state information of the service server at each moment in a first preset time period adjacent to the current moment; The first historical state information is obtained by weighting based on the state information of each moment corresponding to the first preset time period and the first state coefficient pre-configured for the moment.
4. The state information processing method according to claim 3, It is characterized in that In the first preset time period, along the direction approaching the current moment, the first state coefficient corresponding to each moment increases successively.
5. The state information processing method according to claim 2, It is characterized in that The step of obtaining the second historical state information based on the state information of each moment of the service server within a second preset time period adjacent to the current moment, which is the same as the current moment, comprises: Obtaining state information of the service server at each moment that is the same as the current moment within a second preset time period adjacent to the current moment; The second historical state information is obtained by weighting based on the state information of each moment corresponding to the second preset time period and the second state coefficient preset for the moment.
6. The state information processing method according to claim 5, It is characterized in that In the second preset time period, along the direction approaching the current moment, the second state coefficient corresponding to each moment increases successively.
7. The state information processing method according to claim 2, It is characterized in that The step of obtaining the second status information of the service server based on the first historical status information and the second historical status information includes: Obtaining a first time coefficient and a second time coefficient respectively configured for the first historical state information and the second historical state information, wherein a relative size of the first time coefficient and the second time coefficient is used to characterize a size of relevance of the first historical state information and the second historical state information to the state information at the current moment; Second status information of the service server is obtained based on the first historical status information, the second historical status information, the first time coefficient, and the second time coefficient.
8. The state information processing method according to any one of claims 1 to 7, It is characterized in that The step of obtaining the status information of the service server at the current moment based on the first status information and the second status information includes: Obtaining the first error coefficient and the second error coefficient respectively configured in advance for the first state information and the second state information; The state information of the service server at the current moment is obtained by weighting based on the first state information, the second state information, the first error coefficient, and the second error coefficient.
9. A state information processing device, It is characterized in that Applied to a management server, the management server is connected to a business server, and the state information of the business server is load state information; The device includes: A first information obtaining module, configured to obtain first status information of the service server, wherein the first status information is status information most recently sent by the service server at a current moment; A second information obtaining module is used to obtain second state information of the business server, wherein the second state information is state information of the business server at at least one moment associated with the current moment; the load state information at each historical moment is used to calculate the second state information; A current information obtaining module, configured to obtain the state information of the service server at the current moment based on the first state information and the second state information; The status information processing device is also used to determine whether the variance or standard deviation between the status information at the current moment and the first status information is greater than a preset value; if the variance or standard deviation is greater than the preset value, the first error coefficient configured for the first status information and the second error coefficient configured for the second status information are adjusted; wherein the first error coefficient and the second error coefficient are configured based on the first status information and the second status information, respectively, to determine the degree of association with the real status information of the business server; the first error coefficient is negatively correlated with the variance or standard deviation, and the second error coefficient is positively correlated with the variance or standard deviation; the adjustment method is: the larger the variance or standard deviation, the greater the first error coefficient and the lower the second error coefficient.
10. A management server, It is characterized in that include: Memory for storing computer programs; A processor connected to the memory is used to execute a computer program stored in the memory to implement the state information processing method according to any one of claims 1 to 8.
11. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed, the state information processing method described in any one of claims 1 to 8 is implemented.
