A method and system for intelligent resource adjustment based on network big data
Through intelligent resource adjustment methods, idle data storage terminals are used for classified storage and scheduling, which solves the problem of low data transmission efficiency and congestion in data center operation and maintenance, and achieves effective utilization of resources and the correctness and neatness of data.
Patent Information
- Application Number
- CN202011250685.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-11
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2040-11-11
AI Technical Summary
The operation and maintenance data storage and transmission efficiency of traditional data centers is low, resulting in low resource utilization and data congestion problems.
Using an intelligent resource adjustment method based on network big data, by obtaining idle data storage terminals, classified storage and scheduling are performed according to data attributes and predetermined conditions to ensure timely reception and transmission of data, and temporary storage and repair when the conditions are not met.
It achieves timely reception and transmission of data, avoids data congestion, improves resource utilization, and ensures the correctness and neatness of data through classified storage and repair.
Smart Images

Figure CN112363835B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Internet data centers, and in particular to an intelligent resource adjustment method and system based on network big data. Background Art
[0002] In recent years, with the rapid development of China's economy, the network equipment market has continued to expand, stimulating the rapid development of the entire Internet industry. Internet Data Center (IDC) is a standardized telecommunications professional-level computer room environment established by telecommunications departments using existing Internet communication lines and bandwidth resources to provide enterprises and governments with a full range of services such as server hosting, leasing, and related value-added services. In the era of rapid network development, the increasing high requirements of website systems for bandwidth, management and maintenance pose a severe challenge to many companies. Therefore, companies began to hand over everything related to website hosting services to IDCs that specialize in providing network services, and focus their energy on businesses that enhance core competitiveness. It can be seen that large, professional IDC computer rooms will be more popular with companies.
[0003] The normal transmission of data determines the normal operation of the data center. Correspondingly, the efficiency of resource adjustment in the data center plays an important and decisive role. Once data cannot be transmitted normally, such as data congestion or data blockage, it will inevitably affect the normal operation of the data center, and the economic impact cannot be ignored. Therefore, for the entire data center, the operation and maintenance of network equipment, data storage and transmission have become the main issues.
[0004] At present, the storage and transmission of operation and maintenance data in traditional data centers have not been optimized, resulting in low resource utilization and congestion during data transmission. Therefore, it is necessary to provide a new technical solution to solve this technical problem. Summary of the invention
[0005] The technical problem to be solved by the embodiments of the present invention is to provide an intelligent resource adjustment method and system based on network big data, so that resources can be effectively utilized, which not only ensures the normal storage of data, but also solves the problem of congestion during data transmission.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides an intelligent resource adjustment method based on network big data, and the method comprises the following steps:
[0007] Obtaining data storage ends in an idle state among all preset data storage ends;
[0008] After receiving the data transmission instruction, if it is detected that the transmission data meets the predetermined conditions, the transmission data is first stored in the data storage end in the idle state, and then output in sequence according to the predetermined scheduling rules.
[0009] Wherein, the method further comprises:
[0010] When it is detected that the transmitted data does not meet the predetermined condition, the transmitted data is stored in a preset temporary storage area.
[0011] Wherein, the method further comprises:
[0012] After receiving the data adjustment instruction and / or the data comparison instruction, the transmission data stored in the preset temporary storage area is repaired until the repaired transmission data meets the predetermined condition, and then output in sequence according to the predetermined scheduling rule.
[0013] The specific steps of detecting whether the transmitted data meets the predetermined conditions include:
[0014] Acquire relevant attributes of the transmitted data; wherein the relevant attributes include data format, data content, data size and byte length;
[0015] Setting a predetermined condition, wherein the predetermined condition includes whether the data format of the transmitted data is a format of a file type in a preset file type set, whether the data content of the transmitted data is clearly identified, and whether the data size and byte length of the transmitted data are clearly identified;
[0016] If the relevant attributes of the transmitted data meet all of the predetermined conditions, then the condition is met; if the relevant attributes of the transmitted data do not meet at least one of the predetermined conditions, then the condition is not met.
[0017] The specific steps of transmitting the data storage to the data storage end in an idle state include:
[0018] Traversing all data storage terminals in an idle state, detecting whether the data format of the transmitted data is consistent with the data format of data storage reserved for a certain data storage terminal in an idle state;
[0019] If it exists, when the data size of the transmitted data is smaller than the storage space reserved by the data storage end whose data format matches the consistent data, it is directly stored.
[0020] Wherein, the method further comprises:
[0021] If the data size of the transmitted data is greater than or equal to the storage space reserved by the data storage end whose data format matches the same, then the data storage end with the largest storage space reserved among all idle states is obtained, and the storage space of the data storage end with the largest storage space reserved is reduced to increase the storage space size of the data storage end that matches the data format of the transmitted data to store the transmitted data.
[0022] Wherein, the method further comprises:
[0023] If there is no idle data storage end that matches the data format of the transmitted data, then among all data storage ends, traverse to obtain the data storage end that matches the data format of the transmitted data but is not in an idle state, and further obtain the data storage end with the largest storage space reserved among all idle states, and reduce the storage space of the data storage end with the largest storage space reserved to increase the storage space size of the data storage end that matches the data format of the transmitted data but is not in an idle state to store the transmitted data.
[0024] The data formats include image format, audio and video format and text format.
[0025] The embodiment of the present invention further provides an intelligent resource adjustment system based on network big data, comprising:
[0026] A resource acquisition unit, used to acquire an idle data storage end among all preset data storage ends;
[0027] The queuing transmission unit is used for storing the transmitted data in an idle data storage terminal first after receiving a data transmission instruction and then outputting the transmitted data in sequence according to a predetermined scheduling rule if it is detected that the transmitted data meets a predetermined condition.
[0028] Among them, it also includes:
[0029] The temporary storage unit is used to store the transmitted data in a preset temporary storage area when it is detected that the transmitted data does not meet the predetermined conditions.
[0030] The implementation of the embodiments of the present invention has the following beneficial effects:
[0031] 1. The present invention can realize timely data reception by storing the transmitted data to the data storage end in an idle state, and data congestion will not occur. At the same time, it will not occupy transmission resources to ensure the normal transmission of other data, so that resources are effectively utilized, which not only ensures the normal storage of data, but also solves the problem of congestion during data transmission;
[0032] 2. The present invention stores the transmitted data in classified formats, including image format, audio and video format and text format, which is convenient for searching and subsequent management, and does not cause random storage, making the data storage neat and reasonable, and improving efficiency;
[0033] 3. The present invention stores the transmitted data that does not meet the predetermined conditions in a preset temporary storage area, so that it can be repaired later by adjusting instructions and / or data comparison to achieve the correctness of the transmitted data. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, without paying creative labor, other drawings obtained based on these drawings still belong to the scope of the present invention.
[0035] Figure 1 A flowchart of an intelligent resource adjustment method based on network big data provided by an embodiment of the present invention;
[0036] Figure 2 A schematic diagram of the structure of an intelligent resource adjustment system based on network big data provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In order to make the objectives, technical solutions and advantages of the present invention more clear, the present invention will be further described in detail below with reference to the accompanying drawings.
[0038] like Figure 1 As shown in the figure, an intelligent resource adjustment method based on network big data is provided in an embodiment of the present invention, and the method comprises the following steps:
[0039] Step S1, obtaining data storage ends in an idle state from all preset data storage ends;
[0040] The specific process is to open a data storage end to store the transmitted data during the transmission process so that the transmission data will not be congested. It should be noted that the data storage end in an idle state means that the data storage end has reserved storage space to store data, and the storage space should be greater than the preset space threshold. Of course, the data storage end can be a temporarily opened storage area (such as a disk cache) or a designated area for storing data (such as a memory).
[0041] Step S2, after receiving the data transmission instruction, if it is detected that the transmission data meets the predetermined conditions, the transmission data is first stored in the data storage end in the idle state, and then output in sequence according to the predetermined scheduling rules;
[0042] The specific process is that after receiving the data transmission instruction, the transmitted data is first checked to see if it meets the predetermined conditions. The specific steps are as follows:
[0043] (1) obtaining relevant attributes of the transmitted data; wherein the relevant attributes of the transmitted data include data format, data content, data size, and byte length;
[0044] (2) setting predetermined conditions, including whether the data format of the transmitted data is a file type format of a preset file type set (such as image format, audio and video format, and text format), whether the data content of the transmitted data is clearly identifiable, and whether the data size and byte length of the transmitted data are clearly identifiable;
[0045] (3) If the relevant attributes of the transmitted data satisfy all of the above predetermined conditions, then the condition is met; if the relevant attributes of the transmitted data do not satisfy at least one of the above predetermined conditions, then the condition is not met.
[0046] Next, if the transmitted data meets the predetermined conditions, the transmitted data will be first stored in the idle data storage terminal. At this time, it is necessary to consider whether the storage space reserved by the idle data storage terminal meets the data size of the transmitted data; if it does, it is directly stored; otherwise, the storage space needs to be expanded to meet the data size of the transmitted data. At the same time, it is also necessary to consider the classified storage of the transmitted data (such as classified storage in image format, audio and video format, and text format) to facilitate search and subsequent management, so that there will be no random placement, making the data storage neat and reasonable, which can improve efficiency.
[0047] Therefore, the transmitted data is first stored in the data storage end in the idle state for explanation in the following cases:
[0048] (I) Classified storage and sufficient storage space: traverse all idle data storage terminals to detect whether the data format of the transmitted data is consistent with the data format reserved for data storage at a certain idle data storage terminal;
[0049] If it exists, when the data size of the transmitted data is smaller than the storage space reserved by the data storage end whose data format matches the consistent data, it is directly stored;
[0050] (II) Insufficient classification storage and storage space: traverse all idle data storage terminals to detect whether the data format of the transmitted data is consistent with the data format of the data stored in a certain idle data storage terminal;
[0051] If it exists, when the data size of the transmitted data is greater than or equal to the storage space reserved by the data storage end that matches its data format, obtain the data storage end with the largest storage space reserved among all idle states, and reduce the storage space of the data storage end with the largest storage space to increase the storage space size of the data storage end that matches the data format of the transmitted data to store the transmitted data.
[0052] It should be noted that after the transmission data is scheduled to be cleared, the storage space of the data storage end will be restored to the initial balance state, that is, the increased storage space will be returned to the data storage end where the storage space is reduced.
[0053] (III) Classified storage and no storage space: traverse all idle data storage terminals to detect whether the data format of the transmitted data is consistent with the data format of the data stored in a certain idle data storage terminal;
[0054] If there is no data storage end in an idle state that matches the data format of the transmitted data, then among all the data storage ends, a data storage end that matches the data format of the transmitted data but is not in an idle state is traversed, and the data storage end with the largest storage space reserved among all the idle states is further obtained, and the storage space of the data storage end with the largest storage space reserved is reduced to increase the storage space size of the data storage end that matches the data format of the transmitted data but is not in an idle state to store the transmitted data.
[0055] It should be noted that after the transmission data is scheduled to be cleared, the storage space of the data storage end will be restored to the initial balance state, that is, the increased storage space will be returned to the data storage end where the storage space is reduced.
[0056] Then, according to a predetermined scheduling rule (such as a first-in-first-out scheduling method), the data are output in sequence to queue up and avoid congestion.
[0057] In one embodiment, the data storage end in the idle state includes data storage end 1, data storage end 2 and data storage end 3, and the information of each data storage end is classified in advance, such as data storage end 1 stores images, portraits and other data, data storage end 2 stores audio, video and other information, and data storage end 3 stores text materials and other information.
[0058] That is to say, when it is parsed that the transmitted data belongs to the image type, the transmitted data is classified and stored in the data storage terminal 1; when it is parsed that the transmitted data belongs to audio and video, the transmitted data is classified and stored in the data storage terminal 2; when it is parsed that the transmitted data belongs to text material, the transmitted data is classified and stored in the data storage terminal 3.
[0059] At the same time, each data storage end will periodically compare the memory (i.e. storage space size) between them. If a data storage end has more memory, it will divide the memory to the side with less memory accordingly to keep the data stored normally, so as to optimize resources better. Of course, after this period of data transmission time, it will return to the waiting operation, so as to make resource utilization better.
[0060] Step S3: When it is detected that the transmitted data does not meet the predetermined condition, the transmitted data is stored in a preset temporary storage area.
[0061] The specific process is that when it is detected that the transmission data does not meet the predetermined conditions, a temporary storage area is opened separately to store the transmission data. The transmission data that does not meet the predetermined conditions is that the data format cannot be identified, such as not being a format of a certain file type in the preset file type set, or the data content of the transmission data is unclear, or the data size and byte length of the transmission data are uncertain. At this time, the transmission data that does not meet the predetermined conditions needs to be adjusted before subsequent scheduling can be carried out.
[0062] Therefore, after receiving the data adjustment instruction and / or the data comparison instruction, the transmission data stored in the preset temporary storage area is repaired until the repaired transmission data meets the predetermined conditions, and then output in sequence according to the predetermined scheduling rules.
[0063] like Figure 2 As shown in the figure, an intelligent resource adjustment system based on network big data is provided in an embodiment of the present invention, including:
[0064] A resource acquisition unit 110 is used to acquire data storage ends in an idle state from among all preset data storage ends;
[0065] The queuing transmission unit 120 is used for storing the transmitted data in an idle data storage terminal after receiving a data transmission instruction and then outputting the transmitted data in sequence according to a predetermined scheduling rule if it is detected that the transmitted data meets a predetermined condition.
[0066] Among them, it also includes:
[0067] The temporary storage unit 130 is used to store the transmitted data in a preset temporary storage area when it is detected that the transmitted data does not meet the predetermined condition.
[0068] The implementation of the embodiments of the present invention has the following beneficial effects:
[0069] 1. The present invention can realize timely data reception by storing the transmitted data to the data storage end in an idle state, and data congestion will not occur. At the same time, it will not occupy transmission resources to ensure the normal transmission of other data, so that resources are effectively utilized, which not only ensures the normal storage of data, but also solves the problem of congestion during data transmission;
[0070] 2. The present invention stores the transmitted data in classified formats, including image format, audio and video format and text format, which is convenient for searching and subsequent management, and does not cause random storage, making the data storage neat and reasonable, and improving efficiency;
[0071] 3. The present invention stores the transmitted data that does not meet the predetermined conditions in a preset temporary storage area, so that it can be repaired later by adjusting instructions and / or data comparison to achieve the correctness of the transmitted data.
[0072] It is worth noting that in the above system embodiment, the various units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0073] A person skilled in the art can understand that all or part of the steps in the above-mentioned embodiment method can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, such as ROM / RAM, disk, CD-ROM, etc.
[0074] The above disclosure is only the preferred embodiment of the present invention, which certainly cannot be used to limit the scope of the present invention. Therefore, equivalent changes made according to the claims of the present invention are still within the scope of the present invention.
Claims
1. An intelligent resource adjustment method based on network big data, characterized in that: The method comprises the following steps: Obtaining data storage ends in an idle state among all preset data storage ends; After receiving the data transmission instruction, if it is detected that the transmission data meets the predetermined conditions, the transmission data is first stored in the data storage end in the idle state, and then output in sequence according to the predetermined scheduling rules; The specific steps of transmitting the data storage to the data storage end in an idle state include: Traversing all data storage terminals in an idle state, detecting whether the data format of the transmitted data is consistent with the data format of data storage reserved for a certain data storage terminal in an idle state; If so, directly store the data when the data size of the transmitted data is smaller than the storage space reserved by the data storage end whose data format matches the consistent data; If the data size of the transmitted data is greater than or equal to the storage space reserved by the data storage end with the consistent data format matching, then the data storage end with the largest storage space reserved among all idle states is obtained, and the storage space of the data storage end with the largest storage space reserved is reduced to increase the storage space size of the data storage end with the consistent data format matching of the transmitted data to store the transmitted data; If there is no idle data storage end that matches the data format of the transmitted data, then among all data storage ends, traverse to obtain the data storage end that matches the data format of the transmitted data but is not in an idle state, and further obtain the data storage end with the largest storage space reserved among all idle states, and reduce the storage space of the data storage end with the largest storage space reserved to increase the storage space size of the data storage end that matches the data format of the transmitted data but is not in an idle state to store the transmitted data.
2. The intelligent resource adjustment method based on network big data according to claim 1, characterized in that: The method further comprises: When it is detected that the transmitted data does not meet the predetermined condition, the transmitted data is stored in a preset temporary storage area.
3. The intelligent resource adjustment method based on network big data according to claim 2, characterized in that: The method further comprises: After receiving the data adjustment instruction and / or the data comparison instruction, the transmission data stored in the preset temporary storage area is repaired until the repaired transmission data meets the predetermined condition, and then output in sequence according to the predetermined scheduling rule.
4. The intelligent resource adjustment method based on network big data according to claim 1, characterized in that: The specific steps of detecting whether the transmitted data meets the predetermined conditions include: Acquire relevant attributes of the transmitted data; wherein the relevant attributes include data format, data content, data size and byte length; Setting a predetermined condition, wherein the predetermined condition includes whether the data format of the transmitted data is a format of a file type in a preset file type set, whether the data content of the transmitted data is clearly identified, and whether the data size and byte length of the transmitted data are clearly identified; If the relevant attributes of the transmitted data meet all of the predetermined conditions, then the condition is met; if the relevant attributes of the transmitted data do not meet at least one of the predetermined conditions, then the condition is not met.
5. The intelligent resource adjustment method based on network big data according to claim 4, characterized in that: The data formats include image format, audio and video format and text format.
6. An intelligent resource adjustment system based on network big data, characterized in that: include: A resource acquisition unit, used to acquire an idle data storage end among all preset data storage ends; The queuing transmission unit is used for storing the transmitted data in an idle data storage terminal after receiving a data transmission instruction and then outputting the transmitted data in sequence according to a predetermined scheduling rule if it is detected that the transmitted data meets a predetermined condition; Wherein, the transmitted data is stored in the data storage end in an idle state by executing the following data storage module; The data storage module is used to traverse all idle data storage terminals to detect whether the data format of the transmitted data is consistent with the data format reserved for data storage at a certain idle data storage terminal; and If so, directly store the data when the data size of the transmitted data is smaller than the storage space reserved by the data storage end whose data format matches the consistent data; If the data size of the transmitted data is greater than or equal to the storage space reserved by the data storage end with the consistent data format matching, then the data storage end with the largest storage space reserved among all idle states is obtained, and the storage space of the data storage end with the largest storage space reserved is reduced to increase the storage space size of the data storage end with the consistent data format matching of the transmitted data to store the transmitted data; If there is no idle data storage end that matches the data format of the transmitted data, then among all data storage ends, traverse to obtain the data storage end that matches the data format of the transmitted data but is not in an idle state, and further obtain the data storage end with the largest storage space reserved among all idle states, and reduce the storage space of the data storage end with the largest storage space reserved to increase the storage space size of the data storage end that matches the data format of the transmitted data but is not in an idle state to store the transmitted data.
7. The intelligent resource adjustment system based on network big data according to claim 6, characterized in that: Also includes: The temporary storage unit is used to store the transmitted data in a preset temporary storage area when it is detected that the transmitted data does not meet the predetermined conditions.
