Processing method, device and computer equipment

By analyzing data and storage object attributes before data writing requests, computer equipment optimizes the data writing process, solving the storage failure problem caused by insufficient storage capacity, and improving the reliability and efficiency of data storage.

CN114579306BActive Publication Date: 2025-08-19LENOVO (BEIJING) LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210203161.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-02
Publication Date
2025-08-19
Estimated Expiration
2042-03-02

AI Technical Summary

Technical Problem

When the available storage capacity of the target storage object is insufficient, directly executing the data write request causes storage failure. The administrator needs to adjust the storage capacity of each storage object and then re-execute the data write request, resulting in cumbersome processing and reducing user experience.

Method used

Before executing the data write request, the computer device analyzes the data attributes of the data to be written and the object attributes of the target storage object, determines the required capacity and available storage capacity for data writing, and performs the data write request based on the analysis results, including compression processing, capacity adjustment and capacity expansion.

Benefits of technology

Improve the reliability and efficiency of data storage, avoid storage failures caused by insufficient capacity, simplify processing processes, and improve user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114579306B_ABST
    Figure CN114579306B_ABST
Patent Text Reader

Abstract

The present application proposes a processing method, apparatus and computer equipment. After the computer equipment obtains a data write request, before executing the data write request, it can analyze the object attributes of the target storage object to which the data to be written is to be written and the data attributes of the data to be written, and then execute the data write request based on the analysis results, thereby improving the reliability and efficiency of data storage and solving the problem that when the available storage capacity of the target storage object is insufficient, directly executing the data write request will lead to storage failure, and the administrator needs to adjust the storage capacity of each storage object and then re-execute the data write request, which makes the processing process cumbersome and reduces the user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application mainly relates to the field of communication technology, and more specifically to a processing method, apparatus and computer equipment. Background Art

[0002] With the development of computer communication technology, computer devices such as computers and servers are usually equipped with storage devices such as disks, hard disks, and optical disks to store application data generated by their own application operations, external data from external devices or applications, and shared data that can be shared with other computer devices to meet different business needs.

[0003] In order to facilitate the management of data stored in the computer device, different folders can be created in the storage device to store different business data, so that subsequent query or write operations of the business data can be completed efficiently. Summary of the Invention

[0004] In view of this, the present application provides a processing method, which includes:

[0005] Get data write request;

[0006] Determining, based on the data write request, a target storage object into which the to-be-written data is to be written and data attributes of the to-be-written data;

[0007] Obtaining object properties of the target storage object;

[0008] The data write request is executed based on at least the data attributes and the object attributes.

[0009] Optionally, executing the data write request based at least on the data attribute and the object attribute includes:

[0010] Determining a data write capacity required for writing the to-be-written data into the target storage object based on the data attribute or a combination of the data attribute and the object attribute;

[0011] Determining an object available storage capacity of the target storage object based on the object attributes;

[0012] Determining a data writing rule for writing the to-be-written data into the target storage object based at least on the capacity required for writing the data and the available storage capacity of the object;

[0013] The data writing request is executed according to the data writing rule.

[0014] Optionally, executing the data write request based at least on the data attribute and the object attribute further includes:

[0015] Determining, based on the object attributes, the available storage capacity of the first storage device where the target storage object is located;

[0016] The determining, based at least on the data writing required capacity and the available storage capacity of the object, a data writing rule for writing the to-be-written data into the target storage object includes:

[0017] Based on the capacity required for data writing, the available storage capacity of the object and the available storage capacity of the device, a data writing rule for writing the to-be-written data into the target storage object is determined.

[0018] Optionally, determining, based on the data attributes, a data write capacity required for writing the to-be-written data into the target storage object includes:

[0019] Determining that the data attributes include a data volume, and determining a data write capacity required to write the to-be-written data into the target storage object based on the data volume;

[0020] Determining that the data attributes include data volume and compression attributes, and determining a compression processing method for the data to be written based on the compression attributes and the data volume;

[0021] Based on the data volume and the compression processing mode, obtaining a data writing capacity required for compressing the data to be written into the target storage object;

[0022] The determining, based on a combination of the data attributes and the object attributes, a data write capacity required for writing the to-be-written data into the target storage object includes:

[0023] It is determined that the object category included in the object attribute is a compressed package, and based on the compression processing method corresponding to the compressed package and the data volume, the data writing capacity required for writing the data to be written into the target storage object is determined.

[0024] Optionally, executing the data write request based at least on the data attribute and the object attribute includes:

[0025] determining that the capacity required for writing the data is greater than the available storage capacity of the target storage object, refusing to respond to the data write request, or responding to the data write request in accordance with a capacity adjustment rule to write the data to the target storage object; the capacity adjustment rule is used to adjust the available storage capacity of the object and / or the capacity required for writing the data;

[0026] Determining that the capacity required for writing the data is less than or equal to the available storage capacity of the object and the available storage capacity of the first storage device where the target storage object is located, and responding to the data write request, writing the data to be written into the target storage object;

[0027] Determining that the capacity required for writing the data is less than or equal to the available storage capacity of the object, and responding to the data write request, writing the to-be-written data into the target storage object;

[0028] In the process of responding to the data write request, determining that the capacity required for the data write is greater than the available storage capacity of the first storage device where the target storage object is located, controlling the first storage device to restore to the storage state before the data write request is executed and outputting a first prompt message; or increasing the available storage capacity of the device according to a device expansion rule so as to successfully write the data to be written into the target storage object;

[0029] The first prompt information is used to indicate that the current available storage capacity of the first storage device is insufficient, resulting in the target storage object failing to store the data to be written.

[0030] Optionally, writing the to-be-written data into the target storage object in response to the data write request according to the capacity adjustment rule includes:

[0031] Adjusting the storage capacity upper limit of the target storage object according to the object expansion rule to increase the available storage capacity of the object, determining that the capacity required for writing the data is less than or equal to the increased available storage capacity of the object, and writing the data to be written into the target storage object in response to the data write request; and / or

[0032] In response to the compression processing operation on the data to be written, compressing the data to be written according to a compression processing method determined based on the data amount and compression properties of the data to be written to obtain compressed data to be written; the data writing capacity required for the compressed data to be written is less than the data writing capacity required for the data to be written;

[0033] The data write request is updated based on the compressed data to be written, and at least based on the data write capacity required for the compressed data to be written and the available storage capacity of the object, the updated data write request is executed to write the compressed data to be written into the target storage object.

[0034] Optionally, adjusting the storage capacity upper limit of the target storage object according to the object expansion rule includes:

[0035] In response to a request to adjust the storage capacity upper limit of the target storage object, allocating at least part of the available storage capacity of the first storage device where the target storage object is located to the target storage object, thereby increasing the storage capacity upper limit of the target storage object; or

[0036] In response to a request to adjust the storage capacity upper limit of the target storage object, allocating at least a portion of available storage capacity from available storage capacity of a second storage device to the target storage object, thereby increasing the storage capacity upper limit of the target storage object; the second storage device is different from the first storage device;

