Data storage frequency processing method and device, electronic device and storage medium

A technology of data storage and storage frequency, which is applied in the field of communication and can solve problems such as the inability to guarantee storage time requirements

Active Publication Date: 2020-05-22
GUANGDONG BOZHILIN ROBOT CO LTD
8 Cites 3 Cited by

AI-Extracted Technical Summary

Problems solved by technology

This method effectively utilizes the memory resources in the mesh network, but it still cannot gua...
View more

Method used

A kind of data storage frequency processing method provided by the application obtains the total memory capacity of the target network by obtaining the available memory of each sub-node in the offline state, and the storage capacity of the data of each node of the target network in the preset duration In the case of not less than the total memory capacity, continue to judge whether the sampled data type is the specified data type, so that the storage frequency of the child nodes can be accurately adjusted according to the judgment result, and power consumption can be reduced. When it is determined that the sampled data type is the specified data type, the reference storage capacity corresponding to the sampled data type and the target storage frequency matching the reference storage capacity are obtained based on preset rules, and then the target storage frequency is used as the corresponding storage of the target network node Frequency, which realizes the balanced distribution of the storage frequency of the target network nodes in the offline state, ensures that the target network can meet the expected storage conditions, and improves the stability of the target network storage.
A kind of data storage frequency processing method provided by the application obtains the total memory capacity of the target network by obtaining the available memory of each sub-node under the offline state, and by comparing the size of the data storage capacity and the total memory capacity, it can be timely Estimate whether the memory storage capacity of the target network can meet the expected storage demand, so that when the expected demand is not met, the data storage frequency of each sub-node can be limited or adjusted in time, thereby improving the stability of the target network. In the case where the data storage capacity of each node of the target network is not less than the total memory capacity within the preset time period, the reference storage capacity corresponding to the sampled data type and the target storage frequency matching the reference storage capacity are obtained based on preset rules, and then Taking the target storage frequency as the corresponding storage frequency of the target network node reali...
View more

Abstract

The embodiment of the invention discloses a data storage frequency processing method and device, an electronic device and a storage medium. The method comprises the steps of obtaining storage featuredata corresponding to a target network node when it is detected that the target network node is in an offline state; obtaining the total memory capacity of the target network based on the available memory, and obtaining the data storage capacity determined based on the sampling data type and the current storage frequency within the preset duration; and if the data storage capacity is not less thanthe total memory capacity, obtaining a reference storage capacity and a target storage frequency matched with the reference storage capacity based on a preset rule, and taking the target storage frequency as the storage frequency of the target network node. According to the method, the balanced distribution of the storage frequency of the target network node in the offline state is realized, andthe target network is ensured to meet the expected storage condition.

Application Domain

Input/output to record carriersNetwork traffic/resource management +1

Technology Topic

EngineeringReal-time computing +4

Image

  • Data storage frequency processing method and device, electronic device and storage medium
  • Data storage frequency processing method and device, electronic device and storage medium
  • Data storage frequency processing method and device, electronic device and storage medium

Examples

  • Experimental program(1)

Example Embodiment

