CN117369720A - Data storage management method and device, electronic equipment and storage medium - Google Patents

Data storage management method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117369720A
CN117369720A CN202311173138.7A CN202311173138A CN117369720A CN 117369720 A CN117369720 A CN 117369720A CN 202311173138 A CN202311173138 A CN 202311173138A CN 117369720 A CN117369720 A CN 117369720A
Authority
CN
China
Prior art keywords
storage
user
data
period
space
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311173138.7A
Other languages
Chinese (zh)
Inventor
柳奕明
周俊
罗志坚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Dejiu Information Technology Co ltd
Original Assignee
Guangzhou Dejiu Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Dejiu Information Technology Co ltd filed Critical Guangzhou Dejiu Information Technology Co ltd
Priority to CN202311173138.7A priority Critical patent/CN117369720A/en
Publication of CN117369720A publication Critical patent/CN117369720A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/067Distributed or networked storage systems, e.g. storage area networks [SAN], network attached storage [NAS]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0644Management of space entities, e.g. partitions, extents, pools
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0655Vertical data movement, i.e. input-output transfer; data movement between one or more hosts and one or more storage devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a data storage management method, a device, electronic equipment and a storage medium, wherein the method comprises the steps of obtaining a user period identifier corresponding to a user account; determining a user storage period in which a user is currently positioned according to the user period identification; according to the user storage period, a storage scheme selection or a corresponding storage charging mode is provided, the storage cost of the user is calculated, access heat index and download heat index of each cloud storage space are obtained in the second storage period, and whether user data are migrated to the low-level cloud storage space is judged according to the access heat index and the download heat index. According to the method and the device, the storage period can be divided for the user, the user data can be reasonably migrated to the cloud storage space with corresponding read-write performance, the storage behavior of the user data is reasonably planned and managed, the storage space is fully utilized, the storage efficiency is improved, the storage cost of the user is reduced, and the requirement of the user for storing the data is met. The method and the device are widely applied to the technical field of data storage.

Description

