Method and apparatus for outputting information
By acquiring user identifiers and storage space information, the system identifies storage anomalies and generates alerts, thus solving the problem of complexity in capacity alerts in multi-tenant storage systems and achieving automated management and stability of the storage system.
Patent Information
- Application Number
- CN201910680571.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-07-26
- Publication Date
- 2025-12-30
- Estimated Expiration
- 2039-07-26
AI Technical Summary
In existing technologies, with the development and innovation of storage systems, more and more storage systems need to support multi-tenancy. The complexity of capacity warning for multi-tenancy in storage systems increases linearly, making it difficult to manage effectively.
By obtaining the user's user identifier, the system determines the storage space requested and the current usage information. Using preset thresholds and historical usage information, it identifies storage anomalies and generates and outputs anomaly information.
It enables automatic early warning of storage capacity, improves the efficiency and accuracy of storage management, and ensures the stable operation of the storage system.
Smart Images

Figure CN110389880B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and more specifically to methods and apparatus for outputting information. Background Technology
[0002] With the development and innovation of storage technology, more and more storage systems support multi-tenancy. This means that multiple tenants may be using the storage system simultaneously. The storage system needs to statistically analyze the capacity usage of each tenant's data to provide early warnings. As the number of tenants increases exponentially, the complexity of providing capacity warnings for multiple tenants increases linearly. Summary of the Invention
[0003] This application provides methods and apparatus for outputting information.
[0004] In a first aspect, embodiments of this application provide a method for outputting information, comprising: obtaining a user identifier; determining, based on the user identifier, storage space information requested by the user and current usage information corresponding to the user identifier; determining, based on the storage space information and the current usage information, whether there is a storage anomaly; and generating and outputting anomaly information in response to determining a storage anomaly.
[0005] In some embodiments, determining whether storage is abnormal based on the storage space information and the current usage information includes: determining the current usage rate of the storage space based on the storage space information and the current usage information; and determining storage is abnormal in response to determining that the current usage rate is greater than a first preset threshold.
[0006] In some embodiments, determining whether storage is abnormal based on the storage space information and the current usage information includes: in response to determining that the current usage rate is less than or equal to the first preset threshold, obtaining historical usage information; determining the storage space usage change rate based on the historical usage information; and in response to determining that the absolute value of the usage change rate is greater than the second preset threshold, determining that storage is abnormal.
[0007] In some embodiments, determining whether there is a storage anomaly based on the storage space information and the current usage information includes: determining a storage space usage change curve based on the historical usage information; determining a storage space usage change period based on the usage change curve; and determining a storage anomaly in response to the determination that the usage change curve of the period in which the current usage information is located does not match the usage change curve within the usage change period.
[0008] In some embodiments, the method further includes: labeling the acquired current usage information with time; and storing the labeled current usage information.
[0009] In some embodiments, the above-mentioned response to determining a storage exception, generating and outputting exception information, includes: generating exception information in response to determining a storage exception, and outputting exception information based on the contact information submitted by the user.
[0010] In some embodiments, the method further includes: in response to receiving modification information sent by the user, modifying the contact information and / or the first preset threshold according to the modification information.
[0011] Secondly, embodiments of this application provide an apparatus for outputting information, comprising: an acquisition unit configured to acquire a user identifier; a determination unit configured to determine, based on the user identifier, storage space information requested by the user and current usage information corresponding to the user identifier; a judgment unit configured to determine, based on the storage space information and the current usage information, whether there is a storage anomaly; and an output unit configured to generate and output an anomaly information in response to determining a storage anomaly.
[0012] In some embodiments, the determination unit is further configured to: determine the current utilization rate of the storage space based on the storage space information and the current usage information; and determine a storage anomaly in response to determining that the current utilization rate is greater than a first preset threshold.
[0013] In some embodiments, the determination unit is further configured to: in response to determining that the current usage rate is less than or equal to the first preset threshold, obtain historical usage information; determine the storage space usage change rate based on the historical usage information; and in response to determining that the absolute value of the usage change rate is greater than the second preset threshold, determine a storage anomaly.
[0014] In some embodiments, the determination unit is further configured to: determine the storage space usage change curve based on the historical usage information; determine the storage space usage change period based on the usage change curve; and determine a storage anomaly in response to the determination that the usage change curve of the current usage information period does not match the usage change curve within the usage change period.
[0015] In some embodiments, the above apparatus further includes: a labeling unit configured to label the acquired current usage information with the time; and a storage unit configured to store the labeled current usage information.
[0016] In some embodiments, the output unit is further configured to: generate exception information in response to determining a storage exception, and output the exception information based on the contact information submitted by the user.
[0017] In some embodiments, the above-described apparatus further includes a modification unit configured to: in response to receiving modification information sent by the user, modify the contact information and / or the first preset threshold according to the modification information.
[0018] Thirdly, embodiments of this application provide a server, including: one or more processors; and a storage device storing one or more programs thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any embodiment of the first aspect.
[0019] Fourthly, embodiments of this application provide a computer-readable medium having a computer program stored thereon that, when executed by a processor, implements the method as described in any embodiment of the first aspect.
[0020] The method and apparatus for outputting information provided in the above embodiments of this application first obtain the user's user identifier. Based on the user identifier, it determines the storage space requested by the user and the current usage information corresponding to the user identifier. Based on the storage space information and the current usage information, it determines whether there is a storage anomaly. If a storage anomaly is found, an anomaly message is generated and output. The method of this embodiment can achieve automatic early warning of the user's storage capacity. Attached Figure Description
[0021] Other features, objects, and advantages of this application will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0022] Figure 1 This is an exemplary system architecture diagram in which one embodiment of this application can be applied;
[0023] Figure 2 This is a flowchart of an embodiment of the method for outputting information according to this application;
[0024] Figure 3 This is a schematic diagram of an application scenario of the method for outputting information according to this application;
[0025] Figure 4 This is a flowchart of yet another embodiment of the method for outputting information according to this application;
[0026] Figure 5 This is a schematic diagram of one embodiment of the apparatus for outputting information according to this application;
[0027] Figure 6 This is a schematic diagram of the structure of a computer system suitable for implementing the server embodiments of this application. Detailed Implementation
[0028] The present application will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings.
[0029] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0030] Figure 1 An exemplary system architecture 100 is shown, in which embodiments of the method or apparatus for outputting information of this application may be applied.
[0031] like Figure 1 As shown, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. Network 104 serves as the medium for providing communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.
[0032] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages. For example, users can send query requests to server 105 or receive query results from server 105 using terminal devices 101, 102, and 103. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social media platforms.
[0033] Terminal devices 101, 102, and 103 can be either hardware or software. When terminal devices 101, 102, and 103 are hardware, they can be various electronic devices with a display screen and supporting web browsing, including but not limited to smartphones, tablets, e-book readers, laptops, and desktop computers. When terminal devices 101, 102, and 103 are software, they can be installed in the aforementioned electronic devices. They can be implemented as multiple software programs or software modules (e.g., to provide distributed services) or as a single software program or software module. No specific limitations are imposed here.
[0034] Server 105 can be a server that provides various services, such as a backend server that supports queries on storage space usage. The backend server can analyze and process the received query requests and other data, and feed back the processing results (such as query results) to terminal devices 101, 102, and 103.
[0035] It should be noted that a server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules (e.g., used to provide distributed services), or as a single software program or software module. No specific limitations are made here.
[0036] It should be noted that the method for outputting information provided in the embodiments of this application is generally executed by the server 105, and correspondingly, the device for outputting information is generally located in the server 105.
[0037] It should be understood that Figure 1 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.
[0038] Continue to refer to Figure 2 The diagram illustrates a flow 200 of an embodiment of a method for outputting information according to this application. The method for outputting information according to this embodiment includes the following steps:
[0039] Step 201: Obtain the user's user identifier.
[0040] In this embodiment, the execution entity of the method for outputting information (e.g. Figure 1 The server 105 shown can be connected via a wired or wireless connection from the user's terminal device (e.g., Figure 1 The user's identifier is obtained at the terminal devices 101, 102, and 103 shown. Specifically, the executing entity can provide a query port, which the user can call to send a query request to the executing entity. The query request includes the user identifier. It is understood that the user can first send a storage space request to the executing entity to request storage space.
[0041] It should be noted that the aforementioned wireless connection methods may include, but are not limited to, 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other currently known or future wireless connection methods.
[0042] Step 202: Determine the storage space requested by the user and the current usage information corresponding to the user identifier based on the user identifier.
[0043] After obtaining the user identifier, the executing entity can determine the storage space requested by the user based on the user identifier. Specifically, the executing entity locally stores the mapping between user identifiers and storage space information. Then, the executing entity can query the above mapping to determine the storage space information corresponding to the user identifier. The storage space information is used to represent the capacity of the storage space requested by the user. The executing entity can also query the current usage information corresponding to the user identifier. Here, the current usage information is the amount of storage space already used by the user.
[0044] Step 203: Determine whether there is a storage anomaly based on the storage space information and the current usage information.
[0045] After determining the storage space information corresponding to the user identifier and the current usage information, the executing entity can determine whether there is a storage anomaly. For example, the executing entity can calculate the ratio of current usage to storage space to determine whether the storage space utilization rate exceeds a first preset threshold. If it does, the storage is considered abnormal. The aforementioned first preset threshold can be set by the user or by the executing entity based on the size of the storage space.
[0046] Step 204: In response to determining a storage exception, generate and output exception information.
[0047] If the executing entity determines a storage anomaly, it can generate an anomaly message. Specifically, the executing entity can use storage space information and current usage information as the anomaly message. Alternatively, the executing entity can also generate an anomaly message based on the current storage space usage rate. This anomaly message can then be output to the user.
[0048] In some optional implementations of this embodiment, the above method may further include Figure 2 The following steps, not shown in the diagram, are: labeling the time for the acquired current usage information; and storing the labeled current usage information.
[0049] In this implementation, the executing entity can annotate the current usage information with a time stamp each time it obtains the current usage information. The annotated time is the moment the current usage information was obtained. After annotation, the executing entity can store the annotated current usage information in the database.
[0050] In some optional implementations of this embodiment, step 204 can be specifically implemented by... Figure 2The following steps, not shown, are used to achieve the following: in response to determining a storage exception, generating exception information, and outputting exception information based on the contact information submitted by the user.
[0051] In this implementation, after the executing entity determines the storage exception and generates exception information, it can send the exception information out according to the contact information submitted by the user so that the user can view it in a timely manner.
[0052] In some optional implementations of this embodiment, the above method may further include Figure 2 The following steps, not shown: In response to receiving modification information sent by the user, modify the contact information and / or the first preset threshold according to the modification information.
[0053] In this implementation, the user can send modification information to the executing entity through a port provided by the executing entity. This modification information can be used to modify the user's contact information. If the first preset threshold is set by the user, the user can also modify the first preset threshold by sending modification information. After receiving the modification information, the executing entity can modify the contact information and / or the first preset threshold.
[0054] See also Figure 3 , Figure 3 This is a schematic diagram illustrating an application scenario of the method for outputting information according to this embodiment. Figure 3 In this application scenario, after requesting 1GB of storage space, users can check their storage usage via the "Query My Storage Space" function on their mobile phone. The server, based on the user's identifier, determines that the user's storage space is 256GB, and the current usage is 200GB. If the server determines that the usage exceeds the threshold, it generates an error message: "Your storage space is 256GB, and 200GB has been used. The remaining storage space is insufficient; please request new storage space promptly." Users can then request new storage space based on this error message.
[0055] The method for outputting information provided in the above embodiments of this application first obtains the user's user identifier. Based on the user identifier, it determines the storage space requested by the user and the current usage information corresponding to the user identifier. Based on the storage space information and the current usage information, it determines whether there is a storage anomaly. If a storage anomaly is found, an anomaly message is generated and output. The method of this embodiment can achieve automatic early warning of the user's storage capacity.
[0056] See also Figure 4 This illustrates a flow 400 of an embodiment of a method for outputting information according to this application, specifically for determining a storage exception. Figure 4As shown, in this embodiment, the following steps can be used to determine whether a storage anomaly has occurred:
[0057] Step 401: Determine the current utilization rate of the storage space based on the storage space information and the current usage information.
[0058] In this embodiment, the executing entity can calculate the ratio of current usage to storage space, which is the current utilization rate of storage space.
[0059] Step 402: Determine whether the current usage rate is greater than the first preset threshold.
[0060] If the value is greater than the value, a storage error is confirmed. If the value is not greater than the value, proceed to step 403.
[0061] Step 403: Obtain historical usage information.
[0062] In this embodiment, the executing entity can obtain historical usage information from the database. It is understood that after obtaining current usage information and annotating the time each time, the executing entity can store the annotated current usage information in the database for use as historical usage information during analysis.
[0063] Step 404: Determine the rate of change in storage space usage based on historical usage information.
[0064] After obtaining historical usage information, the executing entity can plot a curve showing the change in historical usage over time. The slope of this curve can then be calculated. This slope can be used as the rate of change in storage space usage.
[0065] Step 405: Determine whether the absolute value of the rate of change in usage is greater than the second preset threshold.
[0066] If the value is greater than the given value, it indicates that the storage space is increasing or decreasing too rapidly, and there is a high probability that the storage space is abnormal. In this case, the executing entity can determine that there is a storage abnormality.
[0067] Step 406: Determine the storage space usage change curve based on historical usage information.
[0068] After obtaining historical usage information, the executing entity can also perform this step, which uses historical usage information as the vertical axis and time as the horizontal axis, thereby determining the usage change curve of storage space.
[0069] Step 407: Determine the storage space usage change cycle based on the usage change curve.
[0070] Based on the aforementioned usage change curves, the executing entity can analyze the patterns in these curves to determine the storage space usage change cycle. For some users, their storage space usage changes follow a time-based pattern. For example, at the start of a project, storage space usage gradually increases, reaching its maximum at the end of the project. Before starting the next project, all data from the previous project is deleted, allowing data for the next project to be stored in the storage space. Based on this pattern, the executing entity can determine the storage space usage change cycle.
[0071] Step 408: Determine whether the usage change curve of the current usage information period matches the usage change curve within the usage change period.
[0072] After determining the usage change cycle, the executing entity can divide the aforementioned usage change curve into multiple usage change sub-curves according to the usage change cycle. Then, it checks whether the usage change sub-curve of the current usage information's cycle matches the usage change sub-curves of other usage change cycles. If they do not match, a storage anomaly is identified. Matching here does not mean that the current usage is the same as a historical usage in another cycle, but rather that the trend of the usage change sub-curve in the current usage cycle is the same as the trend of the usage change sub-curves in other usage change cycles; for example, both showing a slow increase.
[0073] Step 409: In response to determining a storage exception, generate and output exception information.
[0074] The method for outputting information provided in the above embodiments of this application can analyze whether a user's storage space has experienced storage anomalies from multiple perspectives, thereby enabling multi-faceted early warning.
[0075] Further reference Figure 5 As an implementation of the methods shown in the above figures, this application provides an embodiment of a device for outputting information, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.
[0076] like Figure 5 As shown, the device 500 for outputting information in this embodiment includes: an acquisition unit 501, a determination unit 502, a judgment unit 503, and an output unit 504.
[0077] The acquisition unit 501 is configured to acquire the user's user identifier.
[0078] The determination unit 502 is configured to determine the storage space information requested by the user and the current usage information corresponding to the user identifier based on the user identifier.
[0079] The judgment unit 503 is configured to determine whether there is a storage anomaly based on the storage space information and the current usage information.
[0080] Output unit 504 is configured to generate and output exception information in response to determining a storage exception.
[0081] In some optional implementations of this embodiment, the determination unit 503 may be further configured to: determine the current utilization rate of the storage space based on the storage space information and the current usage information; and determine a storage anomaly in response to determining that the current utilization rate is greater than a first preset threshold.
[0082] In some optional implementations of this embodiment, the determination unit 503 may be further configured to: in response to determining that the current usage rate is less than or equal to a first preset threshold, obtain historical usage information; determine the usage change rate of storage space based on the historical usage information; and in response to determining that the absolute value of the usage change rate is greater than a second preset threshold, determine that storage is abnormal.
[0083] In some optional implementations of this embodiment, the determination unit 503 may be further configured to: determine the storage space usage change curve based on historical usage information; determine the storage space usage change period based on the usage change curve; and determine a storage anomaly in response to the determination that the usage change curve of the current usage information period does not match the usage change curve within the usage change period.
[0084] In some optional implementations of this embodiment, the above-described apparatus may further include Figure 5 The annotation units and storage units are not shown in the diagram.
[0085] The annotation unit is configured to annotate the current usage information obtained at the specified time.
[0086] The storage unit is configured to store the current usage information after labeling.
[0087] In some optional implementations of this embodiment, the output unit 504 may be further configured to: generate exception information in response to determining a storage exception, and output the exception information based on the contact information submitted by the user.
[0088] In some optional implementations of this embodiment, the device 500 may further include Figure 5The modification unit, not shown, is configured to: in response to receiving modification information sent by the user, modify the contact information and / or a first preset threshold according to the modification information.
[0089] It should be understood that units 501 to 504 described in the device 500 for outputting information are respectively related to the reference. Figure 2 The steps in the method described above correspond to those in the previous section. Therefore, the operations and features described above for the method used to output information also apply to the device 500 and the units contained therein, and will not be repeated here.
[0090] The following is for reference. Figure 6 It illustrates an electronic device suitable for implementing embodiments of the present disclosure (e.g., Figure 1 The structural diagram of the server (600) in the middle. Figure 6 The server shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0091] like Figure 6 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.
[0092] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 6 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 6 Each box shown can represent a device or multiple devices as needed.
[0093] Specifically, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by a processing device 601, it performs the functions defined in the methods of embodiments of this disclosure. It should be noted that the computer-readable medium described in embodiments of this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. Program code contained on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0094] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: obtain a user's user identifier; determine, based on the user identifier, the storage space requested by the user and the current usage information corresponding to the user identifier; determine, based on the storage space information and the current usage information, whether a storage error has occurred; and, in response to determining a storage error, generate and output error information.
[0095] Computer program code for performing the operations of embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0096] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0097] The units described in the embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor can be described as including an acquisition unit, a determination unit, a judgment unit, and an output unit. The names of these units do not necessarily limit the specific unit; for example, an acquisition unit can also be described as "a unit for acquiring a user's user identifier."
[0098] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A method for outputting information, comprising: obtaining a user identifier of a user; determining storage space information applied for by the user and current usage information corresponding to the user identifier according to the user identifier; determining whether there is a storage anomaly according to the storage space information and the current usage information; generating and outputting anomaly information in response to determining that there is a storage anomaly; wherein the determining whether there is a storage anomaly according to the storage space information and the current usage information comprises: determining a current usage rate of the storage space according to the storage space information and the current usage information; determining a usage change rate of the storage space according to historical usage information in response to determining that the current usage rate is less than or equal to a first preset threshold value; determining that there is a storage anomaly in response to determining that an absolute value of the usage change rate is greater than a second preset threshold value.
2. The method of claim 1, wherein, The determining whether there is a storage anomaly according to the storage space information and the current usage information further comprises: determining that there is a storage anomaly in response to determining that the current usage rate is greater than the first preset threshold value.
3. The method of claim 1, wherein, The determining whether there is a storage anomaly according to the storage space information and the current usage information comprises: determining a usage change curve of the storage space according to the historical usage information; determining a usage change period of the storage space according to the usage change curve; determining that there is a storage anomaly in response to determining that a usage change curve of a period in which the current usage information is located does not match a usage change curve within the usage change period.
4. The method of claim 1, wherein, The method further comprises: labeling time for the obtained current usage information; storing the labeled current usage information.
5. The method of claim 2, wherein, The generating and outputting anomaly information in response to determining that there is a storage anomaly comprises: generating anomaly information in response to determining that there is a storage anomaly, and outputting the anomaly information according to contact information submitted by the user.
6. The method of claim 5, wherein, The method further comprises: in response to receiving modification information sent by the user, modifying the contact information and / or the first preset threshold value according to the modification information. 7.An apparatus for outputting information, comprising: an obtaining unit configured to obtain a user identifier of a user; a determining unit configured to determine storage space information applied for by the user and current usage information corresponding to the user identifier according to the user identifier; a judging unit configured to determine whether there is a storage anomaly according to the storage space information and the current usage information; an output unit configured to generate and output anomaly information in response to determining that there is a storage anomaly; wherein the judging unit is further configured to: determine a current usage rate of the storage space according to the storage space information and the current usage information; determine a usage change rate of the storage space according to historical usage information in response to determining that the current usage rate is less than or equal to a first preset threshold value; determine that there is a storage anomaly in response to determining that an absolute value of the usage change rate is greater than a second preset threshold value.
8. The apparatus of claim 7, wherein, The judging unit is further configured to: determine that there is a storage anomaly in response to determining that the current usage rate is greater than the first preset threshold value.
9. The apparatus of claim 7, wherein, The judging unit is further configured to: According to the historical usage information, a usage change curve of the storage space is determined; According to the usage change curve, a usage change period of the storage space is determined; In response to determining that the usage change curve of the period in which the current usage information is located does not match the usage change curve within the usage change period, a storage anomaly is determined.
10. The apparatus of claim 7, wherein, The apparatus further includes: a labeling unit configured to label a time for the obtained current usage information; a storage unit configured to store the labeled current usage information.
11. The apparatus of claim 8, wherein, The output unit is further configured to: in response to determining the storage anomaly, generate anomaly information, and output the anomaly information according to the contact information submitted by the user.
12. The apparatus of claim 11, wherein, The apparatus further includes a modification unit configured to: in response to receiving the modification information sent by the user, modify the contact information and / or the first preset threshold according to the modification information.
13. A server, comprising: one or more processors; a storage device having one or more programs stored thereon, when the one or more programs are executed by the one or more processors, the one or more processors implement the method of any one of claims 1-6.
14. A computer readable medium having stored thereon a computer program, wherein, The program is executed by the processor to implement the method of any one of claims 1-6. The program is executed by the processor to implement the method of any one of claims 1-6.
Citation Information
Patent Citations
Graded cloud computing resource customizing method and system
CN105426254A
Method for monitoring performance of server in cloud platform, and server
CN108199920A
Monitoring usage rate patterns in storage resources
US20080174426A1
Methods and systems for utilization tracking and notification of cloud resources
US9003019B1