The content of the invention
The embodiment of the present invention provides date storage method and device, can improve the storage performance of network node.
In a first aspect, the embodiment of the present invention provides a kind of date storage method, including:
The network data for needing to transmit is carried out data slicer by the webserver, obtains NE data acquisition system, describedNE data acquisition system includes at least one NE data;
Position of the webserver based on each NE data in the network data, is generated respectivelyThe Data Identification of each NE data;
The webserver is by least one the NE data and its data in the NE data acquisition systemMark is sent to a microserver in microserver cluster, until all nets that the NE data acquisition system is includedNetwork cell data end of transmission.
Optionally, the network data for needing to transmit is carried out data slicer by the webserver, obtains NE data setClose, including:
The webserver obtains the microserver quantity that the microserver cluster is included;
The webserver is based on the microserver quantity, and the network data is cut into slices, obtains the netNetwork cell data set.
Optionally, the webserver is by least one NE data and its number in the NE data acquisition systemA microserver being sent to according to mark in microserver cluster, including:
The webserver obtains the current memory space of each microserver that the microserver cluster is included;
The webserver is by least one the NE data and its data in the NE data acquisition systemMark is sent to the larger microserver of memory space.
Optionally, the webserver is by least one NE data and its number in the NE data acquisition systemA microserver being sent to according to mark in microserver cluster, including:
The webserver obtains the current CPU of each microserver that the microserver cluster is included and usedRate;
The webserver is by least one the NE data and its data in the NE data acquisition systemMark is sent to the relatively low microserver of CPU usage.
Optionally, the webserver by least one NE data in the NE data acquisition system andIts Data Identification is sent to a microserver in microserver cluster, including:
The webserver obtains the current data transfer of each microserver that the microserver cluster is includedSpeed;
The webserver is by least one the NE data and its data in the NE data acquisition systemMark is sent to the higher microserver of message transmission rate.
Second aspect, the embodiment of the present invention provide a kind of data storage device, and described device includes:
Data slicer module, for the network data for needing to transmit to be carried out into data slicer, obtain NE data setClose, the NE data acquisition system includes at least one NE data;
Data Identification generation module, for the position based on each NE data in the network data,The Data Identification of each NE data is generated respectively;
Data transmission blocks, for by least one NE data and its number in the NE data acquisition systemA microserver being sent to according to mark in microserver cluster, up to what the NE data acquisition system was included ownsNE data transfer finishes.
Optionally, the data slicer module, is specifically used for:
Obtain the microserver quantity that the microserver cluster is included;
Based on the microserver quantity, the network data is cut into slices, obtains the NE data acquisition system.
Optionally, the data transmission blocks, are specifically used for:
Obtain the current memory space of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to storageThe larger microserver in space.
Optionally, the data transmission blocks, are specifically used for:
Obtain the current CPU usage of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to CPU and madeWith the relatively low microserver of rate.
Optionally, the data transmission blocks, are specifically used for:
Obtain the current message transmission rate of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to dataThe higher microserver of transmission rate.
The third aspect, the embodiments of the invention provide a kind of webserver, it is characterised in that including processor, inputEquipment, output equipment and memory, the processor, input equipment, output equipment and memory are connected with each other, wherein, it is describedMemory is used to store computer program, and the computer program includes programmed instruction, and the processor is arranged to callDescribed program instructs, and performs method as described in relation to the first aspect.
Fourth aspect, the embodiments of the invention provide a kind of computer-readable recording medium, it is characterised in that the calculatingMachine storage medium is stored with computer program, and the computer program includes programmed instruction, and described program instruction is when by processorMake the method for the computing device as described in relation to the first aspect during execution.
In the embodiment of the present invention, the network data for needing to transmit is carried out data slicer by the webserver, obtains network listCollection of metadata, NE data acquisition system include at least one NE data;Based on each NE data in netPosition in network data, the Data Identification of each NE data is generated respectively;By in NE data acquisition system at leastOne NE data and its Data Identification are sent to a microserver in microserver cluster, until NE numberAccording to included all-network cell data end of transmission is gathered, the storage performance of network node can be improved.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, completeSite preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, rather than whole embodiments.Based on this hairEmbodiment in bright, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not madeExample, belongs to the scope of protection of the invention.
Fig. 1 is referred to, Fig. 1 is a kind of schematic flow sheet of date storage method provided in an embodiment of the present invention, such as Fig. 1 institutesShow, comprise the following steps:
The network data for needing to transmit is carried out data slicer by step 101, the webserver, obtains NE data setClose, the NE data acquisition system includes at least one NE data.
Optionally, the webserver can obtain the microserver quantity that the microserver cluster is included, based on instituteMicroserver quantity is stated, the network data is cut into slices, obtains the NE data acquisition system.
The position of step 102, the webserver based on each NE data in the network data,The Data Identification of each NE data is generated respectively.
Step 103, the webserver are by least one NE data in the NE data acquisition systemAnd its Data Identification is sent to a microserver in microserver cluster, until the NE data acquisition system is includedAll-network cell data end of transmission.
Optionally, the webserver can obtain that each microserver that the microserver cluster included is current to be depositedStore up space;It is empty that at least one NE data in the NE data acquisition system and its Data Identification are sent to storageBetween larger microserver.
Optionally, it is current can to obtain each microserver that the microserver cluster included for the webserverCPU usage;At least one NE data in the NE data acquisition system and its Data Identification are sent to CPUThe relatively low microserver of utilization rate.
Optionally, the webserver can obtain the current number of each microserver that the microserver cluster is includedAccording to transmission rate;At least one NE data in the NE data acquisition system and its Data Identification are sent to numberAccording to the higher microserver of transmission rate.
In the embodiment of the present invention, the network data for needing to transmit is carried out data slicer by the webserver, obtains network listCollection of metadata, NE data acquisition system include at least one NE data;Based on each NE data in netPosition in network data, the Data Identification of each NE data is generated respectively;By in NE data acquisition system at leastOne NE data and its Data Identification are sent to a microserver in microserver cluster, until NE numberAccording to included all-network cell data end of transmission is gathered, the storage performance of network node can be improved.
Fig. 2 is referred to, Fig. 2 is a kind of structural representation of data storage device provided in an embodiment of the present invention, such as Fig. 2 institutesShow, including:
Data slicer module 201, for the network data for needing to transmit to be carried out into data slicer, obtain NE dataSet, the NE data acquisition system include at least one NE data;
Data Identification generation module 202, for the position based on each NE data in the network dataPut, generate the Data Identification of each NE data respectively;
Data transmission blocks 203, for by least one NE data in the NE data acquisition system andIts Data Identification is sent to a microserver in microserver cluster, until what the NE data acquisition system was includedAll-network cell data end of transmission.
Optionally, the data slicer module 201, is specifically used for:
Obtain the microserver quantity that the microserver cluster is included;
Based on the microserver quantity, the network data is cut into slices, obtains the NE data acquisition system.
Optionally, the data transmission blocks 203, are specifically used for:
Obtain the current memory space of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to storageThe larger microserver in space.
Optionally, the data transmission blocks 203, are specifically used for:
Obtain the current CPU usage of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to CPU and madeWith the relatively low microserver of rate.
Optionally, the data transmission blocks 203, are specifically used for:
Obtain the current message transmission rate of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to dataThe higher microserver of transmission rate.
In the embodiment of the present invention, the network data for needing to transmit is carried out data slicer by data slicer module 201, obtains netNetwork cell data set, the NE data acquisition system include at least one NE data;Data Identification generation module202 position based on each NE data in the network data, each NE number is generated respectivelyAccording to Data Identification;Data transmission blocks 203 by least one NE data in the NE data acquisition system andIts Data Identification is sent to a microserver in microserver cluster, until what the NE data acquisition system was includedAll-network cell data end of transmission, the storage performance of network node can be improved.
Referring to Fig. 3, Fig. 3 is the structure chart of another webserver provided in an embodiment of the present invention.As shown in figure 3, netNetwork server includes:Processor 301, memory 302, network interface 304 and user interface 303.It is each in the webserverComponent is coupled by bus system 305.Bus system 305 is in addition to including data/address bus, in addition to power bus, controlBus and status signal bus in addition processed.But for the sake of clear explanation, various buses are all designated as bus system 305 in figure 3.
Wherein, user interface 303 can include display, keyboard or pointing device (for example, mouse, trace ball(track ball), touch-sensitive plate or touch-screen etc..
It is appreciated that the memory 302 in the embodiment of the present invention can be volatile memory or nonvolatile memory,Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read-Only Memory, ROM), programmable read only memory (ProgrammableROM, PROM), the read-only storage of erasable programmableDevice (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) orFlash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside highSpeed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM(Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory(Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data RateSDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized linksDynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (DirectRambus RAM, DRRAM).The memory 302 of system and method described herein be intended to including but not limited to these and it is any itsIt is adapted to the memory of type.
In some embodiments, memory 302 stores following element, can perform module or data structure, orTheir subset of person, or their superset:Operating system 3021 and application program 3022.
Wherein, operating system 3021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used forRealize various basic businesses and the hardware based task of processing.Application program 3022, include various application programs, such as mediaPlayer (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present inventionThe program of method may be embodied in application program 3022.
In embodiments of the present invention, by calling program or the instruction of the storage of memory 302, specifically, can be applicationThe program stored in program 3022 or instruction, processor 301 are used for:
The network data for needing to transmit is subjected to data slicer, obtains NE data acquisition system, the NE numberInclude at least one NE data according to set;
Position based on each NE data in the network data, each network list is generated respectivelyThe Data Identification of metadata;
At least one NE data in the NE data acquisition system and its Data Identification are sent in incognitoA microserver being engaged in device cluster, until the all-network cell data transmission that the NE data acquisition system is includedFinish.
Optionally, the network data for needing to transmit is carried out data slicer by processor 301, obtains NE data setClose, be specifically as follows:
Obtain the microserver quantity that the microserver cluster is included;
Based on the microserver quantity, the network data is cut into slices, obtains the NE data acquisition system.
Optionally, processor 301 is by least one NE data and its number in the NE data acquisition systemA microserver being sent to according to mark in microserver cluster, is specifically as follows:
Obtain the current memory space of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to storageThe larger microserver in space.
Optionally, processor 301 is by least one NE data and its number in the NE data acquisition systemA microserver being sent to according to mark in microserver cluster, is specifically as follows:
Obtain the current CPU usage of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to CPU and madeWith the relatively low microserver of rate.
Optionally, processor 301 is by least one NE data and its number in the NE data acquisition systemA microserver being sent to according to mark in microserver cluster, is specifically as follows:
Obtain the current message transmission rate of each microserver that the microserver cluster is included;
At least one NE data in the NE data acquisition system and its Data Identification are sent to dataThe higher microserver of transmission rate.
The method that the embodiments of the present invention disclose can apply in processor 301, or be realized by processor 301.Processor 301 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is eachStep can be completed by the integrated logic circuit of the hardware in processor 301 or the instruction of software form.Above-mentioned processingDevice 301 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricityRoad (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (FieldProgrammable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic,Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is generalProcessor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present inventionThe step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processorAnd software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-onlyIn the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located atMemory 302, processor 301 read the information in memory 302, with reference to the step of its hardware completion above method.
It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or itsCombine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (ApplicationSpecific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing,DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable LogicDevice, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor,In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.
Realize, can be realized herein by performing the module (such as process, function etc.) of function described herein for softwareDescribed technology.Software code is storable in memory and passes through computing device.Memory can within a processor orRealized outside processor.
Fig. 4 is referred to, is the schematic block diagram of data-storage system provided in an embodiment of the present invention.Retouched in the present embodimentThe system stated, specifically, as shown in figure 4, the system of the embodiment of the present invention comprises at least the webserver 401 and micro servicesDevice 402, wherein:
The network data for needing to transmit is carried out data slicer by the webserver 401, obtains NE data acquisition system, instituteStating NE data acquisition system includes at least one NE data;
Position of the webserver 401 based on each NE data in the network data, respectivelyGenerate the Data Identification of each NE data;
The webserver 401 is by least one NE data and its number in the NE data acquisition systemA microserver 402 being sent to according to mark in microserver cluster, until what the NE data acquisition system was includedAll-network cell data end of transmission.
Optionally, the network data for needing to transmit is carried out data slicer by the webserver 401, obtains NE dataSet, including:
The webserver 401 obtains the microserver quantity that the microserver cluster is included;
The webserver 401 is based on the microserver quantity, and the network data is cut into slices, and obtains describedNE data acquisition system.
Optionally, the webserver 401 by least one NE data in the NE data acquisition system andIts Data Identification is sent to a microserver 402 in microserver cluster, including:
The webserver 401 obtains that each microserver 402 that the microserver cluster included is current to be depositedStore up space;
The webserver 401 is by least one NE data and its number in the NE data acquisition systemThe larger microserver 402 of memory space is sent to according to mark.
Optionally, the webserver 401 by least one NE data in the NE data acquisition system andIts Data Identification is sent to a microserver 402 in microserver cluster, including:
The webserver 401 obtains the current CPU of each microserver 402 that the microserver cluster is includedUtilization rate;
The webserver 401 is by least one NE data and its number in the NE data acquisition systemThe relatively low microserver 402 of CPU usage is sent to according to mark.
Optionally, the webserver 401 is by least one NE number in the NE data acquisition systemAccording to and its Data Identification be sent to a microserver 402 in microserver cluster, including:
The webserver 401 obtains the current number of each microserver 402 that the microserver cluster is includedAccording to transmission rate;
The webserver 401 is by least one NE data and its number in the NE data acquisition systemThe higher microserver 402 of message transmission rate is sent to according to mark.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described hereinMember and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actuallyPerformed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnelDescribed function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceedThe scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed throughMode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is onlyA kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine orPerson is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutualBetween coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unitConnect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unitThe part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multipleOn NE.Some or all of unit therein can be selected to realize scheme of the embodiment of the present invention according to the actual needsPurpose.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can alsoThat unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be withIt is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other wordsThe part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meterCalculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can bePeople's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codesMedium.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, anyThose familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be containedCover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.