Data storage management method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of data storage technologies, and in particular, to a data storage management method, a data storage management device, an electronic device, and a storage medium.
Background
At present, when a user stores user data in a cloud storage mode, the user data is stored in a space with high read-write performance, meanwhile, charging is carried out according to the preset storage capacity of the cloud storage, even if the user only uses a small part of the storage capacity, the user still needs to pay according to the preset storage capacity of the cloud storage, and the user data without access heat and value cannot be automatically cleaned, so that data accumulation is caused.
Therefore, the behavior of the user for storing data by using the cloud storage mode is quite unreasonable, the storage space cannot be reasonably utilized and planned, excessive storage space is occupied, the storage efficiency of the data is reduced, and meanwhile, the cloud storage mode can generate high storage cost, so that the storage cost of the user is greatly increased, and the requirement that the user wants to reasonably store the data is not met.
Disclosure of Invention
In order to solve at least one technical problem in the related art, the embodiment of the application provides a data storage management method, a device, electronic equipment and a storage medium, and aims to provide a reasonable cloud storage charging mode, improve the storage efficiency of user data and reduce the storage cost of users.
A first aspect of an embodiment of the present application proposes a data storage management method, including:
acquiring a user period identifier corresponding to a user account;
determining a user storage period in which a user is currently positioned according to the user period identification; the user storage period is a first storage period or a second storage period;
providing a storage scheme selection when the user storage period is the first storage period, and determining a first storage cost of the user data according to the selected storage scheme;
when the user storage period is the second storage period, a corresponding storage charging mode is acquired, and second storage cost of the user data is calculated according to the storage charging mode;
when the user storage period is the second storage period, acquiring an access heat index and a downloading heat index of each cloud storage space, and judging whether to migrate user data to a low-level cloud storage space according to the access heat index and the downloading heat index; the access heat index is access heat data of user data in the cloud storage space; the downloading heat index is downloading heat data of the cloud storage space; the low-level cloud storage space is a cloud storage space with lower read-write performance level compared with the cloud storage space where the user data are currently located.
In some embodiments, the method further comprises:
providing a plurality of value-added storage services; the value-added storage service at least comprises data offline downloading, data intelligent quality inspection, data automatic transfer and data format conversion;
responding to the opening of each value-added storage service, and providing a storage service function corresponding to each value-added storage service;
when the storage time length of the user data exceeds the pre-storage time length of the second storage period, automatically deleting the user data in each cloud storage space corresponding to the user account; the pre-storage time length is a storage time length determined according to the second storage cost;
and when the user storage period is the second storage period, automatically compressing the user data according to the storage duration of the user data so as to reduce the storage size occupied by the user data.
In some embodiments, the storage scheme includes a first storage scheme and a second storage scheme, and when the user storage period is the first storage period, providing a storage scheme selection, and determining a first storage cost of the user data according to the selected storage scheme specifically includes:
when the user storage period is a first storage period, providing a limited cloud storage space, and storing data in a data first-in first-out mode;
and when the size of the user data to be stored exceeds the size of the residual space of the limited cloud storage space, selecting the first storage scheme or the second storage scheme, adjusting the size of the cloud storage space, and calculating the first storage cost.
In some embodiments, when the user storage period is the second storage period, the step of obtaining a corresponding storage charging mode, and calculating the second storage cost of the user data according to the storage charging mode specifically includes:
acquiring the storage time length and the storage size of user data in each cloud storage space;
acquiring storage duration unit price and storage size unit price corresponding to each cloud storage space;
calculating the cost of the storage time according to the storage time length and the unit price of the storage time length;
calculating the cost of the storage space according to the storage size and the unit price of the storage size;
and determining the second storage cost according to the storage time cost and the storage space cost.
In some embodiments, the step of determining the second storage cost based on the storage time cost and the storage space cost is specifically represented by the following formula:
formula 1: a=a c *a s
Formula 2: b=b c *b s
Formula 3: s=a c *(A+B);
Wherein A is the cost of storage time, a c To store the time length, a s For the unit price of the storage duration, B is the cost of the storage space, B c To store size, b s For storage size unit price, S is the second storage cost.
In some embodiments, when the size of the user data to be stored exceeds the size of the remaining space of the limited cloud storage space, selecting the first storage scheme or the second storage scheme, adjusting the size of the cloud storage space, and calculating the first storage cost specifically includes:
when the first storage scheme is selected, a space expansion charging mode for providing a plurality of cloud storage spaces is selected, and the first storage cost is determined according to the selected space expansion charging scheme; the space expansion charging mode comprises the size of the expanded storage space and the corresponding space expansion cost;
and when the second storage scheme is selected, providing a cloud storage space with unlimited size, acquiring a flow downloading unit price in a manner of charging according to the downloading flow, and calculating the first storage cost according to the flow downloading unit price and the size of the user data to be stored.
In some embodiments, when the user storage period is the second storage period, the step of obtaining an access heat index and a download heat index of each cloud storage space, and determining whether to migrate the user data to the low-level cloud storage space according to the access heat index and the download heat index includes:
acquiring an access heat threshold and a download heat threshold of each cloud storage space; the access heat threshold is an access heat limit value of the cloud storage space; the downloading heat threshold is a downloading heat limit value of the cloud storage space;
when the access heat index is lower than the access heat threshold, migrating user data in a cloud storage space corresponding to the access heat index to the low-level cloud storage space to reduce the second storage cost;
and when the downloading heat index is lower than the downloading heat threshold, migrating the user data in the cloud storage space corresponding to the downloading heat index to the low-level cloud storage space so as to reduce the second storage cost.
A second aspect of an embodiment of the present application proposes a data storage management device, including:
the first module is used for acquiring a user period identifier corresponding to the user account;
the second module is used for determining the current user storage period of the user according to the user period identification; the user storage period is a first storage period or a second storage period;
a third module, configured to provide a storage scheme selection when the user storage period is the first storage period, and determine a first storage cost of user data according to the selected storage scheme;
a fourth module, configured to obtain a corresponding storage charging manner when the user storage period is the second storage period, and calculate a second storage cost of the user data according to the storage charging manner;
a fifth module, configured to obtain an access heat index and a download heat index of each cloud storage space when the user storage period is the second storage period, and determine whether to migrate user data to a low-level cloud storage space according to the access heat index and the download heat index; the access heat index is access heat data of user data in the cloud storage space; the downloading heat index is downloading heat data of the cloud storage space; the low-level cloud storage space is a cloud storage space with lower read-write performance level compared with the cloud storage space where the user data are currently located.
A third aspect of the embodiments of the present application proposes an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the data storage management method according to the first aspect when executing the computer program.
A fourth aspect of the embodiments of the present application proposes a computer readable storage medium comprising a computer program which, when executed by a processor, implements the data storage management method of the first aspect described above.
According to the data storage management method, the device, the electronic equipment and the storage medium, through determining the current user storage period of a user, according to different user storage periods, a storage scheme selection or a corresponding storage charging mode is provided, storage cost of the user is calculated, and in the second storage period, whether user data are migrated to a low-level cloud storage space is judged according to access heat indexes and downloading heat indexes of each cloud storage space. According to the method and the device, the storage period can be divided for the user, the user data can be reasonably migrated to the cloud storage space with corresponding read-write performance, the storage behavior of the user data is reasonably planned and managed, the storage space is fully utilized, the storage efficiency is improved, meanwhile, multiple storage alternative schemes of the user can be provided, reasonable charging is carried out according to the storage scheme selected by the user, therefore, the storage cost of the user is reduced, and the requirement of the user for storing the data is met.
Drawings
FIG. 1 is a flow chart of a method for data storage management provided in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a data storage management device according to an embodiment of the present application;
fig. 3 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
It should be noted that although functional block division is performed in a device diagram and a logic sequence is shown in a flowchart, in some cases, the steps shown or described may be performed in a different order than the block division in the device, or in the flowchart. The terms first, second and the like in the description and in the claims and in the above-described figures, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of the present application only and is not intended to be limiting of the present application.
Referring to fig. 1, fig. 1 is an optional flowchart of a data storage management method according to an embodiment of the present application, where the method may include, but is not limited to, steps S101 to S105:
step S101, a user period identifier corresponding to a user account is obtained;
step S102, determining a user storage period in which a user is currently located according to the user period identification;
step S103, when the user storage period is the first storage period, providing storage scheme selection, and determining the first storage cost of the user data according to the selected storage scheme;
step S104, when the user storage period is the second storage period, a corresponding storage charging mode is obtained, and the second storage cost of the user data is calculated according to the storage charging mode;
step S105, when the user storage period is the second storage period, the access heat index and the download heat index of each cloud storage space are obtained, and whether to migrate the user data to the low-level cloud storage space is judged according to the access heat index and the download heat index.
In some embodiments, the data storage management method further includes steps S106 to S109:
step S106, providing a plurality of value-added storage services;
step S107, responding to the opening of each value added storage service, and providing a storage service function corresponding to each value added storage service;
step S108, when the storage time of the user data exceeds the pre-storage time of the second storage period, automatically deleting the user data in each cloud storage space corresponding to the user account;
step S109, when the user storage period is the second storage period, the user data is automatically compressed according to the storage duration of the user data to reduce the storage size occupied by the user data.
In step S101 of some embodiments, the user period identifier is generated according to the user storage period and the user account, and may reflect the user storage period corresponding to the user account.
In step S102 of some embodiments, the storage period of the user is a first storage period or a second storage period, and the method divides the storage process of the user into the first storage period and the second storage period, and optionally, the first storage period is a free storage period and the second storage period is a paid storage period.
And when the storage period is paid, the cloud storage space is paid for the user, namely, the user can use the storage service only by paying a certain storage fee.
In some embodiments, step S103 may include, but is not limited to including, step S201 to step S202:
step S201, when the user storage period is the first storage period, providing a limited cloud storage space, and storing data in a data first-in first-out mode;
in step S202, when the size of the user data to be stored exceeds the size of the remaining space of the limited cloud storage space, a first storage scheme or a second storage scheme is selected, the size of the cloud storage space is adjusted, and a first storage cost is calculated.
In steps S201 to S202 of some embodiments, specifically, when in a free storage period (the first storage period), a cloud storage space with a limited size is provided for storing data for a user, during this period, the user may freely select to download files for transfer or automatically transfer data for the user by the system, when the size of the user data to be stored exceeds the size of the remaining space of the cloud storage space with the limited size, the previously stored data is eliminated in a data first-in-first-out manner to make enough space for storing the user data to be stored, or the provided storage scheme is selected to store data so as to avoid the need to eliminate the previously stored data in a data first-out manner.
The storage scheme comprises a first storage scheme and a second storage scheme, wherein the first storage scheme expands the storage space for payment, and the second storage scheme stores data in a manner of charging according to the downloading flow for providing the storage space with unlimited size.
In some embodiments, step S202 may include, but is not limited to including, step S301 to step S302:
step S301, when a first storage scheme is selected, a space expansion charging mode for providing a plurality of cloud storage spaces is selected, and first storage cost is determined according to the selected space expansion charging scheme;
in step S302, when the second storage scheme is selected, a cloud storage space with unlimited size is provided, a traffic download unit price is obtained by charging according to the download traffic, and a first storage cost is calculated according to the traffic download unit price and the size of the user data to be stored.
In step S301 of some embodiments, the space expansion charging mode includes an expanded storage space size and a corresponding space expansion fee, and illustratively, a first space expansion charging mode, a second space expansion charging mode and a third space expansion charging mode may be provided, where the first space expansion charging mode is 100GB expansion, the fee a element, the second space expansion charging mode is 500GB expansion, the fee B element, the third space expansion charging mode is 1024GB expansion, and the charging C element may be freely provided with various space expansion charging modes according to actual service requirements, which are only illustrative and are not limited thereto.
In step S302 of some embodiments, optionally, if the flow downloading unit price is set to x yuan/GB, 1GB data is downloaded, the cost is x yuan, or the flow downloading unit price is set to y yuan/M, 1M data is downloaded, the cost is y yuan, and the like, the value of x or y can be set by oneself according to the practical application, and the value of x is not limited.
In some embodiments, step S104 may include, but is not limited to including, step S401 to step S405:
step S401, obtaining the storage time length and the storage size of user data in each cloud storage space;
step S402, acquiring storage duration unit price and storage size unit price corresponding to each cloud storage space;
step S403, calculating the cost of the storage time according to the storage time length and the unit price of the storage time length;
step S404, calculating the cost of the storage space according to the storage size and the unit price of the storage size;
step S405, determining a second storage cost according to the storage time cost and the storage space cost.
In steps S401 to S405 of some embodiments, the calculation of the storage time cost, the storage space cost, and the second storage cost is specifically expressed by the following formula:
formula 1: a=a c *a s
Formula 2: b=b c *b s
Formula 3: s=a c *(A+B);
Wherein A is the cost of storage time, a c To store the time length, a s For the unit price of the storage duration, B is the cost of the storage space, B c To store size, b s For storage size unit price, S is the second storage cost.
In step S105 of some embodiments, the access heat index is access heat data of user data in the cloud storage space; the downloading heat index is the downloading heat data of the cloud storage space; the low-level cloud storage space is a cloud storage space with lower read-write performance level compared with the cloud storage space where the user data are currently located.
In some embodiments, step S105 may include, but is not limited to including, step S501 to step S503:
step S501, an access heat threshold and a download heat threshold of each cloud storage space are obtained;
step S502, when the access heat index is lower than the access heat threshold, migrating the user data in the cloud storage space corresponding to the access heat index to the low-level cloud storage space to reduce the second storage cost;
in step S503, when the download heat index is lower than the download heat threshold, the user data in the cloud storage space corresponding to the download heat index is migrated to the low-level cloud storage space to reduce the second storage cost.
In steps S501 to S503 of some embodiments, the access heat threshold is an access heat limit of the cloud storage space; the downloading heat threshold is the downloading heat limit value of the cloud storage space.
Specifically, the access times and access frequencies of user data in a cloud storage space affect the access heat index of the cloud storage space, and when the access times and frequencies of the user data in the cloud storage space are relatively low in a period of time, correspondingly, the access heat index of the cloud storage space is reduced, namely, the requirement of a user for accessing the user data in the cloud storage space is reduced, and when the access heat index is lower than a preset access heat threshold corresponding to the cloud storage space, the user data in the cloud storage space is migrated to another low-level cloud storage space.
The number of times, frequency and data size of downloading user data stored in a cloud storage space can influence the downloading heat index of the cloud storage space, when the downloading heat index of the cloud storage space is reduced in a period of time, namely the requirement of user storage is reduced, and when the downloading heat index is lower than a preset downloading heat threshold corresponding to the cloud storage space, the user data in the cloud storage space is migrated to another low-level cloud storage space.
In step S106 and step S107 of some embodiments, the value added storage service includes at least offline data downloading, intelligent quality inspection of data, automatic data transfer and data format conversion, and the above-mentioned multiple value added storage services are provided in both the first storage period and the second storage period.
For example, since the user data may be migrated to the cloud storage space with a lower read-write level after a certain period of time, the bandwidth provided will be correspondingly reduced, so that when the user needs to download, the value-added storage service of offline data downloading is provided for the user, correspondingly, when the user opens the offline data downloading service, the offline data downloading storage service function is started in response to the offline data downloading service, and the user data to be downloaded is temporarily migrated to the cloud storage space with a higher read-write performance level and a higher bandwidth during the offline downloading period, thereby improving the downloading speed and connection stability of the user data.
When the time for storing a certain user data is longer, the user can open a value-added storage service for automatically restoring the data, for example, the user contacts a customer through a calling platform to pay for repayment in the collection industry, a record is required, and a call content examination is required to be carried out in a period of time, and the record data is required to be stored for D days for examination, the data automatic restoring service can be opened, the data automatic restoring function is started, the record data is automatically stored until D days, and therefore, even if the storage time of the record data exceeds the pre-storage time of the second storage period but does not exceed the D days, the record data cannot be automatically deleted.
In step S108 of some embodiments, the pre-storage duration is a storage duration determined according to the second storage cost, when the storage duration of the user data exceeds the pre-storage duration of the second storage period, that is, when the user does not pay the storage cost any more to prolong the storage duration, the user data in each cloud storage space corresponding to the user account is automatically deleted, and the charging for the files is stopped, at this time, the user data after the automatic deletion cannot be recovered for the user, but the user data can be temporarily migrated to another cloud storage space with lower cost by the background, and after a preset time, which may be half month or 1 month, the user data is formally deleted in the background, so that the user data is prevented from being accidentally deleted due to errors, thereby providing a margin for recovering the user data.
In step S109 of some embodiments, according to the storage duration of the user data, the user data is automatically compressed to reduce the storage size occupied by the user data, optionally, the user data is automatically compressed to reduce the storage cost based on the day dimension or the month dimension, for example, the user data in the cloud storage space may be automatically compressed once every 10 days or 1 month, etc.
Referring to fig. 2, fig. 2 is an optional structural schematic diagram of a data storage management device according to an embodiment of the present application, where the device includes:
the first module is used for acquiring a user period identifier corresponding to the user account;
the second module is used for determining the current user storage period of the user according to the user period identification; the user storage period is a first storage period or a second storage period;
a third module for providing a storage scheme selection when the user storage period is the first storage period, and determining a first storage cost of the user data according to the selected storage scheme;
a fourth module, configured to obtain a corresponding storage charging mode when the user storage period is a second storage period, and calculate a second storage cost of the user data according to the storage charging mode;
a fifth module, configured to obtain an access heat index and a download heat index of each cloud storage space when the user storage period is the second storage period, and determine whether to migrate the user data to the low-level cloud storage space according to the access heat index and the download heat index; the access heat index is access heat data of user data in the cloud storage space; the downloading heat index is the downloading heat data of the cloud storage space; the low-level cloud storage space is a cloud storage space with lower read-write performance level compared with the cloud storage space where the user data are currently located.
The specific implementation of the data storage management device is basically the same as the specific embodiment of the data storage management method, and will not be described herein.
The embodiment of the application also provides electronic equipment, which comprises a memory and a processor, wherein the memory stores a computer program, and the processor realizes the data storage management method when executing the computer program. The electronic equipment can be any intelligent terminal including a tablet personal computer, a vehicle-mounted computer and the like.
Referring to fig. 3, fig. 3 illustrates a hardware structure of an electronic device according to another embodiment, where the electronic device includes:
the processor 901 may be implemented by a general purpose CPU (central processing unit), a microprocessor, an application specific integrated circuit (ApplicationSpecificIntegratedCircuit, ASIC), or one or more integrated circuits, etc. for executing related programs to implement the technical solutions provided by the embodiments of the present application;
the memory 902 may be implemented in the form of read-only memory (ReadOnlyMemory, ROM), static storage, dynamic storage, or random access memory (RandomAccessMemory, RAM). The memory 902 may store an operating system and other application programs, and when the technical solutions provided in the embodiments of the present application are implemented by software or firmware, relevant program codes are stored in the memory 902, and the processor 901 invokes a data storage management method for executing the embodiments of the present application;
an input/output interface 903 for inputting and outputting information;
the communication interface 904 is configured to implement communication interaction between the device and other devices, and may implement communication in a wired manner (e.g. USB, network cable, etc.), or may implement communication in a wireless manner (e.g. mobile network, WIFI, bluetooth, etc.);
a bus 905 that transfers information between the various components of the device (e.g., the processor 901, the memory 902, the input/output interface 903, and the communication interface 904);
wherein the processor 901, the memory 902, the input/output interface 903 and the communication interface 904 are communicatively coupled to each other within the device via a bus 905.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the data storage management method when being executed by a processor.
The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory remotely located relative to the processor, the remote memory being connectable to the processor through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
According to the data storage management method, the device, the electronic equipment and the storage medium, through determining the current user storage period of a user, according to different user storage periods, a storage scheme selection or a corresponding storage charging mode is provided, storage cost of the user is calculated, and in the second storage period, whether user data are migrated to a low-level cloud storage space is judged according to access heat indexes and downloading heat indexes of each cloud storage space. According to the method and the device, the storage period can be divided for the user, the user data can be reasonably migrated to the cloud storage space with corresponding read-write performance, the storage behavior of the user data is reasonably planned and managed, the storage space is fully utilized, the storage efficiency is improved, meanwhile, multiple storage alternative schemes of the user can be provided, reasonable charging is carried out according to the storage scheme selected by the user, therefore, the storage cost of the user is reduced, and the requirement of the user for storing the data is met.
The embodiments described in the embodiments of the present application are for more clearly describing the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided by the embodiments of the present application, and as those skilled in the art can know that, with the evolution of technology and the appearance of new application scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.
It will be appreciated by those skilled in the art that the technical solutions shown in the figures do not constitute limitations of the embodiments of the present application, and may include more or fewer steps than shown, or may combine certain steps, or different steps.
Preferred embodiments of the present application are described above with reference to the accompanying drawings, and thus do not limit the scope of the claims of the embodiments of the present application. Any modifications, equivalent substitutions and improvements made by those skilled in the art without departing from the scope and spirit of the embodiments of the present application shall fall within the scope of the claims of the embodiments of the present application.