[0116] As an implementation, the following formula can be used:
[0117]
[0118] Obtain a reference storage capacity calculated based on the preset minimum storage frequency and priority of the sampling data type and a target storage frequency matching the reference storage capacity, where ω A , Ω B And ω C Is the priority, as well as Is the target storage frequency, as well as Respectively greater than the corresponding preset minimum storage frequency, s is the preset duration, and Y is the reference storage capacity.
[0119] As a way, the device 500 may further include a data type judgment module, which may be used to obtain the reference storage capacity calculated based on the preset minimum storage frequency and priority based on the sampling data type based on preset rules. And before the target storage frequency matching the reference storage capacity, it is determined whether the sampling data type is a designated data type.
[0120] Optionally, if it is a specified data type, execute the acquisition of the reference storage capacity based on a preset rule and the target storage frequency matching the reference storage capacity; if it is not a specified data type, cancel the execution of the acquisition based on the preset rule The reference storage capacity and the target storage frequency matching the reference storage capacity.
[0121] The data storage frequency processing device provided by the present application obtains storage characteristic data corresponding to the target network node by detecting that the target network node is offline; then obtains the total memory capacity of the target network based on the available memory, and obtains the preset The data storage capacity determined based on the sampled data type and the current storage frequency within the time period; then if the data storage capacity is not less than the total memory capacity, the reference storage capacity and the target storage frequency matching the reference storage capacity are obtained based on preset rules, and the target The storage frequency is used as the storage frequency of the target network node. The total memory capacity of the target network is obtained by obtaining the available memory of each sub-node in the offline state. When the data storage capacity of each node of the target network is not less than the total memory capacity within the preset time period, the data storage capacity of each node of the target network is obtained based on preset rules. The reference storage capacity corresponding to the sampled data type and the target storage frequency matching the reference storage capacity, and then the target storage frequency is used as the corresponding storage frequency of the target network node, achieving a balanced distribution of the storage frequency of the target network node in the offline state, Ensure that the target network can meet the expected storage conditions, and improve the stability of the target network storage.
[0122] It should be noted that the device embodiment in this application and the foregoing method embodiment correspond to each other, and the specific principles in the device embodiment can refer to the content in the foregoing method embodiment, and will not be repeated here.
[0123] The following will combine Picture 10 An electronic device provided in this application is described.
[0124] See Picture 10 Based on the foregoing data storage frequency processing method and device, an embodiment of the present application also provides another electronic device 100 that can execute the foregoing data storage frequency processing method. The electronic device 100 includes one or more (only one shown in the figure) processor 102 and a memory 104 coupled to each other. Wherein, the memory 104 stores a program that can execute the content in the foregoing embodiment, and the processor 102 can execute the program stored in the memory 104, and the memory 104 includes the device 400 described in the foregoing embodiment.
[0125] The processor 102 may include one or more processing cores. The processor 102 uses various interfaces and lines to connect various parts of the entire electronic device 100, and executes by running or executing instructions, programs, code sets, or instruction sets stored in the memory 104, and calling data stored in the memory 104. Various functions and processing data of the electronic device 100. Optionally, the processor 102 may use at least one of Digital Signal Processing (DSP), Field-Programmable Gate Array (FPGA), and Programmable Logic Array (PLA) Realize in the form of hardware. The processor 102 may be integrated with one or a combination of a central processing unit (Central Processing Unit, CPU), a video image processor (Graphics Processing Unit, GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is used for rendering and drawing of display content; the modem is used for processing wireless communication. It can be understood that the above-mentioned modem may not be integrated into the processor 102, but may be implemented by a communication chip alone.
[0126] The memory 104 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory). The memory 104 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 104 may include a storage program area and a storage data area. The storage program area may store instructions for implementing the operating system and instructions for implementing at least one function (such as touch function, sound playback function, video image playback function, etc.) ), instructions used to implement the foregoing method embodiments, etc. The data storage area can also store data (such as phone book, audio and video data, chat record data) created by the electronic device 100 during use.
[0127] Please refer to Picture 11 , Which shows a structural block diagram of a computer-readable storage medium provided by an embodiment of the present application. The computer readable medium 600 stores program code, and the program code can be invoked by a processor to execute the method described in the foregoing method embodiment.
[0128] The computer-readable storage medium 600 may be an electronic memory such as flash memory, EEPROM (Electrically Erasable Programmable Read Only Memory), EPROM, hard disk, or ROM. Optionally, the computer-readable storage medium 500 includes a non-transitory computer-readable storage medium. The computer-readable storage medium 600 has a storage space for the program code 610 for executing any method steps in the above methods. These program codes can be read from or written into one or more computer program products. The program code 610 may be compressed in an appropriate form, for example.
[0129] The data storage frequency processing method, device, electronic equipment, and storage medium provided by the present application obtain storage characteristic data corresponding to the target network node by detecting that the target network node is offline; and then obtain the target network information based on the available memory. Total memory capacity, and obtain the data storage capacity determined based on the sampled data type and current storage frequency within the preset time; then, if the data storage capacity is not less than the total memory capacity, obtain the reference storage capacity and the reference storage capacity based on the preset rules The matched target storage frequency, and the target storage frequency is used as the storage frequency of the target network node. The total memory capacity of the target network is obtained by obtaining the available memory of each sub-node in the offline state. When the data storage capacity of each node of the target network is not less than the total memory capacity within the preset time period, the data storage capacity of each node of the target network is obtained based on preset rules. The reference storage capacity corresponding to the sampled data type and the target storage frequency matching the reference storage capacity, and then the target storage frequency is used as the corresponding storage frequency of the target network node, achieving a balanced distribution of the storage frequency of the target network node in the offline state, Ensure that the target network can meet the expected storage conditions, and improve the stability of the target network storage.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products