CN108933803B - Front-end equipment, cloud storage server, and streaming data direct storage method and system - Google Patents

Front-end equipment, cloud storage server, and streaming data direct storage method and system Download PDF

Info

Publication number
CN108933803B
CN108933803B CN201710384897.6A CN201710384897A CN108933803B CN 108933803 B CN108933803 B CN 108933803B CN 201710384897 A CN201710384897 A CN 201710384897A CN 108933803 B CN108933803 B CN 108933803B
Authority
CN
China
Prior art keywords
cloud storage
attribute information
streaming data
storage system
stored
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.)
Active
Application number
CN201710384897.6A
Other languages
Chinese (zh)
Other versions
CN108933803A (en
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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201710384897.6A priority Critical patent/CN108933803B/en
Publication of CN108933803A publication Critical patent/CN108933803A/en
Application granted granted Critical
Publication of CN108933803B publication Critical patent/CN108933803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or 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/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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention provides a front-end device, a cloud storage server, a streaming data direct storage method and a streaming data direct storage system, wherein the method comprises the following steps: when a storage task instruction is received, sending a login request to a cloud storage system which conforms to cloud storage network address information, so that the cloud storage system judges whether a storage server is allocated to front-end equipment or not after receiving the login request, and generates a login result according to a judgment result, wherein when the judgment result is yes, the login result carries first attribute information; receiving a login result fed back by the cloud storage system; judging whether the login result carries first attribute information or not; and if the login result carries the first attribute information, sending the streaming data to be stored to the cloud storage system by using the first attribute information so as to enable the cloud storage system to store the streaming data to be stored. According to the scheme, the success rate of direct storage of the stream data in the cloud storage can be ensured.

Description

Front-end equipment, cloud storage server, and streaming data direct storage method and system
Technical Field
The invention relates to the technical field of network storage, in particular to front-end equipment, a cloud storage server, a streaming data direct storage method and a streaming data direct storage system.
Background
The cloud storage refers to a system which integrates a large number of storage devices of different types in a network through application software to cooperatively work through functions such as cluster application, network technology or a distributed file system and provides data storage and service access functions to the outside. Compared with the conventional storage system in which it is clear what type of storage device, what interface and transmission protocol, how many disks are in the storage system, what type of disk, what capacity of disk, what connection cable is used between the storage device and the server, and the like, a user of the cloud storage system can conveniently access data at any time and any place through any internet-capable device to connect to the cloud storage system. Therefore, with the continuous progress of society, cloud storage applications are becoming widespread.
The method for directly storing the streaming data in the cloud storage system includes that streaming media or other streaming components are usually built in the cloud storage system, a user configures information of a front-end device (e.g., a network camera, an encoder, etc.) to the cloud storage system, for example, an IP (Internet Protocol) address, a port address, a user name, a password, etc. corresponding to the front-end device, the cloud storage system actively initiates a streaming request to the front-end device corresponding to the information of the front-end device, and the front-end device is requested to push real-time or historical streaming data to the cloud storage system for storage.
When the execution of the storage task is abnormal, for example, the front-end device is abnormally connected with the cloud storage system, the currently working cloud storage system is abnormal, and the like, after the cloud storage system finds the abnormality, a flow stopping instruction is sent to the front-end device.
Disclosure of Invention
The embodiment of the invention aims to provide a front-end device, a cloud storage server, a streaming data direct storage method and a streaming data direct storage system, so as to ensure the success rate of streaming data direct storage in cloud storage. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present invention provides a streaming data direct storage method, which is applied to a front-end device, where cloud storage network address information is stored in the front-end device, and the method includes:
when a storage task instruction is received, sending a login request to a cloud storage system conforming to the cloud storage network address information, so that the cloud storage system judges whether a storage server is allocated to the front-end equipment or not after receiving the login request, and generating a login result corresponding to the login request according to a judgment result, wherein when the judgment result is yes, the login result carries first attribute information, and the first attribute information is attribute information of the allocated storage server;
receiving a login result fed back by the cloud storage system;
judging whether the login result carries the first attribute information or not;
and if the login result carries the first attribute information, sending streaming data to be stored to the cloud storage system by using the first attribute information so as to enable the cloud storage system to store the streaming data to be stored.
In a second aspect, an embodiment of the present invention provides a streaming data direct storage method, which is applied to a cloud storage system, and the method includes:
when a login request sent by front-end equipment is received, judging whether a storage server is allocated to the front-end equipment or not, wherein the login request is sent by the front-end equipment based on cloud storage network address information corresponding to the cloud storage system when a storage task instruction is received, and the cloud storage network address information is stored in the front-end equipment in advance;
according to a judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end equipment, so that when the front-end equipment judges that the login result carries first attribute information, the front-end equipment sends streaming data to be stored to the cloud storage system by using the first attribute information, wherein when the front-end equipment is judged to be allocated with a storage server, the login result carries the first attribute information, and the first attribute information is the attribute information of the allocated storage server;
and when receiving streaming data to be stored, which is sent by the front-end equipment by using the first attribute information, storing the streaming data to be stored.
In a third aspect, an embodiment of the present invention provides a streaming data direct memory system, where the system includes:
the front-end equipment is used for sending a login request to the cloud storage system which is consistent with the stored cloud storage network address information when receiving the storage task instruction; receiving a login result fed back by the cloud storage system; judging whether the login result carries the first attribute information or not; if the login result carries the first attribute information, the first attribute information is utilized to send streaming data to be stored to the cloud storage system;
the cloud storage system is used for judging whether a storage server is allocated to the front-end equipment or not when a login request sent by the front-end equipment is received; according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end equipment; and when receiving streaming data to be stored, which is sent by the front-end equipment by using the first attribute information, storing the streaming data to be stored.
In a fourth aspect, an embodiment of the present invention provides a front-end device, where the front-end device includes: the device comprises a collector, a processor, a memory, an encoder, a communication interface and a bus;
the collector, the processor, the memory, the encoder and the communication interface are connected through the bus and complete mutual communication, and stream data to be stored is sent through the communication interface;
the collector is used for collecting data to be stored;
the memory is used for storing executable program codes;
the processor is configured to execute a program corresponding to the executable program code by reading the executable program code stored in the memory, so as to perform the steps of the streaming data direct memory method according to the first aspect;
and the encoder is used for encoding the data to be stored, which is acquired by the acquisition device.
In a fifth aspect, an embodiment of the present invention provides a cloud storage system, where the cloud storage system includes: at least one management server and at least one storage server;
the system comprises a first management server and a second management server, wherein the first management server is used for judging whether a storage server is allocated to front-end equipment or not when a login request sent by the front-end equipment is received, the login request is sent by the front-end equipment based on cloud storage network address information corresponding to a cloud storage system when a storage task instruction is received, the cloud storage network address information is stored in the front-end equipment in advance, the cloud storage network address information is the network address information of a first management server in the cloud storage system, and the first management server is any one management server in the cloud storage system determined according to a preset allocation mechanism; according to a judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end device, so that when the front-end device judges that the login result carries first attribute information, the front-end device sends streaming data to be stored to the cloud storage system by using the first attribute information, wherein when the front-end device is judged to be allocated with a storage server, the login result carries the first attribute information, the first attribute information is the attribute information of the allocated storage server, and the first management server is a management server conforming to the cloud storage network address information;
and the first storage server is used for storing the streaming data to be stored when the streaming data to be stored sent by the front-end equipment by using the first attribute information is received.
According to the front-end equipment, the cloud storage server, the streaming data direct storage method and the streaming data direct storage system, when the front-end equipment receives a storage task instruction, a login request is sent to the cloud storage server which is consistent with the cloud storage network address information, whether the login result fed back by the cloud storage server carries the attribute information of the distributed storage server or not is judged, and if the login result carries the attribute information, the streaming data to be stored is sent to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can detect the execution abnormity of the storage task in time and process the execution abnormity, thereby reducing the probability of real-time data loss. And the front-end equipment receives the login result by sending the login request, judges whether the cloud storage system allocates the storage server for the front-end equipment, and directly sends streaming data to be stored if the cloud storage system allocates the storage server for the front-end equipment, so that the step of repeatedly requesting the cloud storage system to allocate the storage server is reduced, and the data storage efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for direct storage of stream data according to a first aspect of an embodiment of the present invention;
fig. 2 is another schematic flow chart of a streaming data direct storage method according to a first aspect of the embodiment of the present invention;
fig. 3 is a schematic flow chart of a streaming data direct storage method according to the first aspect of the embodiment of the present invention;
fig. 4 is a schematic flow chart of a streaming data direct storage method according to a second aspect of the embodiment of the present invention;
fig. 5 is another schematic flow chart of a streaming data direct storage method according to a second aspect of the embodiment of the present invention;
fig. 6 is a schematic flow chart illustrating a stream data direct storage method according to a second aspect of the embodiment of the present invention;
FIG. 7 is a timing diagram illustrating a method for direct stream data storage according to an embodiment of the present invention;
FIG. 8 is a timing diagram illustrating another embodiment of a method for streaming data direct memory according to the present invention;
fig. 9 is a schematic structural diagram of a streaming data direct memory system according to a third aspect of the embodiment of the present invention;
fig. 10 is a schematic structural diagram of a front-end apparatus according to a fourth aspect of the embodiment of the present invention;
fig. 11 is a schematic structural diagram of a cloud storage system according to a fifth aspect of the embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In order to ensure the success rate of direct storage of the streaming data in the cloud storage, the embodiment of the invention provides a front-end device, a cloud storage server, a streaming data direct storage method and a streaming data direct storage system.
In a first aspect, from the perspective of a front-end device, an embodiment of the present invention provides a method for direct storage of streaming data.
The application scenario of the embodiment of the present invention is based on cloud storage and storage of stream data using a front-end device as an active device, where the front-end device specifically refers to a device that stores a large amount of data or can generate a large amount of data, such as a webcam, a camera with a continuous shooting function, a large-capacity storage device, and the like, but is not limited thereto.
In the embodiment of the invention, the data sent by the front-end equipment is stored through the cloud storage system, and in the storage process, the front-end equipment directly stores the data into the cloud storage system, namely, the data is not transferred through any transfer equipment in the data storage process. Based on the processing idea, in order to realize communication between the front-end device and the cloud storage system, the front-end device stores cloud storage network address information in advance, and the cloud storage network address information can be an external access address, a port and the like of the cloud storage system. It is understood that the cloud storage system may include at least one management server for managing the storage server and at least one storage server for storing data. It should be noted that the management server and the storage server may be deployed in different physical machines of different nodes, or may be deployed in the same physical machine of the same node.
Specifically, the cloud storage network address information may be IP address information and/or port information. Optionally, the cloud storage network address may be a virtual network address, and may also be an actual network address providing external access in the cloud storage system. In specific application, the cloud storage network address information can be stored in a configuration file of the front-end equipment through the front-end equipment; of course, the user may also manually modify the configuration file of the front-end device to record the cloud storage network address information.
In a specific application, a plurality of servers inside a cloud storage system generally provide services to the outside in a cluster manner, at this time, a cloud storage network address is a virtual network address, and the virtual network address may be provided by a cluster technology. For example, the cloud storage system is constructed by 3 servers A, B, C, and assuming that the actual IP of server a is 192.168.1.10, the actual IP of server B is 192.168.1.11, and the actual IP of server C is 10.192.1.12, then a virtual IP and a port are provided to provide services to the outside through the clustering technology, for example, the virtual IP is 10.192.1.100 and the port is 6021. Thus, the front-end device only needs to configure the virtual IP and the port into the front-end device for storage through the configuration file of the front-end device, and the front-end device reads the configuration file when needing to use the virtual IP and/or the port. Of course, instead of configuring the virtual IP and/or port via the front-end device profile, the front-end device may log directly into the front-end device and manually modify the front-end device profile to record the virtual IP and/or port.
As shown in fig. 1, a method for directly storing stream data provided in an embodiment of the present invention is applied to a front-end device, and the method may include the following steps:
and S101, when receiving a storage task instruction, sending a login request to a cloud storage system conforming to the cloud storage network address information.
The storage task instruction can be understood as an instruction for triggering a storage task, and the instruction may be periodic, may be sent by a user in real time according to a requirement, and may be configured according to a plan. For example, the storage task instruction may be a user-configured timed recording schedule, or may be an alarm recording schedule. In a specific example, the storage task instruction is a timing video recording plan, the video recording plan is from 8 am to 6 pm of each day, and the front-end device executes the operation of direct storage of the streaming data when detecting that the current time is within the timing video recording time period; or, if the user configures an alarm video recording plan to the front-end device, the front-end device immediately triggers and executes the operation of the streaming data direct storage after detecting the alarm event, so as to ensure the time relevance between the streaming data and the event.
The login request may be understood as a message for authentication, where the login request may include basic information of the front-end device and basic information of the streaming data to be stored, such as a name, an address, and the like of the front-end device, and a size of the streaming data, and since the cloud storage system does not necessarily allocate a storage server to the front-end device, the front-end device needs to send a login request to the cloud storage system when receiving the storage task instruction, so that: after receiving the login request, the cloud storage system judges whether a storage server is allocated to the front-end equipment or not, and generates a login result corresponding to the login request according to a judgment result. If the judgment result of the cloud storage system is yes, the login result carries first attribute information, and the first attribute information is the attribute information of the distributed storage server. It should be noted that the attribute information at least includes the IP address information and/or the port information of the storage server, and may also be identification information such as a name of the storage server, a number of the storage server, and the like, and these identification information and the IP address and/or the port of the storage server have a one-to-one correspondence relationship, so that the unique IP address information and/or the port information can be mapped through the identification information.
It should be noted that the cloud storage network address information may be an external access address, a port, and the like of the cloud storage system, each cloud storage network address information corresponds to one cloud storage system, and the cloud storage network address information pre-stored in the front-end device may be configured in a configuration file in advance according to different front-end devices, or may be configured manually by a user. The front-end equipment can establish communication connection with the cloud storage system based on the cloud storage network address information when receiving the storage task instruction.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system.
It should be noted that, the cloud storage system often includes at least one management server and at least one storage server, the management server is used for managing the storage server, and the storage server is used for storing streaming data, so that the cloud storage system can receive and send operation or instruction messages other than the streaming data through the management server. It is understood that at least a core processing chip with data processing capability may be included in the management server to implement management of the storage server. The cloud storage system comprises at least one management server, which management server manages the storage of the streaming data sent by the front-end device to which storage server can be determined by a preset allocation mechanism, the preset allocation mechanism can be predetermined according to the size of the streaming data, the attributes such as the name of the front-end device and the attributes such as the storage capacity of the storage server, the preset allocation mechanism can be determined by a user, or the cloud storage system can be determined according to the above parameters, wherein the first management server is any management server in the cloud storage system determined according to the preset allocation mechanism. If the cloud storage network address information prestored in the front-end equipment is determined, the network address information of the first management server can be determined accordingly.
Optionally, the step of sending a login request to the cloud storage system conforming to the cloud storage network address information when the storage task instruction is received may include:
and when receiving a storage task instruction, sending a login request to a first management server in the cloud storage system, wherein the login request conforms to the cloud storage network address information.
It should be noted that, in order to improve the efficiency of data storage, after the network address information of the first management server is determined, the front-end device may directly send a login request to the first management server corresponding to the network address information, instead of sending the login request to the cloud storage system through the main port and then sending the login request to the first management server, which reduces the complexity caused by sending the login request to the cloud storage system, and if the login request is sent to the wrong management server, the login request may be sent to the wrong management server, so that the unreliability may be caused, and the efficiency and reliability of data storage may be improved.
And S102, receiving a login result fed back by the cloud storage system.
It should be noted that, after receiving the login request, the cloud storage system determines whether a storage server has been allocated for the front-end device, generates a login result corresponding to the login request according to the determination result, and sends the login result to the front-end device. If the judgment result of the cloud storage system is yes, the login result carries first attribute information, and the first attribute information is the attribute information of the distributed storage server. The front-end equipment receives a login result generated by the cloud storage system.
S103, judging whether the login result carries the first attribute information.
It should be noted that, after receiving the login result, the front-end device needs to determine information carried in the login result, and if the login result carries the first attribute information, it indicates that the cloud storage system has allocated a storage server for the front-end device, and may directly store the streaming data sent by the front-end device; if the login result does not carry the first attribute information, it indicates that the cloud storage system does not allocate a storage server to the front-end device, and the front-end device may need to apply for a new storage server or choose to abandon storage of streaming data.
And S104, if the login result carries the first attribute information, sending the streaming data to be stored to the cloud storage system by using the first attribute information.
It should be noted that the front-end device determines, by determining that the login result carries the first attribute information, that the cloud storage system has allocated the storage server to the front-end device, and then the front-end device may send the streaming data to be stored to the cloud storage system by using the first attribute information. The stream data to be stored may be encoded video stream, multiple pieces of encoded picture data, or other stream data stored in the front-end device. The cloud storage system may determine which storage server stores the streaming data to be stored according to the streaming data sent by which front-end device, or the front-end device may directly send the streaming data to be stored to the storage server corresponding to the first attribute information, and the storage server directly stores the streaming data to be stored.
Optionally, the step of sending the streaming data to be stored to the cloud storage system by using the first attribute information may include:
and sending the streaming data to be stored to a first storage server in the cloud storage system, wherein the first storage server conforms to the first attribute information, so that the first storage server stores the streaming data to be stored.
It should be noted that, in order to improve the efficiency of data storage, after the first attribute information in the login result is obtained, the front-end device may directly send the streaming data to be stored to the first storage server corresponding to the first attribute information, and does not need to send the streaming data to be stored to the cloud storage system through the main port and then to the first storage server, which reduces the complexity caused by the cloud storage system issuing, and if the cloud storage system issues the streaming data to the wrong storage server, the streaming data may be issued to the wrong storage server, thereby causing unreliability and improving the efficiency and reliability of data storage.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization. And the front-end equipment receives the login result by sending the login request, judges whether the cloud storage system allocates the storage server for the front-end equipment, and directly sends streaming data to be stored if the cloud storage system allocates the storage server for the front-end equipment, so that the step of repeatedly requesting the cloud storage system to allocate the storage server is reduced, and the data storage efficiency is improved.
Based on the embodiment shown in fig. 1, as shown in fig. 2, another stream data direct storage method provided in the embodiment of the present invention may further include, after S103, the following steps:
s201, when the login result does not carry the first attribute information, sending a storage resource acquisition request to the cloud storage system.
It should be noted that the front-end device determines, by determining that the login result does not carry the first attribute information, that the cloud storage system does not allocate a storage server to the front-end device, and may request the cloud storage system to allocate a storage server in order to ensure that streaming data is successfully stored, and then after determining that the login result does not carry the first attribute information, sends a storage resource acquisition request to the cloud storage system to request the cloud storage system to allocate a storage server to the front-end device, so that the cloud storage system allocates a second storage server to the front-end device after receiving the storage resource acquisition request, and feeds back second attribute information to the front-end device, where the second attribute information is attribute information of the second storage server. Or if the IP address of the front-end device changes due to a change in the physical location of the front-end device, and the like, after the login request is re-sent, the login result fed back by the cloud storage system will not carry the first attribute information, and for this case, the storage resource acquisition request also needs to be sent to the cloud storage system.
Optionally, the step of sending a storage resource acquisition request to the cloud storage system when the login result does not carry the first attribute information may include:
and when the login result does not carry the first attribute information, sending a storage resource acquisition request to a first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information.
It should be noted that, in order to improve the efficiency of data storage, the front-end device may directly send a storage resource acquisition request to the first management server corresponding to the network address information, which reduces the complexity caused by issuing the cloud storage system, and if the cloud storage system issues the storage resource acquisition request, the storage resource acquisition request may be issued to an incorrect management server, which causes unreliability and improves the efficiency and reliability of data storage.
S202, second attribute information fed back by the cloud storage system is received.
It should be noted that, after receiving the storage resource acquisition request, the cloud storage system allocates a second storage server capable of storing the streaming data to be sent by the front-end device to the front-end device according to the information, such as the IP address and/or the port of the front-end device, and the size of the streaming data, of the front-end device, which are included in the storage resource acquisition request, and feeds back attribute information of the second storage server, that is, the IP address information and/or the port information of the second storage server, or identification information, such as the name of the second storage server and the number of the storage server, to the front-end device, where the identification information and the IP address and/or the port of the storage server have a one-to-one correspondence relationship, so that the identification information can be mapped to unique IP address information and/or port information.
And S203, sending the streaming data to be stored to a cloud storage system by using the second attribute information.
It should be noted that, after receiving the second attribute information, the front-end device indicates that the cloud storage system has completed allocation of the storage server for the front-end device, and then the front-end device may send the streaming data to be stored to the cloud storage system by using the second attribute information. The stream data to be stored may be encoded video stream, multiple pieces of encoded picture data, or other stream data stored in the front-end device. The front-end device may directly send the streaming data to be stored to the second storage server corresponding to the second attribute information, and the storage server directly stores the streaming data to be stored.
Optionally, the step of sending the streaming data to be stored to the cloud storage system by using the second attribute information may include:
and sending the streaming data to be stored to a second storage server in the cloud storage system, wherein the second storage server conforms to the second attribute information.
It should be noted that, in order to improve the efficiency of data storage, after the second attribute information is obtained, the front-end device may directly send the streaming data to be stored to the second storage server corresponding to the second attribute information, and does not need to send the streaming data to be stored to the cloud storage system through the main port and then to the second storage server, so that the complexity caused by the cloud storage system issuing is reduced, and if the cloud storage system issues the streaming data to the wrong storage server, the unreliability is caused, and the efficiency and reliability of data storage are improved.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization. And the front-end equipment receives the login result by sending the login request, judges whether the cloud storage system allocates the storage server for the front-end equipment, and directly sends streaming data to be stored if the cloud storage system allocates the storage server for the front-end equipment, so that the step of repeatedly requesting the cloud storage system to allocate the storage server is reduced, and the data storage efficiency is improved. And if the data is not distributed, requesting the cloud storage system to distribute the storage servers, and sending the streaming data to be stored to the storage servers distributed by the cloud storage system to ensure the successful storage of the streaming data.
Based on the embodiment shown in fig. 2, as shown in fig. 3, another streaming data direct storage method provided in the embodiment of the present invention may further include the following steps:
s301, counting the failure times of sending the streaming data to be stored to the cloud storage system.
It should be noted that, during the transmission of the streaming data, a situation that the execution of the storage task is abnormal may occur, for example, the connection between the front-end device and the cloud storage system is abnormal, the work of the cloud storage system is abnormal, and the like, and if the execution of the storage task is abnormal, the front-end device may fail to send the streaming data to be stored to the cloud storage system. Since there is a case of false failure, that is, no failure actually occurs, but the streaming data transmission fails in a short time, in order to avoid the influence of such an abnormal case, the front-end device may attempt to transmit the streaming data to be stored to the cloud storage system multiple times.
S302, when the failure times reach preset times, a storage resource change request is sent to the cloud storage system.
It should be noted that if the front-end device has tried to send the streaming data to be stored to the cloud storage system for multiple times and all failed, that is, the failure number of sending the streaming data to be stored to the cloud storage system reaches a preset number, for example, the failure of sending the streaming data to be stored to the cloud storage system for 5 consecutive times has occurred, it may be determined that the storage task is abnormal in execution, and a new storage server may be requested to the cloud storage system. Therefore, when the failure times reach the preset times, a storage resource change request is sent to the cloud storage system, so that the cloud storage system allocates a third storage server to the front-end device after receiving the storage resource change request, and feeds back third attribute information to the front-end device, wherein the third attribute information is attribute information of the third storage server.
Optionally, the step of sending a storage resource change request to the cloud storage system when the failure times reach a preset number may include:
and when the failure times reach preset times, sending a storage resource change request to a first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information.
It should be noted that, in order to improve the efficiency of data storage, the front-end device may directly send a storage resource change request to the first management server corresponding to the network address information, which reduces the complexity caused by issuing the cloud storage system, and if the cloud storage system issues the storage resource change request, the storage resource change request may be issued to an incorrect management server, which causes unreliability and improves the efficiency and reliability of data storage.
And S303, receiving third attribute information sent by the cloud storage system.
It should be noted that, after receiving the storage resource change request, the cloud storage system allocates, to the front-end device, a third storage server capable of storing the streaming data to be sent by the front-end device according to the information, such as the IP address and/or the port of the front-end device, and the size of the streaming data, included in the storage resource change request, and feeds back attribute information of the third storage server, that is, the IP address information and/or the port information of the third storage server, or identification information, such as the name of the third storage server and the number of the storage server, to the front-end device, where the identification information and the IP address and/or the port of the storage server have a one-to-one correspondence relationship, and thus, the identification information can be mapped to unique IP address information and/or port information.
And S304, sending the streaming data to be stored to the cloud storage system by using the third attribute information.
It should be noted that, after receiving the third attribute information, the front-end device indicates that the cloud storage system has completed allocation of the storage server for the front-end device, and then the front-end device may send the streaming data to be stored to the cloud storage system by using the third attribute information. The stream data to be stored may be encoded video stream, multiple pieces of encoded picture data, or other stream data stored in the front-end device. The front-end device may directly send the streaming data to be stored to the third storage server corresponding to the third attribute information, and the storage server directly stores the streaming data to be stored.
Optionally, the step of sending the streaming data to be stored to the cloud storage system by using the third attribute information may include:
and sending the streaming data to be stored to a third storage server in the cloud storage system, wherein the third storage server is consistent with the third attribute information.
It should be noted that, in order to improve the efficiency of data storage, after the third attribute information is obtained, the front-end device may directly send the streaming data to be stored to the third storage server corresponding to the third attribute information, and does not need to send the streaming data to be stored to the cloud storage system through the main port and then to the third storage server, so that the complexity caused by the cloud storage system issuing is reduced, and if the cloud storage system issues the streaming data to the wrong storage server, the unreliability is caused, and the efficiency and reliability of data storage are improved.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization. And the front-end equipment receives the login result by sending the login request, judges whether the cloud storage system allocates the storage server for the front-end equipment, and directly sends streaming data to be stored if the cloud storage system allocates the storage server for the front-end equipment, so that the step of repeatedly requesting the cloud storage system to allocate the storage server is reduced, and the data storage efficiency is improved. And if the data is not distributed, requesting the cloud storage system to distribute the storage servers, and sending the streaming data to be stored to the storage servers distributed by the cloud storage system to ensure the successful storage of the streaming data. When the storage of the streaming data to be stored fails, determining that the storage task is abnormal by counting the failure times and reaching the preset times, and then requesting the cloud storage system to allocate the storage server to store the streaming data to be stored again, so that the successful storage of the streaming data is further ensured.
In a second aspect, to solve the problem in the prior art, from the perspective of a cloud storage system, an embodiment of the present invention provides a method for directly storing streaming data.
It should be noted that the cloud storage system may include at least one management server and at least one storage server, where the management server is used to manage the storage server, and the storage server is used to store the streaming data. Moreover, the cloud storage system can correspond to an external access address, namely cloud storage network address information, and the cloud storage network address information is stored in the front-end equipment in advance. The cloud storage network address information may be IP address information and/or port information, and the above embodiments are referred to for a configuration mode and a specific form of the cloud storage network address information, which is not described herein again.
As shown in fig. 4, the method for directly storing streaming data provided in the embodiment of the present invention is applied to a cloud storage system, and the method may include the following steps:
s401, when receiving a login request sent by the front-end equipment, judging whether a storage server is allocated to the front-end equipment.
The login request is sent by the front-end equipment based on cloud storage network address information corresponding to the cloud storage system when the front-end equipment receives the storage task instruction, and the cloud storage network address information is stored in the front-end equipment in advance. In order that the cloud storage system can store streaming data to be stored, which is sent by the front-end device, the front-end device can establish communication connection with the cloud storage system based on cloud storage network address information and send a login request to the cloud storage system when receiving a storage task instruction; further, the cloud storage system determines whether a storage server has been allocated for the front-end device.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system.
It should be noted that, the cloud storage system may receive and send operation or instruction messages other than the streaming data through the management server, and the management server may at least include a core processing chip with data processing capability to implement management of the storage server. The cloud storage system comprises at least one management server, which management server manages the storage of the streaming data sent by the front-end device to which storage server can be determined by a preset allocation mechanism, the preset allocation mechanism can be predetermined according to the size of the streaming data, the attributes such as the name of the front-end device and the attributes such as the storage capacity of the storage server, the preset allocation mechanism can be determined by a user, or the cloud storage system can be determined according to the above parameters, wherein the first management server is any management server in the cloud storage system determined according to the preset allocation mechanism. If the cloud storage network address information prestored in the front-end equipment is determined, the network address information of the first management server can be determined accordingly.
Optionally, the step of determining whether the storage server has been allocated to the front-end device when the login request sent by the front-end device is received may include:
when receiving a login request sent by the front-end equipment, the first management server judges whether a storage server is allocated to the front-end equipment.
In order to improve the efficiency of data storage, a login request sent by the front-end device is directly received by the first management server, where the login request may be understood as a message for authentication, the login request may include basic information of the front-end device and basic information of streaming data to be stored, such as a name and an address of the front-end device, and a size of the streaming data, and the cloud storage system does not necessarily allocate a storage server to the front-end device, so the cloud storage system determines whether a storage server has been allocated to the front-end device according to the received login request.
S402, according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end equipment.
It should be noted that, according to the determination result, if the determination result is that the storage server is already allocated to the front-end device, the cloud storage system generates a login result that carries the first attribute information of the storage server, and if the determination result is that the storage server is not allocated to the front-end device, the cloud storage system does not carry the first attribute information. After the login result is generated, the cloud storage system feeds the login result back to the front-end equipment, so that when the front-end equipment judges that the login result carries the first attribute information, the first attribute information is used for sending the streaming data to be stored to the cloud storage system. When the storage server is judged to be allocated to the front-end equipment, the login result carries first attribute information, and the first attribute information is the attribute information of the allocated storage server.
Optionally, the step of generating a login result corresponding to the login request according to the determination result, and feeding back the login result to the front-end device may include:
and the first management server generates a login result corresponding to the login request according to the judgment result and feeds the login result back to the front-end equipment.
It should be noted that the first management server is determined according to a preset allocation mechanism, and if the cloud storage network address information prestored in the front-end device is determined, the network address information of the first management server may also be determined accordingly. In order to improve the efficiency of data storage, the first management server directly generates a login result corresponding to the login request according to the judgment result, and the front-end equipment feeds back the login result.
And S403, storing the streaming data to be stored when receiving the streaming data to be stored sent by the front-end equipment by using the first attribute information.
The front-end device sends the streaming data to be stored to the cloud storage system by using the first attribute information, and the cloud storage system may store the streaming data to be stored to the allocated storage server after receiving the streaming data to be stored.
Optionally, the step of storing the streaming data to be stored when receiving the streaming data to be stored sent by the front-end device by using the first attribute information may include:
and the first storage server stores the streaming data to be stored when receiving the streaming data to be stored sent by the front-end equipment by using the first attribute information.
It should be noted that, in order to improve the efficiency of data storage, the cloud storage system determines the first storage server corresponding to the first attribute information, and the first storage server may directly receive streaming data to be stored, which is sent by the front-end device, without the need that the cloud storage system receives the streaming data to be stored through the main port first and then issues the streaming data to the first storage server, which reduces the complexity caused by issuing the cloud storage system, and if the cloud storage system issues the streaming data to the wrong storage server, the cloud storage system may issue the streaming data to the wrong storage server, thereby bringing unreliability and improving the efficiency and reliability of data storage. The first storage server is a server corresponding to the first attribute information.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization. And the front-end equipment receives the login result by sending the login request, judges whether the cloud storage system allocates the storage server for the front-end equipment, and directly sends streaming data to be stored if the cloud storage system allocates the storage server for the front-end equipment, so that the step of repeatedly requesting the cloud storage system to allocate the storage server is reduced, and the data storage efficiency is improved.
Based on the embodiment shown in fig. 4, as shown in fig. 5, another streaming data direct storage method provided in the embodiment of the present invention may further include, after S402, the following steps:
s501, when a storage resource acquisition request sent by the front-end equipment is received, a second storage server is allocated to the front-end equipment, and second attribute information is generated.
It should be noted that, if the login request sent by the cloud storage system to the front-end device does not carry the first attribute information, it is indicated that the cloud storage system does not allocate a storage server to the front-end device, in order to ensure that the streaming data is successfully stored, the front-end device sends a storage resource acquisition request to the cloud storage system, where the storage resource acquisition request requests the cloud storage system to allocate a storage server, and after receiving the storage resource acquisition request, the cloud storage system allocates a second storage server to the front-end device, generates second attribute information, and feeds back the second attribute information to the front-end device. Or if the IP address of the front-end device changes due to a change in the physical location of the front-end device, and the like, after the login request is re-sent, the login result fed back by the cloud storage system will not carry the first attribute information, and for this case, the storage resource acquisition request also needs to be sent to the cloud storage system. The storage resource acquisition request is as follows: and the front-end equipment is sent based on the cloud storage network address information when judging that the login result does not carry the first attribute information, and the second attribute information is the attribute information of the second storage server.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system.
It should be noted that, the cloud storage system may receive and send operation or instruction messages other than the streaming data through the management server, and the management server may at least include a core processing chip with data processing capability to implement management of the storage server. The cloud storage system comprises at least one management server, which management server manages the storage of the streaming data sent by the front-end device to which storage server can be determined by a preset allocation mechanism, the preset allocation mechanism can be predetermined according to the size of the streaming data, the attributes such as the name of the front-end device and the attributes such as the storage capacity of the storage server, the preset allocation mechanism can be determined by a user, or the cloud storage system can be determined according to the above parameters, wherein the first management server is any management server in the cloud storage system determined according to the preset allocation mechanism. If the cloud storage network address information prestored in the front-end equipment is determined, the network address information of the first management server can be determined accordingly.
Optionally, the step of allocating a second storage server to the front-end device and generating second attribute information when receiving a storage resource acquisition request sent by the front-end device may include:
when receiving a storage resource acquisition request sent by the front-end equipment, the first management server allocates a second storage server to the front-end equipment to generate second attribute information.
It should be noted that the first management server is determined according to a preset allocation mechanism, and if the cloud storage network address information prestored in the front-end device is determined, the network address information of the first management server may also be determined accordingly. In order to improve the efficiency of data storage, a first management server directly receives a storage resource acquisition request, and allocates a second storage server to the front-end equipment according to information such as an IP address and/or a port of the front-end equipment and information such as stream data size included in the storage resource acquisition request, so as to generate second attribute information.
And S502, sending the second attribute information to the front-end equipment.
It should be noted that, after determining that the front-end device is assigned with the second storage server and generating the second attribute information, the cloud storage system feeds back the attribute information of the second storage server to the front-end device, that is, the IP address information and/or the port information of the second storage server, or the identification information such as the name of the second storage server and the number of the storage server, and these identification information have a one-to-one correspondence relationship with the IP address and/or the port of the storage server, so that the unique IP address information and/or the port information can be mapped through the identification information.
Optionally, the step of sending the second attribute information to the front-end device may include:
and the first management server sends the second attribute information to the front-end equipment.
It should be noted that the first management server is determined according to a preset allocation mechanism, and if the cloud storage network address information prestored in the front-end device is determined, the network address information of the first management server may also be determined accordingly. In order to improve the efficiency of data storage, the second attribute information is directly sent to the front-end equipment by the first management server.
And S503, storing the streaming data to be stored when receiving the streaming data to be stored sent by the front-end equipment by using the second attribute information.
It should be noted that, after receiving the second attribute information, the front-end device sends the streaming data to be stored to the cloud storage system by using the second attribute information, and after receiving the streaming data to be stored, the cloud storage system may store the streaming data to be stored in the second storage server corresponding to the second attribute information.
Optionally, the step of storing the streaming data to be stored when receiving the streaming data to be stored sent by the front-end device by using the second attribute information may include:
and the second storage server stores the streaming data to be stored when receiving the streaming data to be stored sent by the front-end equipment by using the second attribute information.
It should be noted that, in order to improve the efficiency of data storage, the cloud storage system determines a second storage server corresponding to the second attribute information, and the second storage server may directly receive streaming data to be stored, which is sent by the front-end device, without the need that the cloud storage system receives the streaming data to be stored through the main port first and then issues the streaming data to the second storage server, which reduces the complexity caused by issuing the cloud storage system, and if the cloud storage system issues the streaming data to the wrong storage server, the cloud storage system may issue the streaming data to the wrong storage server, thereby causing unreliability and improving the efficiency and reliability of data storage. And the second storage server is a server corresponding to the second attribute information.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization. And the front-end equipment receives the login result by sending the login request, judges whether the cloud storage system allocates the storage server for the front-end equipment, and directly sends streaming data to be stored if the cloud storage system allocates the storage server for the front-end equipment, so that the step of repeatedly requesting the cloud storage system to allocate the storage server is reduced, and the data storage efficiency is improved. And if the data is not distributed, requesting the cloud storage system to distribute the storage servers, and sending the streaming data to be stored to the storage servers distributed by the cloud storage system to ensure the successful storage of the streaming data.
Based on the embodiment shown in fig. 5, as shown in fig. 6, another stream data direct storage method provided in the embodiment of the present invention may further include the following steps:
s601, when receiving a storage resource change request sent by the front-end equipment, allocating a third storage server to the front-end equipment, and generating third attribute information.
It should be noted that, during the transmission of the streaming data, a situation that the execution of the storage task is abnormal may occur, for example, the connection between the front-end device and the cloud storage system is abnormal, the work of the cloud storage system is abnormal, and the like, and if the execution of the storage task is abnormal, the front-end device may fail to send the streaming data to be stored to the cloud storage system. Since there is a case of false failure, that is, no failure actually occurs, but the streaming data transmission fails in a short time, in order to avoid the influence of such an abnormal case, the front-end device may attempt to transmit the streaming data to be stored to the cloud storage system multiple times. If the storage task is abnormally executed, the front-end equipment sends a storage resource change request to the cloud storage system, wherein the storage resource change request is as follows: the front-end equipment is sent when the number of times of failure of sending the streaming data to be stored to the cloud storage system reaches the preset number of times. After receiving the storage resource change request, the cloud storage system allocates a third storage server to the front-end device, generates third attribute information, and feeds back the third attribute information to the front-end device, wherein the third attribute information is attribute information of the third storage server.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system.
It should be noted that, the cloud storage system may receive and send operation or instruction messages other than the streaming data through the management server, and the management server may at least include a core processing chip with data processing capability to implement management of the storage server. The cloud storage system comprises at least one management server, which management server manages the storage of the streaming data sent by the front-end device to which storage server can be determined by a preset allocation mechanism, the preset allocation mechanism can be predetermined according to the size of the streaming data, the attributes such as the name of the front-end device and the attributes such as the storage capacity of the storage server, the preset allocation mechanism can be determined by a user, or the cloud storage system can be determined according to the above parameters, wherein the first management server is any management server in the cloud storage system determined according to the preset allocation mechanism. If the cloud storage network address information prestored in the front-end equipment is determined, the network address information of the first management server can be determined accordingly.
Optionally, the step of allocating a third storage server to the front-end device and generating third attribute information when receiving a storage resource change request sent by the front-end device may include:
and when the first management server receives a storage resource change request sent by the front-end equipment, allocating a third storage server to the front-end equipment to generate third attribute information.
It should be noted that the first management server is determined according to a preset allocation mechanism, and if the cloud storage network address information prestored in the front-end device is determined, the network address information of the first management server may also be determined accordingly. In order to improve the efficiency of data storage, the first management server directly receives the storage resource change request, and allocates a third storage server to the front-end equipment according to the information of the IP address and/or the port of the front-end equipment and the information of the streaming data size contained in the storage resource change request, so as to generate third attribute information.
And S602, sending the third attribute information to the front-end equipment.
It should be noted that, after determining that the front-end device is assigned with the third storage server and generating the third attribute information, the cloud storage system feeds back the attribute information of the third storage server to the front-end device, that is, the IP address information and/or the port information of the third storage server, or the identification information such as the name of the third storage server and the number of the storage server, and these identification information have a one-to-one correspondence relationship with the IP address and/or the port of the storage server, so that the unique IP address information and/or the port information can be mapped through the identification information.
Optionally, the step of sending the third attribute information to the front-end device may include:
and the first management server sends the third attribute information to the front-end equipment.
It should be noted that the first management server is determined according to a preset allocation mechanism, and if the cloud storage network address information prestored in the front-end device is determined, the network address information of the first management server may also be determined accordingly. In order to improve the efficiency of data storage, the third attribute information is directly sent to the front-end equipment by the first management server.
S603, when receiving the streaming data to be stored, which is sent by the front-end device using the third attribute information, storing the streaming data to be stored.
It should be noted that, after receiving the third attribute information, the front-end device sends the streaming data to be stored to the cloud storage system by using the third attribute information, and after receiving the streaming data to be stored, the cloud storage system may store the streaming data to be stored in a third storage server corresponding to the third attribute information.
Optionally, the step of storing the streaming data to be stored when receiving the streaming data to be stored sent by the front-end device by using the third attribute information may include:
and the third storage server stores the streaming data to be stored when receiving the streaming data to be stored, which is sent by the front-end equipment by using the third attribute information.
It should be noted that, in order to improve the efficiency of data storage, the cloud storage system determines a third storage server corresponding to the third attribute information, and the third storage server may directly receive streaming data to be stored, which is sent by the front-end device, without the need that the cloud storage system receives the streaming data to be stored through the main port first and then issues the streaming data to the third storage server, which reduces the complexity caused by issuing the cloud storage system, and if the cloud storage system issues the streaming data to the wrong storage server, the cloud storage system may issue the streaming data to the wrong storage server, thereby causing unreliability and improving the efficiency and reliability of data storage. And the third storage server is a server corresponding to the third attribute information.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization. And the front-end equipment receives the login result by sending the login request, judges whether the cloud storage system allocates the storage server for the front-end equipment, and directly sends streaming data to be stored if the cloud storage system allocates the storage server for the front-end equipment, so that the step of repeatedly requesting the cloud storage system to allocate the storage server is reduced, and the data storage efficiency is improved. And if the data is not distributed, requesting the cloud storage system to distribute the storage servers, and sending the streaming data to be stored to the storage servers distributed by the cloud storage system to ensure the successful storage of the streaming data. When the storage of the streaming data to be stored fails, determining that the storage task is abnormal by counting the failure times and reaching the preset times, and then requesting the cloud storage system to allocate the storage server to store the streaming data to be stored again, so that the successful storage of the streaming data is further ensured.
For convenience of understanding, the timing diagram shown in fig. 7 shows a schematic flow chart of the streaming data direct storage method provided by the embodiment of the present invention from the interaction perspective of the front-end device, the management server, the first storage server, the second storage server, and the user. The cloud storage system comprises at least one management server and at least one storage server, wherein the management server is used for managing each storage server, and each storage server is used for storing data. Moreover, the front-end device is preconfigured with cloud storage network address information, which is specifically an external access address of the management server in the cloud storage system, and reference is made to the above embodiment for a specific form and a specific configuration mode of the cloud storage network address information, which is not described herein again. Optionally, the front-end device may be a camera, a webcam, or a personal computer, but is not limited thereto. Also, the streaming data to be stored sent by the head end device may include, but is not limited to, video.
The user configures the cloud storage network address information to the front-end equipment, and the front-end equipment can reply a message whether the configuration is successful or not to the user; then, the user configures a real-time video recording plan to the front-end equipment, and the front-end equipment sends a login request to the management server after receiving the real-time video recording plan; the front-end equipment receives a login result replied by the management server, and if the login result carries information of the first storage server, the front-end equipment sends streaming data to the first storage server, and the first storage server stores the data after receiving the streaming data; if the login result does not carry the information of the first storage server, the front-end equipment sends a storage resource acquisition request to the management server, the management server replies the attribute information of the second storage server to the front-end equipment, and the front-end equipment sends streaming data to the second storage server; and the second storage server stores the data after receiving the streaming data.
Fig. 8 is a timing diagram illustrating a flow diagram of exception handling in the streaming data direct storage method according to the embodiment of the present invention from an interaction perspective of the front-end device, the management server, the first storage server, the second storage server, the third storage server, and the user. The user configures the cloud storage network address information to the front-end equipment, and the front-end equipment can reply a message whether the configuration is successful or not to the user; then, the user configures a real-time video recording plan to the front-end equipment, and the front-end equipment sends a login request to the management server after receiving the real-time video recording plan; the front-end equipment receives a login result replied by the management server, and if the login result carries information of the first storage server, the front-end equipment sends streaming data to the first storage server, and the first storage server stores the data after receiving the streaming data; if the login result does not carry the information of the first storage server, the front-end equipment sends a storage resource acquisition request to the management server, the management server replies the attribute information of the second storage server to the front-end equipment, and the front-end equipment sends streaming data to the second storage server; and the second storage server stores the data after receiving the streaming data. The front-end equipment detects whether the streaming data is successfully sent, if the number of times of failure sending reaches a preset number, the front-end equipment sends a storage resource updating request to the management server, the management server replies attribute information of a third storage server to the front-end equipment, the front-end equipment sends the streaming data to the third storage server, and the third storage server stores the data after receiving the streaming data.
In a third aspect, corresponding to the method embodiment provided above, an embodiment of the present invention further provides a streaming data direct memory system, as shown in fig. 9, where the streaming data direct memory system includes: the system comprises front-end equipment 910 and a cloud storage system 920, wherein cloud storage network address information is stored in the front-end equipment 910 in advance, and the cloud storage network address information is an external access address of the cloud storage system 920;
the front-end device 910 is configured to send a login request to the cloud storage system 920 according with the stored cloud storage network address information when receiving the storage task instruction; receiving a login result fed back by the cloud storage system 920; judging whether the login result carries the first attribute information or not; if the login result carries the first attribute information, sending streaming data to be stored to the cloud storage system 920 by using the first attribute information;
the cloud storage system 920 is configured to, when receiving a login request sent by a front-end device, determine whether a storage server has been allocated to the front-end device 910; according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end device 910; when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the first attribute information, storing the streaming data to be stored.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system 920, where the first management server is any one management server in the cloud storage system 920 determined according to a preset allocation mechanism;
when receiving the storage task instruction, the front-end device 910 sends a login request to the cloud storage system 920 conforming to the stored cloud storage network address information, specifically:
when a storage task instruction is received, sending a login request to the first management server in the cloud storage system 920, wherein the login request conforms to the cloud storage network address information;
the front-end device 910 sends streaming data to be stored to the cloud storage system 920 by using the first attribute information, specifically:
sending the streaming data to be stored to a first storage server in the cloud storage system 920, which conforms to the first attribute information, so that the first storage server stores the streaming data to be stored;
when receiving a login request sent by a front-end device 910, the cloud storage system 920 determines whether a storage server has been allocated to the front-end device 910; according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end device 910, specifically:
when receiving a login request sent by a front-end device 910, the first management server determines whether a storage server has been allocated to the front-end device 910; according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end device 910;
when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the first attribute information, the cloud storage system 920 stores the streaming data to be stored, specifically:
when receiving streaming data to be stored, which is sent by the front-end device 910 by using the first attribute information, a first storage server stores the streaming data to be stored, where the first storage server is a server conforming to the first attribute information.
Optionally, the front-end device 910 may further be configured to: when the login result does not carry the first attribute information, sending a storage resource acquisition request to the cloud storage system 920; receiving second attribute information fed back by the cloud storage system 920; sending the streaming data to be stored to the cloud storage system 920 by using the second attribute information;
the cloud storage system 920 may further be configured to: when the storage resource acquisition request is received, allocating a second storage server to the front-end device 910, and generating second attribute information, where the second attribute information is attribute information of the second storage server; sending the second attribute information to the front-end device 910; when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the second attribute information, storing the streaming data to be stored.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system, where the first management server is any one of the management servers in the cloud storage system 920 determined according to a preset allocation mechanism;
when the login result does not carry the first attribute information, the front-end device 910 sends a storage resource acquisition request to the cloud storage system 920, which may specifically be:
when the login result does not carry the first attribute information, sending a storage resource acquisition request to the first management server in the cloud storage system 920, wherein the first management server conforms to the cloud storage network address information;
the front-end device 910 sends the streaming data to be stored to the cloud storage system 920 by using the second attribute information, which may specifically be:
sending the streaming data to be stored to the second storage server in the cloud storage system 920, which conforms to the second attribute information;
when receiving the storage resource acquisition request, the cloud storage system 920 allocates a second storage server to the front-end device 910, and generates second attribute information; sending the second attribute information to the front-end device 910, which may specifically be:
when receiving a storage resource acquisition request sent by the front-end device 910, the first management server allocates a second storage server to the front-end device 910, and generates second attribute information; sending the second attribute information to the front-end device 910;
when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the second attribute information, the cloud storage system 920 stores the streaming data to be stored, which may specifically be:
when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the second attribute information, the second storage server stores the streaming data to be stored.
Optionally, the front-end device 910 may further be configured to: counting the failure times of sending the streaming data to be stored to the cloud storage system 920; when the failure times reach preset times, sending a storage resource change request to the cloud storage system 920; receiving third attribute information sent by the cloud storage system 920; sending the streaming data to be stored to the cloud storage system 920 by using the third attribute information;
the cloud storage system 920 may further be configured to: when a storage resource change request sent by the front-end device 910 is received, allocating a third storage server to the front-end device 910, and generating third attribute information, where the third attribute information is attribute information of the third storage server; sending the third attribute information to the front-end device 910; when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the third attribute information, storing the streaming data to be stored.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system 920; the first management server is any one management server in the cloud storage system 920 determined according to a preset allocation mechanism;
when the failure times reach preset times, the front-end device 910 sends a storage resource change request to the cloud storage system 920, which may specifically be:
when the failure times reach preset times, sending a storage resource change request to the first management server in the cloud storage system 920, wherein the first management server is consistent with the cloud storage network address information;
the front-end device 910 sends the streaming data to be stored to the cloud storage system 920 by using the third attribute information, which may specifically be:
sending the streaming data to be stored to the third storage server in the cloud storage system 920, which conforms to the third attribute information;
when receiving a storage resource change request sent by the front-end device 910, the cloud storage system 920 allocates a third storage server to the front-end device 910, and generates third attribute information; sending the third attribute information to the front-end device 910, which may specifically be:
when receiving a storage resource change request sent by the front-end device 910, the first management server allocates a third storage server to the front-end device 910, and generates third attribute information; sending the third attribute information to the front-end device 910;
when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the third attribute information, the cloud storage system stores the streaming data to be stored, which may specifically be:
when receiving the streaming data to be stored, which is sent by the front-end device 910 by using the third attribute information, the third storage server stores the streaming data to be stored.
It should be noted that, the streaming data direct memory system in the embodiment of the present application is a system applying the streaming data direct memory method, and all embodiments of the streaming data direct memory method are applicable to the system and can achieve the same or similar beneficial effects.
In a fourth aspect, corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a front-end device, as shown in fig. 10, where the front-end device may include: a collector 1010, a processor 1020, a memory 1030, an encoder 1040, a communication interface 1050, and a bus 1060;
the collector 1010, the processor 1020, the memory 1030, the encoder 1040 and the communication interface 1050 are connected through the bus 1060, complete communication with each other, and send stream data to be stored through the communication interface 1050;
the collector 1010 is used for collecting data to be stored;
the memory 1030 is used for storing executable program code;
the processor 1020 is configured to execute a streaming data direct memory method by reading the executable program code stored in the memory 1030 to run a program corresponding to the executable program code;
and the encoder 1040 is configured to encode the data to be stored, which is collected by the collector 1010.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system, where the first management server is any one of the management servers in the cloud storage system determined according to a preset allocation mechanism;
when receiving the storage task instruction, the processor 1020 sends a login request to the cloud storage system conforming to the cloud storage network address information, which may specifically be:
when a storage task instruction is received, sending a login request to the first management server in the cloud storage system, wherein the login request conforms to the cloud storage network address information;
the processor 1020 sends the streaming data to be stored to the cloud storage system by using the first attribute information, which may specifically be:
and sending the streaming data to be stored to a first storage server in the cloud storage system, wherein the first storage server conforms to the first attribute information, so that the first storage server stores the streaming data to be stored.
Optionally, the processor 1020 may be specifically configured to:
when the login result does not carry the first attribute information, sending a storage resource acquisition request to the cloud storage system, so that the cloud storage system allocates a second storage server to the front-end equipment after receiving the storage resource acquisition request, and feeding back second attribute information to the front-end equipment, wherein the second attribute information is attribute information of the second storage server;
receiving second attribute information fed back by the cloud storage system;
and sending the streaming data to be stored to the cloud storage system by using the second attribute information, so that the cloud storage system stores the streaming data to be stored.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system, where the first management server is any one of the management servers in the cloud storage system determined according to a preset allocation mechanism;
when the login result does not carry the first attribute information, the processor 1020 sends a storage resource acquisition request to the cloud storage system, which may specifically be:
when the login result does not carry the first attribute information, sending a storage resource acquisition request to the first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information;
the processor 1020 sends the streaming data to be stored to the cloud storage system by using the second attribute information, which may specifically be:
and sending the streaming data to be stored to the second storage server in the cloud storage system, which conforms to the second attribute information, so that the second storage server stores the streaming data to be stored.
Optionally, the processor 1020 may be specifically configured to:
counting the failure times of sending the streaming data to be stored to the cloud storage system;
when the failure times reach preset times, sending a storage resource change request to the cloud storage system, so that the cloud storage system allocates a third storage server to the front-end equipment after receiving the storage resource change request, and feeding back third attribute information to the front-end equipment, wherein the third attribute information is attribute information of the third storage server;
receiving third attribute information sent by the cloud storage system;
and sending the streaming data to be stored to the cloud storage system by using the third attribute information, so that the cloud storage system stores the streaming data to be stored.
Optionally, the cloud storage network address information is network address information of a first management server in the cloud storage system, where the first management server is any one of the management servers in the cloud storage system determined according to a preset allocation mechanism;
when the failure times reach preset times, the processor 1020 sends a storage resource change request to the cloud storage system, which may specifically be:
when the failure times reach preset times, sending a storage resource change request to the first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information;
the processor 1020 sends the streaming data to be stored to the cloud storage system by using the third attribute information, which may specifically be:
and sending the streaming data to be stored to the third storage server in the cloud storage system, which conforms to the third attribute information, so that the third storage server stores the streaming data to be stored.
It should be noted that, the front-end device in the embodiment of the present application is a device to which the streaming data direct memory method is applied, and all embodiments of the streaming data direct memory method are applicable to the device and can achieve the same or similar beneficial effects.
In a fifth aspect, corresponding to the foregoing method embodiment, an embodiment of the present invention further provides a cloud storage system, as shown in fig. 11, where the cloud storage system may include: at least one management server and at least one storage server;
the management system comprises a first management server 1110, configured to determine whether a storage server has been allocated to a front-end device when a login request sent by the front-end device is received, where the login request is sent by the front-end device based on cloud storage network address information corresponding to a cloud storage system when a storage task instruction is received, the cloud storage network address information is stored in the front-end device in advance, the cloud storage network address information is network address information of a first management server in the cloud storage system, and the first management server is any one management server in the cloud storage system determined according to a preset allocation mechanism; according to a judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end device, so that when the front-end device judges that the login result carries first attribute information, the front-end device sends streaming data to be stored to the cloud storage system by using the first attribute information, wherein when the front-end device is judged to be allocated with a storage server, the login result carries the first attribute information, the first attribute information is the attribute information of the allocated storage server, and the first management server is a management server conforming to the cloud storage network address information;
a first storage server 1120, configured to store the streaming data to be stored when receiving the streaming data to be stored, which is sent by the front-end device by using the first attribute information.
By applying the embodiment, when receiving the storage task instruction, the front-end device sends a login request to the cloud storage server conforming to the cloud storage network address information, judges whether the login result fed back by the cloud storage server carries the attribute information of the allocated storage server, and if so, sends the streaming data to be stored to the cloud storage system by using the attribute information. Because the front-end equipment is the active equipment, the front-end equipment can timely detect the execution abnormity of the storage task and process the execution abnormity, thereby reducing the probability of real-time data loss and reducing the complexity of realization.
Optionally, the first management server 1110 may be further specifically configured to:
when receiving a storage resource acquisition request sent by the front-end device, allocating a second storage server 1130 to the front-end device, and generating second attribute information, where the storage resource acquisition request is: the front-end device sends the login result based on the cloud storage network address information when judging that the login result does not carry the first attribute information, and the second attribute information is attribute information of the second storage server 1130;
sending the second attribute information to the front-end equipment, so that the front-end equipment sends the streaming data to be stored to the cloud storage system by using the second attribute information;
the second storage server 1130 is configured to store the streaming data to be stored when receiving the streaming data to be stored, which is sent by the front-end device by using the second attribute information.
Optionally, the first management server 1110 may be further specifically configured to:
when a storage resource change request sent by the front-end device is received, allocating a third storage server 1140 to the front-end device, and generating third attribute information, where the storage resource change request is: the front-end device is sent when the number of failures of sending the streaming data to be stored to the cloud storage system reaches a preset number, and the third attribute information is the attribute information of the third storage server 1140;
sending the third attribute information to the front-end device, so that the front-end device sends the streaming data to be stored to the cloud storage system by using the third attribute information;
the second storage server 1140 is configured to store the streaming data to be stored when streaming data to be stored sent by the front-end device by using the third attribute information is received.
It should be noted that, the cloud storage system according to the embodiment of the present application is a cloud storage system to which the streaming data direct storage method is applied, and all embodiments of the streaming data direct storage method are applicable to the cloud storage system and can achieve the same or similar beneficial effects.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only for the preferred embodiment of the present invention, and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention shall fall within the protection scope of the present invention.

Claims (20)

1. The method for directly storing the streaming data is applied to a front-end device, wherein cloud storage network address information is stored in the front-end device, and the method comprises the following steps:
when a storage task instruction is received, sending a login request to a cloud storage system conforming to the cloud storage network address information, so that the cloud storage system judges whether a storage server is allocated to the front-end equipment or not after receiving the login request, and generating a login result corresponding to the login request according to a judgment result, wherein when the judgment result is yes, the login result carries first attribute information, the first attribute information is attribute information of the allocated storage server, and the login request contains basic information of the front-end equipment;
receiving a login result fed back by the cloud storage system;
judging whether the login result carries the first attribute information or not;
and if the login result carries the first attribute information, sending streaming data to be stored to the cloud storage system by using the first attribute information so as to enable the cloud storage system to store the streaming data to be stored.
2. The streaming data direct storage method according to claim 1, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system, wherein the first management server is any one of the cloud storage systems determined according to a preset allocation mechanism;
when receiving a storage task instruction, sending a login request to a cloud storage system conforming to the cloud storage network address information, including:
when a storage task instruction is received, sending a login request to the first management server in the cloud storage system, wherein the login request conforms to the cloud storage network address information;
the sending streaming data to be stored to the cloud storage system by using the first attribute information includes:
and sending the streaming data to be stored to a first storage server in the cloud storage system, wherein the first storage server conforms to the first attribute information, so that the first storage server stores the streaming data to be stored.
3. The method for directly storing streaming data according to claim 1, wherein after determining whether the login result carries the first attribute information, the method further comprises:
when the login result does not carry the first attribute information, sending a storage resource acquisition request to the cloud storage system, so that the cloud storage system allocates a second storage server to the front-end equipment after receiving the storage resource acquisition request, and feeding back second attribute information to the front-end equipment, wherein the second attribute information is attribute information of the second storage server;
receiving second attribute information fed back by the cloud storage system;
and sending the streaming data to be stored to the cloud storage system by using the second attribute information, so that the cloud storage system stores the streaming data to be stored.
4. The streaming data direct storage method according to claim 3, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system, wherein the first management server is any one of the cloud storage systems determined according to a preset allocation mechanism;
when the login result does not carry the first attribute information, sending a storage resource acquisition request to the cloud storage system, including:
when the login result does not carry the first attribute information, sending a storage resource acquisition request to the first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information;
the sending the streaming data to be stored to the cloud storage system by using the second attribute information includes:
and sending the streaming data to be stored to the second storage server in the cloud storage system, which conforms to the second attribute information, so that the second storage server stores the streaming data to be stored.
5. The streaming data direct storage method according to claim 1 or 3, wherein the method further comprises:
counting the failure times of sending the streaming data to be stored to the cloud storage system;
when the failure times reach preset times, sending a storage resource change request to the cloud storage system, so that the cloud storage system allocates a third storage server to the front-end equipment after receiving the storage resource change request, and feeding back third attribute information to the front-end equipment, wherein the third attribute information is attribute information of the third storage server;
receiving third attribute information sent by the cloud storage system;
and sending the streaming data to be stored to the cloud storage system by using the third attribute information, so that the cloud storage system stores the streaming data to be stored.
6. The streaming data direct storage method according to claim 5, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system, wherein the first management server is any one of the cloud storage systems determined according to a preset allocation mechanism;
when the failure times reach preset times, sending a storage resource change request to the cloud storage system, including:
when the failure times reach preset times, sending a storage resource change request to the first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information;
the sending the streaming data to be stored to the cloud storage system by using the third attribute information includes:
and sending the streaming data to be stored to the third storage server in the cloud storage system, which conforms to the third attribute information, so that the third storage server stores the streaming data to be stored.
7. The stream data direct storage method is applied to a cloud storage system, and comprises the following steps:
when a login request sent by front-end equipment is received, judging whether a storage server is allocated to the front-end equipment or not, wherein the login request is sent by the front-end equipment based on cloud storage network address information corresponding to the cloud storage system when a storage task instruction is received, the cloud storage network address information is stored in the front-end equipment in advance, and the login request comprises basic information of the front-end equipment;
according to a judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end equipment, so that when the front-end equipment judges that the login result carries first attribute information, the front-end equipment sends streaming data to be stored to the cloud storage system by using the first attribute information, wherein when the front-end equipment is judged to be allocated with a storage server, the login result carries the first attribute information, and the first attribute information is the attribute information of the allocated storage server;
and when receiving streaming data to be stored, which is sent by the front-end equipment by using the first attribute information, storing the streaming data to be stored.
8. The streaming data direct storage method according to claim 7, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system, wherein the first management server is any one of the management servers in the cloud storage system determined according to a preset allocation mechanism;
when receiving a login request sent by a front-end device, the method for judging whether a storage server is allocated to the front-end device comprises the following steps:
when the first management server receives a login request sent by the front-end equipment, judging whether a storage server is allocated to the front-end equipment or not;
the generating a login result corresponding to the login request according to the judgment result, and feeding back the login result to the front-end device includes:
the first management server generates a login result corresponding to the login request according to a judgment result, and feeds the login result back to the front-end equipment;
when receiving streaming data to be stored, which is sent by the front-end device by using the first attribute information, storing the streaming data to be stored, including:
and when receiving streaming data to be stored, which is sent by the front-end equipment by using the first attribute information, a first storage server stores the streaming data to be stored, wherein the first storage server is a server conforming to the first attribute information.
9. The method according to claim 7, wherein after generating a login result corresponding to the login request according to the determination result and feeding back the login result to the front-end device, the method further comprises:
when a storage resource acquisition request sent by the front-end equipment is received, allocating a second storage server to the front-end equipment to generate second attribute information, wherein the storage resource acquisition request is as follows: the front-end equipment is sent based on the cloud storage network address information when judging that the login result does not carry first attribute information, and the second attribute information is attribute information of the second storage server;
sending the second attribute information to the front-end equipment, so that the front-end equipment sends the streaming data to be stored to the cloud storage system by using the second attribute information;
and when receiving the streaming data to be stored, which is sent by the front-end equipment by using the second attribute information, storing the streaming data to be stored.
10. The streaming data direct storage method according to claim 9, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system, and wherein the first management server is any one of the management servers in the cloud storage system determined according to a preset allocation mechanism;
when receiving a storage resource acquisition request sent by the front-end device, the method allocates a second storage server to the front-end device, and generates second attribute information, including:
when receiving a storage resource acquisition request sent by the front-end equipment, the first management server allocates a second storage server to the front-end equipment to generate second attribute information;
the sending the second attribute information to the front-end device includes:
the first management server sends the second attribute information to the front-end equipment;
when receiving streaming data to be stored, which is sent by the front-end device by using the second attribute information, storing the streaming data to be stored, including:
and when receiving streaming data to be stored, which is sent by the front-end equipment by using the second attribute information, a second storage server stores the streaming data to be stored, wherein the second storage server is a server conforming to the second attribute information.
11. The streaming data direct storage method according to claim 7 or 9, wherein the method further comprises:
when a storage resource change request sent by the front-end equipment is received, allocating a third storage server to the front-end equipment to generate third attribute information, wherein the storage resource change request is as follows: the front-end equipment is sent when the counted failure times of sending the streaming data to be stored to the cloud storage system reach preset times, and the third attribute information is the attribute information of the third storage server;
sending the third attribute information to the front-end device, so that the front-end device sends the streaming data to be stored to the cloud storage system by using the third attribute information;
and when receiving the streaming data to be stored, which is sent by the front-end equipment by using the third attribute information, storing the streaming data to be stored.
12. The streaming data direct storage method according to claim 11, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system; the first management server is any one management server in the cloud storage system determined according to a preset allocation mechanism;
when receiving a storage resource change request sent by the front-end device, allocating a third storage server to the front-end device, and generating third attribute information, including:
when receiving a storage resource change request sent by the front-end equipment, the first management server allocates a third storage server to the front-end equipment to generate third attribute information;
the sending the third attribute information to the front-end device includes:
the first management server sends the third attribute information to the front-end equipment;
when receiving streaming data to be stored, which is sent by the front-end device by using the third attribute information, storing the streaming data to be stored, including:
and when receiving streaming data to be stored, which is sent by the front-end equipment by using the third attribute information, a third storage server stores the streaming data to be stored, wherein the third storage server is a server conforming to the third attribute information.
13. A streaming data direct memory system, the system comprising:
the front-end equipment is used for sending a login request to the cloud storage system which is consistent with the stored cloud storage network address information when receiving the storage task instruction; receiving a login result fed back by the cloud storage system; judging whether the login result carries first attribute information or not; if the login result carries the first attribute information, sending streaming data to be stored to the cloud storage system by using the first attribute information, wherein the login request comprises basic information of the front-end equipment;
the cloud storage system is used for judging whether a storage server is allocated to the front-end equipment or not when a login request sent by the front-end equipment is received; according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end equipment; and when receiving streaming data to be stored, which is sent by the front-end equipment by using the first attribute information, storing the streaming data to be stored.
14. The streaming data direct storage system according to claim 13, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system, and wherein the first management server is any one of the cloud storage systems determined according to a preset allocation mechanism;
when receiving a storage task instruction, the front-end device sends a login request to a cloud storage system conforming to the stored cloud storage network address information, and the method specifically comprises the following steps:
when a storage task instruction is received, sending a login request to the first management server in the cloud storage system, wherein the login request conforms to the cloud storage network address information;
the front-end device sends streaming data to be stored to the cloud storage system by using the first attribute information, specifically:
sending the streaming data to be stored to a first storage server in the cloud storage system, wherein the first storage server conforms to the first attribute information, so that the streaming data to be stored is stored by the first storage server;
when the cloud storage system receives a login request sent by front-end equipment, judging whether a storage server is allocated to the front-end equipment or not; according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end equipment, specifically:
when receiving a login request sent by front-end equipment, the first management server judges whether a storage server is allocated to the front-end equipment; according to the judgment result, generating a login result corresponding to the login request, and feeding back the login result to the front-end equipment;
when the cloud storage system receives streaming data to be stored, which is sent by the front-end device by using the first attribute information, the cloud storage system stores the streaming data to be stored, specifically:
and when receiving streaming data to be stored, which is sent by the front-end equipment by using the first attribute information, a first storage server stores the streaming data to be stored, wherein the first storage server is a server conforming to the first attribute information.
15. The streaming data direct memory system according to claim 13, wherein the front-end device is further configured to send a storage resource acquisition request to the cloud storage system when the login result does not carry the first attribute information; receiving second attribute information fed back by the cloud storage system; sending the streaming data to be stored to the cloud storage system by using the second attribute information;
the cloud storage system is further configured to allocate a second storage server to the front-end device when the storage resource acquisition request is received, and generate second attribute information, where the second attribute information is attribute information of the second storage server; sending the second attribute information to the front-end equipment; and when receiving the streaming data to be stored, which is sent by the front-end equipment by using the second attribute information, storing the streaming data to be stored.
16. The streaming data direct storage system according to claim 15, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system, and wherein the first management server is any one of the cloud storage systems determined according to a preset allocation mechanism;
when the login result does not carry the first attribute information, the front-end device sends a storage resource acquisition request to the cloud storage system, specifically:
when the login result does not carry the first attribute information, sending a storage resource acquisition request to the first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information;
the front-end device sends the streaming data to be stored to the cloud storage system by using the second attribute information, specifically:
sending the streaming data to be stored to the second storage server in the cloud storage system, wherein the second storage server conforms to the second attribute information;
when the cloud storage system receives the storage resource acquisition request, allocating a second storage server to the front-end equipment to generate second attribute information; sending the second attribute information to the front-end device, specifically:
when receiving a storage resource acquisition request sent by the front-end equipment, the first management server allocates a second storage server to the front-end equipment to generate second attribute information; sending the second attribute information to the front-end equipment;
when receiving streaming data to be stored, which is sent by the front-end device by using the second attribute information, the cloud storage system stores the streaming data to be stored, specifically:
and when receiving the streaming data to be stored, which is sent by the front-end equipment by using the second attribute information, the second storage server stores the streaming data to be stored.
17. The streaming data direct storage system according to claim 13 or 15, wherein the front-end device is further configured to count the number of failures in sending the streaming data to be stored to the cloud storage system; when the failure times reach preset times, sending a storage resource change request to the cloud storage system; receiving third attribute information sent by the cloud storage system; sending the streaming data to be stored to the cloud storage system by using the third attribute information;
the cloud storage system is further configured to allocate a third storage server to the front-end device to generate third attribute information when receiving a storage resource change request sent by the front-end device, where the third attribute information is attribute information of the third storage server; sending the third attribute information to the front-end equipment; and when receiving the streaming data to be stored, which is sent by the front-end equipment by using the third attribute information, storing the streaming data to be stored.
18. The streaming data direct storage system according to claim 17, wherein the cloud storage network address information is network address information of a first management server in the cloud storage system; the first management server is any one management server in the cloud storage system determined according to a preset allocation mechanism;
when the failure times reach preset times, the front-end equipment sends a storage resource change request to the cloud storage system, specifically:
when the failure times reach preset times, sending a storage resource change request to the first management server in the cloud storage system, wherein the first management server is consistent with the cloud storage network address information;
the front-end device sends the streaming data to be stored to the cloud storage system by using the third attribute information, specifically:
sending the streaming data to be stored to the third storage server in the cloud storage system, wherein the third storage server conforms to the third attribute information;
when receiving a storage resource change request sent by the front-end equipment, the cloud storage system allocates a third storage server to the front-end equipment to generate third attribute information; sending the third attribute information to the front-end device, specifically:
when receiving a storage resource change request sent by the front-end equipment, the first management server allocates a third storage server to the front-end equipment to generate third attribute information; sending the third attribute information to the front-end equipment;
when the cloud storage system receives the streaming data to be stored, which is sent by the front-end device by using the third attribute information, the cloud storage system stores the streaming data to be stored, specifically:
and when receiving the streaming data to be stored, which is sent by the front-end equipment by using the third attribute information, the third storage server stores the streaming data to be stored.
19. A head-end apparatus, characterized in that the head-end apparatus comprises: the device comprises a collector, a processor, a memory, an encoder, a communication interface and a bus;
the collector, the processor, the memory, the encoder and the communication interface are connected through the bus and complete mutual communication, and stream data to be stored is sent through the communication interface;
the collector is used for collecting data to be stored;
the memory is used for storing executable program codes;
the processor is used for executing a program corresponding to the executable program code by reading the executable program code stored in the memory so as to execute the streaming data direct storage method according to any one of claims 1 to 6;
and the encoder is used for encoding the data to be stored, which is acquired by the acquisition device.
20. A cloud storage system, the cloud storage system comprising: at least one management server and at least one storage server;
the system comprises a first management server and a second management server, wherein the first management server is used for judging whether a storage server is allocated to front-end equipment or not when a login request sent by the front-end equipment is received, the login request is sent by the front-end equipment based on cloud storage network address information corresponding to a cloud storage system when a storage task instruction is received, the cloud storage network address information is stored in the front-end equipment in advance, the cloud storage network address information is the network address information of a first management server in the cloud storage system, and the first management server is any one management server in the cloud storage system determined according to a preset allocation mechanism; according to a judgment result, a login result corresponding to the login request is generated, and the login result is fed back to the front-end equipment, so that when the front-end equipment judges that the login result carries first attribute information, streaming data to be stored is sent to the cloud storage system by using the first attribute information, wherein when the front-end equipment is judged to be allocated with a storage server, the login result carries the first attribute information, the first attribute information is the attribute information of the allocated storage server, the first management server is a management server conforming to the cloud storage network address information, and the login request comprises basic information of the front-end equipment;
and the first storage server is used for storing the streaming data to be stored when the streaming data to be stored sent by the front-end equipment by using the first attribute information is received.
CN201710384897.6A 2017-05-26 2017-05-26 Front-end equipment, cloud storage server, and streaming data direct storage method and system Active CN108933803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710384897.6A CN108933803B (en) 2017-05-26 2017-05-26 Front-end equipment, cloud storage server, and streaming data direct storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710384897.6A CN108933803B (en) 2017-05-26 2017-05-26 Front-end equipment, cloud storage server, and streaming data direct storage method and system

Publications (2)

Publication Number Publication Date
CN108933803A CN108933803A (en) 2018-12-04
CN108933803B true CN108933803B (en) 2021-11-19

Family

ID=64450381

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710384897.6A Active CN108933803B (en) 2017-05-26 2017-05-26 Front-end equipment, cloud storage server, and streaming data direct storage method and system

Country Status (1)

Country Link
CN (1) CN108933803B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113905019B (en) * 2021-09-29 2023-12-01 天翼物联科技有限公司 Data transmission method, device, equipment and medium based on terminal address management

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281314A (en) * 2011-01-30 2011-12-14 程旭 Realization method and apparatus for high-efficient and safe data cloud storage system
CN102761575A (en) * 2011-04-28 2012-10-31 南京中兴新软件有限责任公司 Data synchronization method, data synchronization system and portable mobile acquisition device
CN104202385A (en) * 2014-08-27 2014-12-10 四川长虹电器股份有限公司 Data backup and updating method of distributed file system
CN104317803A (en) * 2014-09-23 2015-01-28 厦门美柚信息科技有限公司 Data access structure and method of database cluster
CN104503864A (en) * 2014-11-20 2015-04-08 北京世纪高蓝科技有限公司 Method and device for file backup based on local area network
CN105208078A (en) * 2015-08-13 2015-12-30 飞狐信息技术(天津)有限公司 File storage system and method
CN105245701A (en) * 2015-09-25 2016-01-13 上海斐讯数据通信技术有限公司 Data protection system and data protection method for mobile terminal
CN106302757A (en) * 2016-08-19 2017-01-04 成都全码特时代科技有限公司 A kind of server cluster system based on cloud storage
CN106657175A (en) * 2015-10-30 2017-05-10 李永诚 Method for storing equipment information of mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100333116A1 (en) * 2009-06-30 2010-12-30 Anand Prahlad Cloud gateway system for managing data storage to cloud storage sites
US20170134815A1 (en) * 2015-05-06 2017-05-11 Joshua LOMELINO Systems for creating and distributing videos of real estate

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102281314A (en) * 2011-01-30 2011-12-14 程旭 Realization method and apparatus for high-efficient and safe data cloud storage system
CN102761575A (en) * 2011-04-28 2012-10-31 南京中兴新软件有限责任公司 Data synchronization method, data synchronization system and portable mobile acquisition device
CN104202385A (en) * 2014-08-27 2014-12-10 四川长虹电器股份有限公司 Data backup and updating method of distributed file system
CN104317803A (en) * 2014-09-23 2015-01-28 厦门美柚信息科技有限公司 Data access structure and method of database cluster
CN104503864A (en) * 2014-11-20 2015-04-08 北京世纪高蓝科技有限公司 Method and device for file backup based on local area network
CN105208078A (en) * 2015-08-13 2015-12-30 飞狐信息技术(天津)有限公司 File storage system and method
CN105245701A (en) * 2015-09-25 2016-01-13 上海斐讯数据通信技术有限公司 Data protection system and data protection method for mobile terminal
CN106657175A (en) * 2015-10-30 2017-05-10 李永诚 Method for storing equipment information of mobile terminal
CN106302757A (en) * 2016-08-19 2017-01-04 成都全码特时代科技有限公司 A kind of server cluster system based on cloud storage

Also Published As

Publication number Publication date
CN108933803A (en) 2018-12-04

Similar Documents

Publication Publication Date Title
CN106850710B (en) Data cloud storage system, client terminal, storage server and application method
US20220269564A1 (en) Processing node management method, configuration method, and related apparatus
CN108696581B (en) Distributed information caching method and device, computer equipment and storage medium
EP3633957B1 (en) Data storage method, storage server, storage medium and system
US20140201356A1 (en) Monitoring system of managing cloud-based hosts and monitoring method using for the same
JP2009271904A (en) Distribution management method, distribution management system and distribution management server
EP3745678B1 (en) Storage system, and method and apparatus for allocating storage resources
CN112333249B (en) Business service system and method
EP3291592B1 (en) Monitoring management method and apparatus
US20160344582A1 (en) Call home cluster
CN112261175B (en) Asset information updating method, device, equipment and medium
CN104598300A (en) Distributive business process customization method and system
KR101768365B1 (en) Notification Failure Management Method and System for Subscription-Notification in M2M/IoT System
CN112559461A (en) File transmission method and device, storage medium and electronic equipment
CN115426361A (en) Distributed client packaging method and device, main server and storage medium
CN108933803B (en) Front-end equipment, cloud storage server, and streaming data direct storage method and system
CN107426012B (en) Fault recovery method and device based on super-fusion architecture
CN113064732A (en) Distributed system and management method thereof
CN114090268B (en) Container management method and container management system
CN114172903A (en) Node capacity expansion method, device, equipment and medium of slarm scheduling system
CN112799796A (en) Timed task management method, device and storage medium
CN115129708A (en) Data processing method, data processing device, storage medium and electronic equipment
CN113055493A (en) Data packet processing method, device, system, scheduling device and storage medium
CN110661681B (en) Buried point design method and device
US20120072545A1 (en) Remote maintenance and monitoring service framework for heterogeneous device and system

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
GR01 Patent grant
GR01 Patent grant