Claims (10)

1. A data storage management method, comprising:
acquiring a user period identifier corresponding to a user account;
determining a user storage period in which a user is currently positioned according to the user period identification; the user storage period is a first storage period or a second storage period;
providing a storage scheme selection when the user storage period is the first storage period, and determining a first storage cost of the user data according to the selected storage scheme;
when the user storage period is the second storage period, a corresponding storage charging mode is acquired, and second storage cost of the user data is calculated according to the storage charging mode;
when the user storage period is the second storage period, acquiring an access heat index and a downloading heat index of each cloud storage space, and judging whether to migrate user data to a low-level cloud storage space according to the access heat index and the downloading heat index; the access heat index is access heat data of user data in the cloud storage space; the downloading heat index is downloading heat data of the cloud storage space; the low-level cloud storage space is a cloud storage space with lower read-write performance level compared with the cloud storage space where the user data are currently located.
2. The data storage management method of claim 1, wherein the method further comprises:
providing a plurality of value-added storage services; the value-added storage service at least comprises data offline downloading, data intelligent quality inspection, data automatic transfer and data format conversion;
responding to the opening of each value-added storage service, and providing a storage service function corresponding to each value-added storage service;
when the storage time length of the user data exceeds the pre-storage time length of the second storage period, automatically deleting the user data in each cloud storage space corresponding to the user account; the pre-storage time length is a storage time length determined according to the second storage cost;
and when the user storage period is the second storage period, automatically compressing the user data according to the storage duration of the user data so as to reduce the storage size occupied by the user data.
3. The data storage management method according to claim 1, wherein the storage scheme includes a first storage scheme and a second storage scheme, the step of providing a storage scheme selection when the user storage period is the first storage period, and determining a first storage cost of the user data according to the selected storage scheme specifically includes:
when the user storage period is a first storage period, providing a limited cloud storage space, and storing data in a data first-in first-out mode;
and when the size of the user data to be stored exceeds the size of the residual space of the limited cloud storage space, selecting the first storage scheme or the second storage scheme, adjusting the size of the cloud storage space, and calculating the first storage cost.
4. The method for managing data storage according to claim 1, wherein when the user storage period is the second storage period, a corresponding storage charging mode is acquired, and the step of calculating the second storage cost of the user data according to the storage charging mode specifically includes:
acquiring the storage time length and the storage size of user data in each cloud storage space;
acquiring storage duration unit price and storage size unit price corresponding to each cloud storage space;
calculating the cost of the storage time according to the storage time length and the unit price of the storage time length;
calculating the cost of the storage space according to the storage size and the unit price of the storage size;
and determining the second storage cost according to the storage time cost and the storage space cost.
5. The data storage management method according to claim 4, wherein said step of determining said second storage cost based on said storage time cost and said storage space cost is specifically represented by the following formula:
formula 1: a=a c *a s
Formula 2: b=b c *b s
Formula 3: s=a c *(A+B);
Wherein A is the cost of storage time, a c To store the time length, a s For the unit price of the storage duration, B is the cost of the storage space, B c To store size, b s For storage size unit price, S is the second storage cost.
6. The data storage management method according to claim 3, wherein when the size of the user data to be stored exceeds the remaining space size of the limited cloud storage space, the first storage scheme or the second storage scheme is selected, the size of the cloud storage space is adjusted, and the first storage cost is calculated, comprising:
when the first storage scheme is selected, a space expansion charging mode for providing a plurality of cloud storage spaces is selected, and the first storage cost is determined according to the selected space expansion charging scheme; the space expansion charging mode comprises the size of the expanded storage space and the corresponding space expansion cost;
and when the second storage scheme is selected, providing a cloud storage space with unlimited size, acquiring a flow downloading unit price in a manner of charging according to the downloading flow, and calculating the first storage cost according to the flow downloading unit price and the size of the user data to be stored.
7. The method for managing data storage according to claim 4, wherein when the user storage period is the second storage period, the step of acquiring an access heat index and a download heat index of each cloud storage space, and determining whether to migrate the user data to the low-level cloud storage space based on the access heat index and the download heat index,
comprising the following steps:
acquiring an access heat threshold and a download heat threshold of each cloud storage space; the access heat threshold is an access heat limit value of the cloud storage space; the downloading heat threshold is a downloading heat limit value of the cloud storage space;
when the access heat index is lower than the access heat threshold, migrating user data in a cloud storage space corresponding to the access heat index to the low-level cloud storage space to reduce the second storage cost;
and when the downloading heat index is lower than the downloading heat threshold, migrating the user data in the cloud storage space corresponding to the downloading heat index to the low-level cloud storage space so as to reduce the second storage cost.
8. A data storage management apparatus, comprising:
the first module is used for acquiring a user period identifier corresponding to the user account;
the second module is used for determining the current user storage period of the user according to the user period identification; the user storage period is a first storage period or a second storage period;
a third module, configured to provide a storage scheme selection when the user storage period is the first storage period, and determine a first storage cost of user data according to the selected storage scheme;
a fourth module, configured to obtain a corresponding storage charging manner when the user storage period is the second storage period, and calculate a second storage cost of the user data according to the storage charging manner;
a fifth module, configured to obtain an access heat index and a download heat index of each cloud storage space when the user storage period is the second storage period, and determine whether to migrate user data to a low-level cloud storage space according to the access heat index and the download heat index; the access heat index is access heat data of user data in the cloud storage space; the downloading heat index is downloading heat data of the cloud storage space; the low-level cloud storage space is a cloud storage space with lower read-write performance level compared with the cloud storage space where the user data are currently located.
9. An electronic device comprising a memory storing a computer program and a processor implementing the data storage management method of any one of claims 1 to 7 when the computer program is executed by the processor.
10. A computer readable storage medium comprising a computer program, characterized in that the computer program, when executed by a processor, implements the data storage management method of any one of claims 1 to 7.
CN202311173138.7A 2023-09-11 2023-09-11 Data storage management method and device, electronic equipment and storage medium Pending CN117369720A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311173138.7A CN117369720A (en) 2023-09-11 2023-09-11 Data storage management method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311173138.7A CN117369720A (en) 2023-09-11 2023-09-11 Data storage management method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117369720A true CN117369720A (en) 2024-01-09