[0037] updating a data storage index of the target storage object so as to successfully write the data to be written into the target storage object and store it in the first storage device and / or the second storage device; wherein the data storage index can represent a mapping relationship between storage data and storage addresses in the target storage object, so as to respond to a data read request for the target storage object according to the mapping relationship and read the target data stored in the first storage device or the second storage device under the target storage object;

[0038] Increasing the available storage capacity of the device according to the device expansion rule includes:

[0039] At least a portion of the available storage capacity of at least one of the second storage devices is allocated to the first storage device to increase the available storage capacity of the first storage device.

[0040] Optionally, the object attribute includes available storage capacity of the object, and the available storage capacity of the object is determined based on an upper limit of storage capacity of the target storage object; and a method for obtaining the upper limit of storage capacity includes:

[0041] Obtaining a configuration request for a storage capacity upper limit of the target storage object;

[0042] Parsing the configuration request to determine attribute information of the configuration request object and storage capacity constraint conditions of the target storage object;

[0043] detecting that the attribute information of the configuration request object satisfies the storage capacity constraint condition, and determining that the corresponding configuration request object has the configuration authority for the storage capacity upper limit of the target storage object;

[0044] The configuration request is executed to determine the upper limit of the storage capacity of the target storage object, or to adjust the upper limit of the storage capacity of the target storage object.

[0045] The present application also proposes a processing device, comprising:

[0046] A data writing request obtaining module is used to obtain a data writing request;

[0047] an information determining module, configured to determine, based on the data write request, a target storage object into which the data to be written is to be written and data attributes of the data to be written;

[0048] An object attribute acquisition module, configured to acquire the object attributes of the target storage object;

[0049] The data writing request execution module is configured to execute the data writing request based at least on the data attributes and the object attributes.

[0050] The present application also proposes a computer device, comprising:

[0051] at least one communication module;

[0052] At least one storage device, the storage device comprising at least one storage object for storing data to be written, and a program for implementing the above-mentioned processing method;

[0053] At least one processor, the processor is used to load and execute the program stored in the storage device to implement the processing method as described above.

[0054] It can be seen that the present application provides a processing method, apparatus and computer equipment. After the embodiment of the present application obtains a data write request, before executing the data write request, the computer equipment will analyze the object attributes of the target storage object to which the data to be written is to be written, as well as the data attributes of the data to be written, and then execute the data write request based on the analysis results, thereby improving the reliability and efficiency of data storage, and solving the problem that when the available storage capacity of the target storage object is insufficient, directly executing the data write request will lead to storage failure. When the administrator needs to adjust the storage capacity of each storage object and then re-execute the data write request, the processing process will be cumbersome and the user experience will be reduced. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without any creative work.

[0056] Figure 1 A schematic diagram of the hardware structure of an optional example of a computer device suitable for the processing method proposed in this application;

[0057] Figure 2 A schematic diagram of the hardware structure of another optional example of a computer device suitable for the processing method proposed in this application;

[0058] Figure 3 A flowchart of an optional example of the processing method proposed in this application;

[0059] Figure 4 A flowchart of another optional example of the processing method proposed in this application;

[0060] Figure 5 A flowchart of another optional example of the processing method proposed in this application;

[0061] Figure 6 A flowchart of another optional example of the processing method proposed in this application;

[0062] Figure 7 A flowchart of another optional example of the processing method proposed in this application;

[0063] Figure 8 A flowchart of another optional example of the processing method proposed in this application;

[0064] Figure 9 A schematic structural diagram of an optional example of the processing device proposed in this application;

[0065] Figure 10 This is a schematic structural diagram of another optional example of the processing device proposed in this application. DETAILED DESCRIPTION

[0066] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0067] Reference Figure 1, is a hardware structure diagram of an optional example of a computer device suitable for the processing method proposed in this application. The computer device can be an electronic device or a server. The electronic device can include but is not limited to smartphones, tablets, wearable devices, personal computers (PCs), netbooks, personal digital assistants (PDAs), smart watches, augmented reality (AR) devices, virtual reality (VR) devices, vehicle-mounted devices, smart speakers, robots, smart medical devices, smart transportation devices, desktop computers, etc. The server can be an independent physical server, a server cluster composed of multiple physical servers, or a cloud server capable of cloud computing. The server can achieve communication connection with electronic devices through a wired network or a wireless network to achieve data exchange between different devices. This application does not limit the product type of the computer device that executes the following processing method, which can be determined based on the application scenario.

[0068] Based on the above analysis, if Figure 1 As shown, the computer device proposed in this application may include: at least one communication module 11, at least one storage device 12, and at least one processor 13, wherein:

[0069] The communication module 11, storage device 12 and processor 13 can be connected to the communication bus in the computer device, and data connection between different components can be realized through the communication bus to realize data interaction between different components in the computer device to meet communication needs. This application does not limit the communication connection method of each component in the computer device, which can be determined according to the situation.

[0070] The communication module 11 may include a communication module that can realize data interaction by using a wireless communication network, such as a WIFI module, a 5G / 6G (fifth generation mobile communication network / sixth generation mobile communication network) module, a GPRS module, etc., thereby realizing communication connection with external devices; the communication module 11 may also include a communication interface for realizing data interaction between internal components of the computer device, such as a USB interface, a serial / parallel port, etc. This application does not limit the specific content contained in the communication module 11.

[0071] The storage device 12 may include at least one storage object for storing data to be written, such as a folder, a compressed package, etc., and may also include a program for implementing the processing method proposed in this application; the processor 13 can load and execute the program to implement the various steps of the processing method proposed in this application. The implementation process can refer to the description of the corresponding part of the method embodiment below, and the embodiment of this application will not be described in detail here.

[0072] In the embodiment of the present application, the storage device 12 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device or other volatile solid-state storage device. The processor 13 may be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices. The present application does not limit the structure and model of the above-mentioned storage device 12 and processor 13, and they can be flexibly adjusted according to actual needs.

[0073] It should be understood that Figure 1 The structure of the computer device shown does not constitute a limitation on the computer device in the embodiment of the present application. In actual applications, the computer device may include Figure 1 In the case where the computer device is the above-mentioned electronic device, such as Figure 2 As shown, the computer device may further include at least one input component such as a touch sensing unit for sensing touch events on a touch display panel, a keyboard, a mouse, a camera, a microphone, etc.; at least one output component such as a display, a speaker, a vibration mechanism, a lamp, etc.; an antenna; a sensor module; a power supply module, etc. Figure 2 The listed input components and output components are not shown. The hardware structure can be determined according to the type of computer device and its functional requirements. This application does not list them one by one here.

[0074] Reference Figure 3 , is a flow chart of an optional example of the processing method proposed in this application, which can be executed by the above-mentioned computer device, such as Figure 3 As shown, the method may include:

[0075] Step 31, obtaining a data write request;

[0076] Step 32: Based on the data write request, determine the target storage object to which the data to be written is to be written and the data attributes of the data to be written;

[0077] Step 33, obtaining the object attributes of the target storage object;

[0078] Step 34: Execute the data write request based at least on the data attributes and the object attributes.

