The invention discloses an HLS streaming media load balancing-based forwarding synchronization method, which comprises the following steps of: writing into a node in a
server cluster through a scheduling
algorithm on the basis of an RTMP (
Real Time Messaging Protocol)
stream pushing access address, and obtaining a live
broadcast data stream through a
client on the basis of an HTTP-FLV (Hyper Text Transfer Protocol-Flash
Virtualization) address; based on the real-time code
stream data, driving and starting a slicer process by starting an hls instruction; obtaining first slice fragment data by waiting for a preset
key frame interval based on the real-time code
stream data, obtaining a slice file through a packaging module based on the first slice fragment data, and storing the slice file in a disk; a slice
file storage disk successfully drives a closing
file descriptor and generates a completion
signal file, and the completion
signal file is written into an index file of an HLS protocol in real time through a sliding window;
copying the slice file and the index file to other nodes in the
server cluster through a tool based on the completion
signal file; and driving a deletion completion signal file based on the copy success signal, and deleting the historical slice file and the index
record in real time to realize storage of the latest
time sequence file in the disk.