Family

ID=89404890

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311173138.7A Pending CN117369720A (en) 2023-09-11 2023-09-11 Data storage management method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117369720A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120010397A (en) * 2010-07-26 2012-02-03 에스케이 텔레콤주식회사 Cloud storage service apparatus and method
CN103533043A (en) * 2013-10-11 2014-01-22 北京邮电大学 Charging method of cloud storage service based on REST (representational state transfer)
WO2016165441A1 (en) * 2015-09-06 2016-10-20 中兴通讯股份有限公司 Migration policy adjustment method, capacity-change suggestion method and device
CN111192070A (en) * 2018-11-14 2020-05-22 北京京东尚科信息技术有限公司 Storage service metering method and system, computer system and readable storage medium
CN112019585A (en) * 2019-05-31 2020-12-01 北京车和家信息技术有限公司 Cloud storage management method and system, electronic device and computer readable storage medium
CN112825023A (en) * 2019-11-20 2021-05-21 上海商汤智能科技有限公司 Cluster resource management method and device, electronic equipment and storage medium
CN112965957A (en) * 2021-03-22 2021-06-15 广州汇量信息科技有限公司 Data migration method, device, equipment and storage medium
CN113067709A (en) * 2021-03-11 2021-07-02 北京市商汤科技开发有限公司 Charging method, device and equipment based on cloud service and readable storage medium
CN115953209A (en) * 2023-03-07 2023-04-11 阿里巴巴(中国)有限公司 Data storage charging method and device and electronic equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20120010397A (en) * 2010-07-26 2012-02-03 에스케이 텔레콤주식회사 Cloud storage service apparatus and method
CN103533043A (en) * 2013-10-11 2014-01-22 北京邮电大学 Charging method of cloud storage service based on REST (representational state transfer)
WO2016165441A1 (en) * 2015-09-06 2016-10-20 中兴通讯股份有限公司 Migration policy adjustment method, capacity-change suggestion method and device
CN111192070A (en) * 2018-11-14 2020-05-22 北京京东尚科信息技术有限公司 Storage service metering method and system, computer system and readable storage medium
CN112019585A (en) * 2019-05-31 2020-12-01 北京车和家信息技术有限公司 Cloud storage management method and system, electronic device and computer readable storage medium
CN112825023A (en) * 2019-11-20 2021-05-21 上海商汤智能科技有限公司 Cluster resource management method and device, electronic equipment and storage medium
CN113067709A (en) * 2021-03-11 2021-07-02 北京市商汤科技开发有限公司 Charging method, device and equipment based on cloud service and readable storage medium
CN112965957A (en) * 2021-03-22 2021-06-15 广州汇量信息科技有限公司 Data migration method, device, equipment and storage medium
CN115953209A (en) * 2023-03-07 2023-04-11 阿里巴巴(中国)有限公司 Data storage charging method and device and electronic equipment