[0079] In an embodiment of the present application, when a computer device is used as a server device, one or more storage objects corresponding to different business configurations, such as folders, compressed packages, etc., can generally be configured. In some embodiments, as needed, an upper limit on the available storage capacity can be configured for each storage object, that is, the maximum storage capacity that can store data in the storage object, which is used to predict whether the storage object has sufficient storage capacity to store the data to be written before performing a data write operation on the storage object. The present application does not restrict the configuration method and value of the storage capacity upper limit, which can be determined based on business needs, and the storage capacity upper limit can be dynamically adjusted based on storage needs to meet business data storage needs.

[0080] Based on the technical solution described above, after the computer device obtains a data write request for the data to be written in any way, in order to avoid directly executing the data write operation when the storage capacity of the target storage object to which the data to be written is insufficient, resulting in the inability to store the complete data to be written, the present application parses the data write request and determines the target storage object to which the data to be written is to be written. Then, the object properties of the target storage object (such as the object's available storage capacity, current storage capacity, storage capacity upper limit, etc.) and the data properties of the data to be written (such as data type, data compression properties, data volume, etc.) can be obtained.

[0081] Afterwards, the computer device can analyze whether the target storage object has sufficient storage capacity to store the data to be written based on at least the object attributes of the current target storage object and the data attributes of the currently obtained data to be written, so as to determine how to execute the data write request based on different analysis results. The implementation process can refer to but is not limited to the following detailed implementation method, and the embodiments of the present application will not be described in detail here.

[0082] In summary, after the embodiment of the present application obtains a data write request, before executing the data write request, the computer device will analyze the object attributes of the target storage object to which the data to be written is to be written, as well as the data attributes of the data to be written, and then execute the data write request based on the analysis results, thereby improving the reliability and efficiency of data storage, and solving the problem of storage failure caused by directly executing a data write request when the available storage capacity of the target storage object is insufficient. The administrator needs to adjust the storage capacity of each storage object and then re-execute the data write request, resulting in a cumbersome processing process and reducing the user experience.

[0083] Reference Figure 4 , is a flowchart of another optional example of the processing method proposed in this application. This embodiment can be a description of an optional detailed implementation method of the above processing method, but is not limited to the detailed implementation method described in this embodiment, and the method can still be executed by a computer device. Figure 4 As shown, the method may include:

[0084] Step S41, obtaining a data write request;

[0085] Step S42: determining the target storage object to which the data to be written is to be written and the data attributes of the data to be written based on the data write request;

[0086] Step S43, obtaining the object attributes of the target storage object;

[0087] Regarding the implementation process of step S41 to step S43, reference may be made to the description of the corresponding parts of the above embodiment, which will not be elaborated in this embodiment.

[0088] Step S44, determining a data write capacity required for writing the data to be written into the target storage object based on the data attribute or a combination of the data attribute and the object attribute;

[0089] In an embodiment of the present application, the data attributes of the data to be written may include the data volume of the data to be written, and may also include compression attributes (such as whether the data to be written can be compressed) as needed. Based on this, the computer device can directly determine the data writing capacity required to write the data to be written to the target storage object based on the determined data volume of the data to be written. For example, if the target storage object is a folder and the data to be written is a file to be written, the data writing capacity required to write the file to be written to the folder can be determined based on the file size of the file to be written, that is, the storage capacity corresponding to the file size.

[0090] In some other embodiments, when it is determined that the above-mentioned data attributes obtained include data volume and compression attributes, it can be further determined whether the data to be written can be compressed, and if it can be compressed, what compression processing method is used to compress the data to be written, so as to change the storage capacity occupied by the target storage object to be written. Therefore, the electronic device can determine the compression processing method (i.e., various compression algorithms) for the data to be written based on the compression attribute and data volume, and thus obtain the data writing capacity required to compress the data to be written into the target storage object based on the data volume and the compression processing method.

[0091] It can be understood that for the same amount of data to be written, different compression processing methods are used to compress it, and the file size of the resulting compressed file may be different, that is, the capacity required to compress the data to be written into the target storage object may be different, which depends on the situation. This application does not impose any restrictions on this.

[0092] In some other embodiments proposed in the present application, if the present application determines the data writing capacity required to write the data to be written into the target storage object based on a combination of data attributes and object attributes, if it is determined that the object category included in the object attributes of the target storage object is a folder, the method described above can still be used to determine the capacity required for the above-mentioned data writing, and the implementation process will not be described in detail in this application.

[0093] If it is determined that the object type of the target storage object is a compressed package, the data writing capacity required to write the data to be written into the target storage object can be determined based at least on the compression processing method corresponding to the compressed package (the required preset compression algorithm can be selected in combination with the data type of the data to be written, such as documents, pictures, audio and video, etc.) and the data amount of the data to be written. The method for estimating the required data writing capacity can be determined based on the processing principle of the corresponding preset compression algorithm, which will not be described in detail in this application.

[0094] Step S45: determining the object available storage capacity of the target storage object based on the object attributes;

[0095] In actual applications, the available storage capacity of an object can be determined based on the upper limit of the storage capacity of the target storage object. Therefore, the object attribute can include the upper limit of the storage capacity of the target storage object and the currently used capacity. The upper limit of the storage capacity and the currently used capacity can be differenced to obtain the available storage capacity of the target storage object. It can be understood that as the data is written to the target storage object, its currently used capacity changes dynamically. If the upper limit of the storage capacity remains unchanged, the calculated available storage capacity of the object will also change accordingly. Optionally, if the object attribute of the target storage object obtained includes the available storage capacity of the object, the object attribute can be directly identified and processed to determine the available storage capacity of the object. It can be seen that the method of determining the available storage capacity of the target storage object can be adjusted accordingly for object attributes of different contents. This application does not limit the implementation method of step S45.

[0096] Step S46, determining a data writing rule for writing the data to be written into the target storage object based at least on the capacity required for data writing and the available storage capacity of the object;

[0097] Step S47: executing the data writing request according to the data writing rule.

[0098] In an embodiment of the present application, after determining the data writing capacity required for the data to be written and the object available storage capacity of the target storage object according to the method described above, by comparing the two, it is possible to directly determine whether the current target storage object has sufficient storage capacity to store the data to be written, and thus determine whether to execute the write operation on the data to be written based on different comparison results. If the object available storage capacity of the target storage object is insufficient, how to execute the data to be written to ensure that the data to be written is successfully written to the target storage object, thereby determining the corresponding data writing rules.

[0099] Therefore, in actual applications, the data writing capacity required for data writing and the object's available storage capacity can be directly used to determine the data writing rules for writing the data to be written into the target storage object. In some other embodiments, writing the data to be written into the target storage object is actually writing the data to be written into the storage space of the storage device where the target storage object is located for storage. The storage device often constructs multiple storage objects, each used to store different business data. The data writing operation for each storage object can be processed according to the method described above. Therefore, before executing a data write request for any data to be written, other storage objects in the same storage device may execute data write operations, resulting in the estimated available storage capacity of the target storage object being greater than the actual available device storage capacity on the first storage object, resulting in the required capacity for data writing being greater than the available device storage capacity. In this case, even if the required capacity for data writing is less than the available object storage capacity, the data to be written cannot be successfully written into the target storage object.

[0100] Based on the above analysis, the present application can also determine the device available storage capacity of the first storage device where the target storage object is located based on object attributes (such as the storage location of the target storage device, etc.). Afterwards, the data writing rules for writing the data to be written into the target storage object can be determined based on the capacity required for data writing, the object available storage capacity and the device available storage capacity, so as to ensure that the data write request is subsequently executed in accordance with the data write rule, and the data to be written can be successfully written into the target storage object, avoiding the data writing failure caused by the data amount of the data to be written exceeding the object available storage capacity and the device available storage capacity, and then re-adjusting the object available storage capacity and / or the device available storage capacity, and re-executing the data write request, thereby reducing the data write processing efficiency and the user experience.

[0101] It should be noted that, in combination with the above analysis, the above data writing rules may include directly executing a data writing request and directly writing the data to be written into the target storage object; it may also include directly refusing to respond to a request to be written; it may also include compressing the directly obtained data to be written and then executing the data writing operation; it may also include using different expansion methods to expand the available storage capacity of the target storage object and then executing the data writing operation, etc. The present application does not limit the content of the above data writing rules, and it can be determined based on different analysis results of a comprehensive analysis of the capacity required for data writing and the available storage capacity of the object, or even the available storage capacity of the device. It can refer to but is not limited to the description of the method embodiment below. This embodiment will not be described in detail here.

[0102] In summary, in an embodiment of the present application, before executing a data write request for any data to be written, the data amount of the data to be written, the object available storage capacity of the target storage object, and even the device available storage capacity of the first storage device where the target storage object is located will be determined based on the data attributes of the data to be written and the object attributes of the target storage object. Through comparative analysis, it is predicted whether the current target storage object has sufficient storage capacity to successfully store the data to be written, and the data write rules corresponding to different prediction results are determined, that is, the implementation method to ensure the success of the data write operation. Afterwards, according to the data write rules, the data write request obtained this time is executed to improve the efficiency and effectiveness of data writing.

[0103] Reference Figure 5 , which is a flow chart of another optional example of the processing method proposed in this application. This embodiment can be a description of another optional detailed implementation method of the above processing method, such as Figure 5 As shown, the method may include:

[0104] Step S51, obtaining a data write request;

[0105] Step S52: determining, based on the data write request, a target storage object into which the data to be written is to be written and a data write capacity required for the data to be written;

[0106] Step S53, obtaining the object available storage capacity of the target storage object and the device available storage capacity of the first storage device where the target storage object is located;

[0107] Regarding the implementation process of step S51 to step S53, reference may be made to the description of the corresponding parts of the above embodiment, and the embodiment of the present application will not be elaborated here.

[0108] Step S54, determining whether the capacity required for data writing is greater than the available storage capacity of the object, if yes, proceeding to step S56, if no, proceeding to step S55;

[0109] Step S55, determining whether the capacity required for data writing is greater than the available storage capacity of the device, if yes, proceeding to step S56; if no, proceeding to step S57;

[0110] Step S56, rejecting the response to the data write request;

[0111] Step S57: responding to the data write request, writing the data to be written into the target storage object.

[0112] It can be seen that in an embodiment of the present application, before executing any data write request obtained, it is possible to first determine whether the target storage object where the corresponding data to be written is written has sufficient available storage capacity to store the data to be written, and whether the first storage device where the target storage object is located (such as various types of storage disks, etc.) has sufficient available storage capacity to store the data to be written. When it is determined that both the target storage object and the first storage device have sufficient storage capacity, the data write request is responded to, thereby successfully writing the data to be written to the target storage object.

[0113] According to the above analysis, if it is determined that the storage capacity of the target storage object and / or the first storage device is insufficient, the embodiment of the present application can directly refuse to respond to the data write request, thereby avoiding the situation in which the data write operation is directly executed without performing the prediction detection according to the above method, resulting in data write failure, that is, reducing invalid data write operations and improving data write efficiency.

[0114] In some other embodiments proposed in the present application, when it is determined that the storage capacity of the target storage object and / or the first storage device is insufficient, that is, the capacity required for data writing is greater than the object available storage capacity of the target storage object, and / or the capacity required for data writing is greater than the device available storage capacity of the first storage device, if it is still necessary to perform a write operation on the data to be written, the data to be written can be written to the target storage object in response to the data write request in accordance with the capacity adjustment rules. The capacity adjustment rules herein can be used to adjust the object available storage capacity and / or the capacity required for data writing. The present application does not limit the content of the capacity adjustment rules, which can be determined as appropriate.

[0115] Based on this, refer to Figure 6 The flowchart of another optional example of the processing method proposed in this application is shown in FIG. This embodiment can further refine the data writing rules described above, but is not limited to this refinement implementation method. Figure 6 As shown, the method may include:

[0116] Step S61, obtaining a data write request;

[0117] Step S62: Based on the data write request, determining the target storage object to which the data to be written is to be written and the data writing capacity required for the data to be written;

[0118] Step S63, obtaining the object available storage capacity of the target storage object;

[0119] Regarding the implementation process of step S61 to step S63, please refer to the description of the corresponding part of the above embodiment, and the embodiment of the present application will not be repeated here.

[0120] Step S64: If it is determined that the capacity required for data writing is greater than the available storage capacity of the object, the upper limit of the storage capacity of the target storage object is adjusted according to the object expansion rule to increase the available storage capacity of the object;

[0121] Step S65 , determining that the capacity required for data writing is equal to or less than the increased available storage capacity of the object, and responding to the data writing request, writing the data to be written into the target storage object.

[0122] In an embodiment of the present application, the capacity adjustment rules of the above-mentioned embodiment may include object expansion rules, i.e., rules for indicating adjustment of the object available storage capacity of the target storage object. The present application does not limit the method for implementing this adjustment, such as directly allocating at least a portion of the available storage capacity of the first storage device where the target storage object is located to the target storage object, so as to increase the object available storage capacity of the target storage object, so that the increased object available storage capacity is equal to or greater than the capacity required for data writing. After this adjustment, the capacity required for writing the data to be written is less than or equal to the device available storage capacity of the first storage device. Therefore, after completing the adjustment of the object available storage capacity according to this object expansion rule, executing the data writing operation can ensure that the data to be written is successfully written to the target storage object.

[0123] Based on the above analysis, in one possible implementation method, the above method for adjusting the storage capacity upper limit of the target storage object according to the object expansion rules may include: responding to a request to adjust the storage capacity upper limit of the target storage object, allocating at least part of the available storage capacity from the available storage capacity of the first storage device where the target storage object is located to the target storage object, thereby increasing the storage capacity upper limit of the target storage object.

[0124] In another possible implementation, when it is determined that the capacity required for writing data is greater than the available storage capacity of the target storage object, the following steps can be followed: Figure 7 The processing method shown in FIG. 1 is used to adjust the storage capacity upper limit of the target storage object to increase the available storage capacity of the target storage object. For other processing steps of the processing method, reference may be made to the description of the corresponding parts of the above embodiment, which will not be described in detail in this embodiment. Figure 7 As shown, the adjustment implementation method may include:

[0125] Step S71: determining that the data writing capacity required for the data to be written is greater than the available storage capacity of the target storage object, and outputting a prompt message for adjusting the storage capacity upper limit of the target storage object;

[0126] Step S72, in response to the confirmation adjustment operation for the adjustment prompt information, generating an adjustment request for the storage capacity upper limit of the target storage object;

[0127] Step S73, in response to the adjustment request, allocating at least part of the available storage capacity of the second storage device to the target storage object, thereby increasing the storage capacity upper limit of the target storage object;

[0128] Step S74: When the capacity required for data writing is equal to or less than the increased available storage capacity of the object, respond to the data write request and write the data to the target storage object and store it in the first storage device and / or the second storage device.

[0129] Among them, the above-mentioned second storage device is different from the first storage device. For example, the entire storage space of the electronic device is partitioned to obtain corresponding multiple storage devices. The storage capacity of different storage devices can be the same or different, and can be determined based on the business data storage requirements of different storage devices. This application does not impose any restrictions on this.

[0130] In an embodiment of the present application, before executing a data write request for any data to be written, when it is determined according to the analysis method described above that the current available storage capacity of the target storage object is insufficient, in order to achieve the storage of the data to be written, it is possible to choose to increase the available storage capacity of the object by adjusting the storage capacity upper limit of the target storage object. At this time, the above-mentioned adjustment prompt information can be output to remind the user whether to request to adjust the storage capacity upper limit of the target storage object. If yes, a corresponding adjustment request can be generated. By responding to the adjustment request, at least part of the available storage capacity can be allocated to the target storage object from the available storage capacity of the first storage device and / or the second storage device. The implementation method will not be described in detail.

[0131] Optionally, for a target storage object pre-constructed in a first storage device for a first business need, when it is determined according to the above detection method that the available storage capacity of the target storage object is insufficient, a new storage object can be constructed in a second storage device and recorded as the first storage object, as a subordinate storage object in the target storage object, to implement the expansion of the target storage object. In this case, a storage mapping relationship between the target storage object and the first storage object can be constructed, and the target storage object can be presented in an electronic device without directly presenting the first storage object. The data attributes of the data stored in the first storage object are mapped to the target storage object. The implementation process is not described in detail in this application. It should be noted that the implementation method for expanding the available storage capacity of the target storage object includes but is not limited to the implementation method described above.

[0132] Step S75 : updating the data storage index of the target storage object so as to successfully write the data to be written into the target storage object and store it in the first storage device and / or the second storage device.

[0133] Among them, the data storage index can represent the mapping relationship between the storage data and the storage address in the target storage object, so as to respond to the data read request for the target storage object according to the mapping relationship and read the target data stored in the first storage device or the second storage device under the target storage object. It can be seen that after the target storage object is expanded according to any of the methods described above, the storage address range contained in the target storage object is expanded. For each data stored in the target storage object, the mapping relationship between the stored data and the storage address where it is located can be recorded in the data storage index it currently has. When writing the data to be written to the target storage object, the data to be written will be stored in the storage space of the first storage device or the second storage device at the corresponding position of the blank storage address where no data is stored, and the mapping relationship between the data to be written and the storage address where it is stored is determined, thereby updating the data storage index.

[0134] It should be noted that this application does not impose any restrictions on the content of the above-mentioned data storage index and its mapping relationship representation method, and it can be flexibly configured according to business needs. In combination with the above analysis, if a new resource object is created in the second storage device to store the data to be written, the mapping relationship between the storage address of the data to be written in the second storage device and the data to be written can be added to the data storage index of the target storage object. In this way, when querying the data to be written subsequently, the data to be written stored in the second data device can be queried according to the storage address in the data storage index.

[0135] In some other embodiments proposed in the present application, if it is determined that the available storage capacity of the first storage device is insufficient according to the above-mentioned adjustment method of the available storage capacity of the object, the present application can directly refuse to respond to the data write request, or allocate at least part of the available storage capacity of the second storage device of the electronic device to the first storage device, and then allocate at least part of the available storage capacity of the first storage device to the target storage object, so that the increased available storage capacity of the object is equal to or greater than the capacity required for data writing, thereby improving the reliability and success rate of subsequent data write operations. The implementation process can refer to the description of the corresponding part of the context embodiment, and this embodiment will not be described in detail here.

[0136] In some other embodiments proposed in the present application, the capacity adjustment rule executed above may also be a capacity reduction rule for the data to be written, that is, by compressing the data to be written, the capacity required for data writing can be reduced. Therefore, in the case where it is determined that the capacity required for data writing is greater than the available storage capacity of the object, a compression prompt information can be output as to whether to compress the data to be written. The operator who performs the data writing operation can choose whether to select the compression processing method according to the actual situation to reduce the capacity required for data writing. If it is determined to perform the compression processing operation, that is, click the "Compression Processing", "Yes" and other function buttons, the electronic device can respond to the compression processing operation of the data to be written, and compress the data to be written according to the compression processing method determined based on the data volume and compression properties of the data to be written, to obtain the compressed data to be written. At this time, the capacity required for data writing of the compressed data to be written is less than the capacity required for data writing of the data to be written. The present application does not describe in detail the implementation process of the above-mentioned compression processing operation.

[0137] Afterwards, based on the obtained compressed data to be written, the data write capacity for the data to be written can be updated, and a data write request for the compressed data to be written can be obtained. After obtaining the new data write capacity required, the updated data write request can still be executed according to the method described above, at least based on the data write capacity required for the compressed data to be written and the available storage capacity of the object, to write the compressed data to be written into the target storage object. The implementation process of the embodiment of this application will not be described in detail here, and can refer to but is not limited to the description of the corresponding part of the context embodiment.

[0138] In some other embodiments proposed in the present application, for the above-mentioned implementation process of executing a data write request based at least on data attributes and object attributes, this embodiment can determine that the capacity required for data writing is less than or equal to the available storage capacity of the object, respond to the data write request, and write the data to be written to the target storage object. Thereafter, it is determined to obtain the device available storage capacity of the first storage device where the target storage object is located. In the process of responding to the data write request, it is detected whether the capacity required for data writing reaches the available storage capacity of the device. If so, a prompt message indicating that the data is written successfully is fed back; otherwise, it can be determined that the available storage space of the first storage device is insufficient, and a first prompt message can be output to indicate that the current device available storage capacity of the first storage device is insufficient, resulting in the target storage object failing to store the data to be written. The present application does not limit the content of the first prompt message and the output method thereof, which can be determined as the case may be.

[0139] At the same time, the present application can also control the first storage device to restore to the storage state before the data write request was executed, solving the problem that during the data write process, due to insufficient available storage capacity of the first storage device, part of the data to be written is written to the target storage object for storage, while another part of the data is not successfully written to the target storage object. However, it is impossible to determine which data content is written to the target storage object, and it is impossible to perform incremental storage based on this. If the available storage capacity of the device is adjusted and the write operation of the data to be written is re-executed, the target storage object will repeatedly store part of the data to be written, resulting in a waste of storage resources. The processing method of restoring the original storage state proposed in the present application and subsequently re-executing the data write operation can avoid duplicate data storage.

[0140] Optionally, according to the above embodiments, if it is determined that the capacity required for data writing is greater than the available storage capacity of the first storage device where the target storage object is located, and the data writing operation is still to be performed, the preset device expansion rule can be called, and the available storage capacity of the device can be increased according to the device expansion rule so that the capacity required for data writing is equal to or less than the increased available storage capacity of the device. In this way, the data write request can be continued to be executed, and the corresponding unsuccessful written data to be written can be successfully written to the target storage object. In order to implement this processing method, during the execution of the data write request, when the data to be written cannot be written due to insufficient available storage capacity of the device, the write position of the data to be written at that moment can be recorded. In this way, when the data write request is subsequently continued to be executed, the write operation on the data to be written can be continued from this write position, but it is not limited to the processing method described in this embodiment.

[0141] Among them, regarding the above-mentioned implementation process of increasing the available storage capacity of the device according to the device expansion rules, it can be to allocate at least part of the available storage capacity from the available storage capacity of at least one second storage device to the first storage device to increase the available storage capacity of the first storage device. Compared with the reallocation of the storage capacity upper limit of the first storage device and the second storage device, such as re-partitioning the disk, to increase the available storage capacity of the first storage device, this application does not elaborate on the implementation method of allocating the available storage capacity of the storage device.

[0142] Optionally, the storage capacity limit of the resource object described in each embodiment above can be configured according to business needs when constructing the resource object, and during data processing, the storage capacity limit can be dynamically adjusted as described above to meet business data storage needs. Figure 8 The flowchart of another processing method embodiment is shown. In order to obtain the storage capacity upper limit of the resource object, the processing method may include:

[0143] Step S81, obtaining a configuration request for the storage capacity upper limit of the target storage object;

[0144] Step S82: parsing the configuration request to determine the attribute information of the configuration request object and the storage capacity constraint of the target storage object;

[0145] In an embodiment of the present application, the configuration process of the storage capacity upper limit of a resource object can be completed by the builder of the resource object. The storage capacity constraint condition can be used to indicate the storage capacity upper limit configuration authority of the corresponding storage object. This application does not limit its content and it can be determined according to the circumstances.

[0146] Optionally, the above-mentioned configuration request object may refer to the above-mentioned builder or manager, and its attribute information may include identity information such as account name, account ID, avatar, and permission management information configured for the account. This application does not limit the content of the attribute information, which can be determined based on business management needs.

[0147] Step S83: Detecting that the attribute information of the configuration request object meets the storage capacity constraint condition, and determining that the corresponding configuration request object has the configuration authority for the storage capacity upper limit of the target storage object;

[0148] Step S84: execute the configuration request to determine the storage capacity upper limit of the target storage object.

[0149] Following the above description, when configuring or adjusting the storage capacity limit of any constructed resource object, the configuration request object can first be verified for permissions. Only after verification is passed can the storage capacity limit adjustment be completed. Of course, for some resource objects with lower security requirements, it is also possible to not set configuration permissions. In this way, the storage capacity limit configuration request for such resource objects can be directly responded to and the storage capacity limit of the resource object can be configured or adjusted. This implementation process is not described in detail in this application.

[0150] In addition, in actual applications, for any resource object, its configured storage capacity upper limit can be used to predict whether it has sufficient storage capacity to store the data to be written before writing data to it according to the processing method described above, thereby improving the reliability and efficiency of data writing; of course, if this constraint is required, the storage capacity upper limit configured for the resource object can also be canceled, and after obtaining a data write request for the resource object, the data write request can be directly responded to and the data to be written can be written to the resource object.

[0151] Reference Figure 9 , is a schematic structural diagram of an optional example of a processing device proposed in this application, which may include:

[0152] A data writing request obtaining module 91 is used to obtain a data writing request;

[0153] An information determination module 92 is configured to determine, based on the data write request, a target storage object into which the data to be written is to be written and data attributes of the data to be written;

[0154] The object attribute acquisition module 93 is used to acquire the object attributes of the target storage object;

[0155] The data writing request execution module 94 is configured to execute the data writing request based at least on the data attributes and the object attributes.

[0156] In some embodiments, as Figure 10 As shown, the data write request execution module 94 may include:

[0157] A data writing required capacity determining unit 941 is configured to determine a data writing required capacity for writing the to-be-written data into the target storage object based on the data attribute or a combination of the data attribute and the object attribute;

[0158] An object available capacity determining unit 942 is configured to determine the object available storage capacity of the target storage object based on the object attributes;

[0159] A data writing rule determining unit 943 is configured to determine a data writing rule for writing the to-be-written data into the target storage object based at least on the capacity required for data writing and the available storage capacity of the object;

[0160] The data writing processing unit 944 is configured to execute the data writing request according to the data writing rule.

[0161] Optionally, the data write request execution module 94 may further include:

[0162] a device available storage capacity determining unit, configured to determine the device available storage capacity of the first storage device where the target storage object is located based on the object attributes;

[0163] Based on this, the data writing rule determination unit 943 may include:

[0164] The first determining unit is configured to determine a data writing rule for writing the to-be-written data into the target storage object based on the capacity required for writing the data, the available storage capacity of the object, and the available storage capacity of the device.

[0165] In some further embodiments, the data writing required capacity determination unit 941 may include:

[0166] a second determining unit, configured to determine that the data attribute includes a data volume, and determine a data writing capacity required for writing the to-be-written data into the target storage object based on the data volume;

[0167] a compression processing mode determining unit, configured to determine that the data attributes include data volume and compression attributes, and determine a compression processing mode for the data to be written based on the compression attributes and the data volume;

[0168] A first obtaining unit is configured to obtain a data writing capacity required for compressing the data to be written into the target storage object based on the data amount and the compression processing mode;

[0169] Based on this, the data writing required capacity determination unit 941 may also include:

[0170] The third determining unit is configured to determine that the object category included in the object attribute is a compression package, and determine a data writing capacity required to write the data to be written into the target storage object based on a compression processing method corresponding to the compression package and the data volume.

[0171] In some other embodiments proposed in the present application, the data write request execution module 94 may also include:

[0172] A rejection response unit is configured to determine that the capacity required for writing the data is greater than the available storage capacity of the target storage object, and reject the response to the data write request; or

[0173] a capacity adjustment execution unit, configured to determine that the capacity required for writing the data is greater than the available storage capacity of the target storage object, and respond to the data write request according to a capacity adjustment rule to write the data to the target storage object; the capacity adjustment rule is configured to adjust the available storage capacity of the object and / or the capacity required for writing the data;

[0174] a first execution unit, configured to determine that the capacity required for writing the data is less than or equal to the available storage capacity of the object and the available storage capacity of the first storage device where the target storage object is located, and write the data to be written into the target storage object in response to the data write request; or

[0175] a second execution unit, configured to determine that the capacity required for writing the data is less than or equal to the available storage capacity of the object, and write the to-be-written data into the target storage object in response to the data write request;

[0176] a first prompting unit configured to, in response to the data write request, determine that the capacity required for the data write is greater than the available storage capacity of the first storage device where the target storage object is located, control the first storage device to restore to a storage state before the data write request is executed, and output a first prompt message; or

[0177] a device capacity expansion unit configured to, in response to the data write request, determine that the capacity required for writing the data is greater than the available storage capacity of the first storage device where the target storage object is located, and increase the available storage capacity of the device according to a device capacity expansion rule so as to successfully write the data to be written into the target storage object;

[0178] The first prompt information is used to indicate that the current available storage capacity of the first storage device is insufficient, resulting in the target storage object failing to store the data to be written.

[0179] Optionally, the capacity adjustment execution unit may include:

[0180] an object expansion unit, configured to adjust the storage capacity upper limit of the target storage object according to the object expansion rule to increase the available storage capacity of the object, determine that the capacity required for writing the data is less than or equal to the increased available storage capacity of the object, and write the data to be written into the target storage object in response to the data write request; and / or

[0181] a compression processing unit, configured to, in response to a compression processing operation on the data to be written, compress the data to be written according to a compression processing method determined based on the data amount and compression properties of the data to be written, thereby obtaining compressed data to be written; wherein a data writing capacity required for the compressed data to be written is less than a data writing capacity required for the data to be written;

[0182] A compression write unit is used to update the data write request based on the compressed data to be written, and at least based on the data write capacity required for the compressed data to be written and the available storage capacity of the object, execute the updated data write request, and write the compressed data to be written into the target storage object.

[0183] In a possible implementation, the object expansion unit may include:

[0184] a first capacity expansion unit, configured to respond to a request for adjusting the storage capacity upper limit of the target storage object, allocate at least part of the available storage capacity of the first storage device where the target storage object is located to the target storage object, thereby increasing the storage capacity upper limit of the target storage object; or

[0185] a second capacity expansion unit, configured to, in response to a request to adjust the storage capacity upper limit of the target storage object, allocate at least a portion of available storage capacity from available storage capacity of a second storage device to the target storage object, thereby increasing the storage capacity upper limit of the target storage object; the second storage device being different from the first storage device;

[0186] The data storage index updating unit is used to update the data storage index of the target storage object so as to successfully write the data to be written into the target storage object and store it in the first storage device and / or the second storage device.

[0187] The data storage index can represent a mapping relationship between storage data and storage addresses in the target storage object, so as to respond to a data read request for the target storage object according to the mapping relationship and read the target data stored in the first storage device or the second storage device under the target storage object;

[0188] Based on the above analysis, the equipment expansion unit may include:

[0189] The third capacity expansion unit is configured to allocate at least a portion of the available storage capacity of at least one of the second storage devices to the first storage device, so as to increase the available storage capacity of the first storage device.

[0190] In some further embodiments proposed in the present application, the object attribute may include an available storage capacity of the object, where the available storage capacity of the object is determined based on an upper limit of the storage capacity of the target storage object. To obtain the upper limit of the storage capacity of the target resource object, the apparatus may include:

[0191] A configuration request obtaining module, configured to obtain a configuration request for a storage capacity upper limit of the target storage object;

[0192] a configuration information determination module, configured to parse the configuration request, determine attribute information of the configuration request object and storage capacity constraint conditions of the target storage object;

[0193] a configuration authority determination module, configured to detect that the attribute information of the configuration request object satisfies the storage capacity constraint condition, and determine that the corresponding configuration request object has the configuration authority for the storage capacity upper limit of the target storage object;

[0194] The configuration processing module is used to execute the configuration request to determine the upper limit of the storage capacity of the target storage object, or to adjust the upper limit of the storage capacity of the target storage object.

[0195] It should be noted that the various modules, units, etc. in the above-mentioned device embodiments can be stored in the memory as program modules, and the processor executes the above-mentioned program modules stored in the memory to implement the corresponding functions. Regarding the functions implemented by each program module and its combination, as well as the technical effects achieved, please refer to the description of the corresponding parts of the above-mentioned method embodiments, which will not be repeated in this embodiment.

[0196] The present application also provides a computer-reusable storage medium on which a computer program can be stored. The computer program can be called and loaded by a processor to implement the various steps of the processing method described in the above embodiment. The implementation process can refer to the description of the corresponding part of the above embodiment, and this embodiment will not be described in detail here.

[0197] The present application also proposes a processing system, which may include at least one computer device as described above, and various business devices, management devices, etc. that can be communicatively connected with the electronic device.

[0198] The product type and composition structure of the computer device can refer to the description of the corresponding part of the above embodiment, and this embodiment will not be described in detail here. The business device may include a computer device that provides business services to different enterprises, and the acquired business data can be sent to the electronic device as data to be written for storage; the management device can be used to implement the construction of storage objects in each electronic device, and the configuration and adjustment of the storage capacity upper limit of each storage object, as well as the allocation of storage paths for business data of each business device. This application does not limit the above-mentioned various management implementation methods, which can be determined according to the circumstances.

[0199] In actual applications, the above-mentioned business equipment may include various types of business terminals, business servers, etc.; the management equipment may be terminal equipment and / or management servers, etc. This application does not impose any restrictions on the constituent equipment of the above-mentioned processing system and the product types of each constituent equipment, etc., which can be determined based on data processing requirements. This application does not list them one by one here.

[0200] Finally, it should be noted that, in the above embodiments, unless the context clearly indicates an exception, the terms "a," "an," "an," and / or "the" do not specifically refer to the singular but also include the plural. Generally speaking, the terms "comprise" and "include" only indicate the inclusion of the steps and elements explicitly identified, and these steps and elements do not constitute an exclusive list. A method or device may also include other steps or elements. The phrase "comprises a..." does not preclude the presence of other identical elements in the process, method, product, or device that includes the elements.

[0201] In the description of the embodiments of this application, unless otherwise specified, " / " represents or. For example, A / B can represent A or B. "And / or" in this article is simply a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of this application, "plurality" means two or more than two.

[0202] Terms such as "first" and "second" used in this application are used for descriptive purposes only to distinguish one operation, unit, or module from another operation, unit, or module, and do not necessarily require or imply any actual relationship or order between these units, operations, or modules. They should not be understood as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, features specified as "first" or "second" may explicitly or implicitly include one or more of such features.

[0203] In addition, the various embodiments in this specification are described in a progressive or parallel manner, with each embodiment focusing on the differences from other embodiments. Similar or identical parts between the various embodiments can be referenced. For the devices, electronic devices, and systems disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, their descriptions are relatively simple, and relevant parts can be referenced in the method descriptions.

[0204] The above description of the disclosed embodiments is intended to enable one skilled in the art to implement or use the present application. Various modifications to these embodiments will be readily apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application is not limited to the embodiments shown herein, but is intended to conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A treatment method, comprising: Get data write request; Determining, based on the data write request, a target storage object into which the to-be-written data is to be written and data attributes of the to-be-written data; Obtaining object properties of the target storage object; executing the data write request based at least on the data attribute and the object attribute; The executing the data write request based at least on the data attribute and the object attribute includes: determining that the data attributes include data volume and compression attributes, and determining a compression processing method for the data to be written based on the compression attributes and the data volume; obtaining a data write capacity required for compressing the data to be written into the target storage object based on the data volume and the compression processing method; or determining that the object category included in the object attributes is a compressed package, and determining a data write capacity required for writing the data to be written into the target storage object based on the compression processing method corresponding to the compressed package and the data volume; Determining an object available storage capacity of the target storage object based on the object attributes; The data write request is executed based on at least the capacity required for the data write and the available storage capacity of the object.

2. The method according to claim 1, wherein executing the data write request based at least on the capacity required for data write and the available storage capacity of the object comprises: Determining a data writing rule for writing the to-be-written data into the target storage object based at least on the capacity required for writing the data and the available storage capacity of the object; The data writing request is executed according to the data writing rule.

3. The method according to claim 2, wherein executing the data write request based on at least the data attribute and the object attribute further comprises: Determining, based on the object attributes, the available storage capacity of the first storage device where the target storage object is located; The determining, based at least on the data writing required capacity and the available storage capacity of the object, a data writing rule for writing the to-be-written data into the target storage object includes: Based on the capacity required for data writing, the available storage capacity of the object and the available storage capacity of the device, a data writing rule for writing the to-be-written data into the target storage object is determined.

4. The method according to claim 1, wherein the process of determining the capacity required for data writing further comprises: Determining that the data attributes include data volume, and based on the data volume, determining a data writing capacity required for writing the to-be-written data into the target storage object.

5. The method according to claim 1, wherein executing the data write request based on at least the data attribute and the object attribute further comprises: determining that the capacity required for writing the data is greater than the available storage capacity of the target storage object, refusing to respond to the data write request, or responding to the data write request in accordance with a capacity adjustment rule to write the data to the target storage object; the capacity adjustment rule is used to adjust the available storage capacity of the object and / or the capacity required for writing the data; Determining that the capacity required for writing the data is less than or equal to the available storage capacity of the object and the available storage capacity of the first storage device where the target storage object is located, and responding to the data write request, writing the data to be written into the target storage object; Determining that the capacity required for writing the data is less than or equal to the available storage capacity of the object, and responding to the data write request, writing the to-be-written data into the target storage object; In the process of responding to the data write request, determining that the capacity required for the data write is greater than the available storage capacity of the first storage device where the target storage object is located, controlling the first storage device to restore to the storage state before the data write request is executed and outputting a first prompt message; or increasing the available storage capacity of the device according to a device expansion rule so as to successfully write the data to be written into the target storage object; The first prompt information is used to indicate that the current available storage capacity of the first storage device is insufficient, resulting in the target storage object failing to store the data to be written.

6. The method according to claim 5, wherein the step of writing the data to be written into the target storage object in response to the data write request according to the capacity adjustment rule comprises: Adjusting the storage capacity upper limit of the target storage object according to the object expansion rule to increase the available storage capacity of the object, determining that the capacity required for writing the data is less than or equal to the increased available storage capacity of the object, and writing the data to be written into the target storage object in response to the data write request; and / or In response to the compression processing operation on the data to be written, compressing the data to be written according to a compression processing mode determined based on the data volume and compression properties of the data to be written to obtain compressed data to be written; The data writing capacity required for the compressed data to be written is smaller than the data writing capacity required for the data to be written; The data write request is updated based on the compressed data to be written, and at least based on the data write capacity required for the compressed data to be written and the available storage capacity of the object, the updated data write request is executed to write the compressed data to be written into the target storage object.

7. The method according to claim 6, wherein adjusting the storage capacity upper limit of the target storage object according to the object expansion rule comprises: In response to a request to adjust the storage capacity upper limit of the target storage object, allocating at least a portion of available storage capacity from the available storage capacity of the first storage device where the target storage object is located to the target storage object, thereby increasing the storage capacity upper limit of the target storage object; or, In response to a request to adjust the storage capacity upper limit of the target storage object, allocating at least a portion of available storage capacity from the available storage capacity of the second storage device to the target storage object, thereby increasing the storage capacity upper limit of the target storage object; The second storage device is different from the first storage device; updating a data storage index of the target storage object so as to successfully write the data to be written into the target storage object and store it in the first storage device and / or the second storage device; wherein the data storage index can represent a mapping relationship between storage data and storage addresses in the target storage object, so as to respond to a data read request for the target storage object according to the mapping relationship and read the target data stored in the first storage device or the second storage device under the target storage object; Increasing the available storage capacity of the device according to the device expansion rule includes: At least a portion of the available storage capacity of at least one of the second storage devices is allocated to the first storage device to increase the available storage capacity of the first storage device.

8. The method according to any one of claims 1 to 7, wherein the object attribute comprises an available storage capacity of the object, and the available storage capacity of the object is determined based on an upper limit of the storage capacity of the target storage object; The method for obtaining the upper limit of the storage capacity includes: Obtaining a configuration request for a storage capacity upper limit of the target storage object; Parsing the configuration request to determine attribute information of the configuration request object and storage capacity constraint conditions of the target storage object; detecting that the attribute information of the configuration request object satisfies the storage capacity constraint condition, and determining that the corresponding configuration request object has the configuration authority for the storage capacity upper limit of the target storage object; The configuration request is executed to determine the upper limit of the storage capacity of the target storage object, or to adjust the upper limit of the storage capacity of the target storage object.

9. A processing device, comprising: A data writing request obtaining module is used to obtain a data writing request; an information determining module, configured to determine, based on the data write request, a target storage object into which the data to be written is to be written and data attributes of the data to be written; An object attribute acquisition module, configured to acquire the object attributes of the target storage object; a data writing request execution module, configured to execute the data writing request based at least on the data attributes and the object attributes; The data write request execution module is specifically used to: determining that the data attributes include data volume and compression attributes, and determining a compression processing method for the data to be written based on the compression attributes and the data volume; obtaining a data write capacity required for compressing the data to be written into the target storage object based on the data volume and the compression processing method; or determining that the object category included in the object attributes is a compressed package, and determining a data write capacity required for writing the data to be written into the target storage object based on the compression processing method corresponding to the compressed package and the data volume; Determining an object available storage capacity of the target storage object based on the object attributes; The data write request is executed based on at least the capacity required for the data write and the available storage capacity of the object.

10. A computer device, comprising: at least one communication module; at least one storage device, the storage device comprising at least one storage object for storing data to be written, and a program for implementing the processing method according to any one of claims 1 to 8; At least one processor, the processor being configured to load and execute the program stored in the storage device to implement the processing method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Data processing method and device, electronic device and computer readable storage medium

    CN110555075A