Similar Documents

Publication Publication Date Title
KR100914895B1 (en) System for selecting data from a data store based on utility of the data
KR101745456B1 (en) Ecu for transmitting large data in hil test environment, system including the same and method thereof
US7240104B2 (en) Method and apparatus for managing resources stored on a communication device
CN108063818B (en) Data downloading method, device, terminal and computer readable storage medium
CN105279163A (en) Buffer memory data update and storage method and system
JP6185332B2 (en) Computer system, data output method, computer program
CN103544020A (en) Method and mobile terminal for displaying application software icons
JP2003316591A (en) Communication equipment, communication system, plug-in module control method, program to be executed by computer and computer readable recording medium with the same program
CN103067479A (en) Network disk synchronized method and system based on file coldness and hotness
CN109684270B (en) Database archiving method, device, system, equipment and readable storage medium
CN111061752A (en) Data processing method and device and electronic equipment
CN104167216A (en) Audio frequency file sharing method, device and sound box
CN111352957A (en) Remote dictionary service optimization method and related equipment
CN104424125A (en) Clearing method for mobile terminal cache, device and mobile terminal
CN104424109B (en) Information processing method and electronic equipment
CN117369720A (en) Data storage management method and device, electronic equipment and storage medium
CN108205559A (en) A kind of data managing method and its equipment
CN111209159A (en) Information processing method, device, equipment and storage medium
CN103650417A (en) Method and system for managing voice mails in a universal plug and play network environment
CN110019372A (en) Data monitoring method, device, server and storage medium
CN114089912A (en) Data processing method and device based on message middleware and storage medium
CN107277104A (en) The processing method and wireless router of a kind of web page access data
CN112711384A (en) Data storage method and device based on multiple storage devices
CN108762985A (en) Data reconstruction method and Related product
CN104869171A (en) Information processing method and smart home equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination