ossrs / srs

SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181.
https://ossrs.io
MIT License
25.84k stars 5.39k forks source link

When using the Reuse Port function, the hls slice stream is not online and expires #4121

Open wangze-TIM opened 4 months ago

wangze-TIM commented 4 months ago

!!! Before submitting a new bug report, please ensure you have searched for any existing bugs and utilized the Ask AI feature at https://ossrs.io or https://ossrs.net (for users in China). Duplicate issues or questions that are overly simple or already addressed in the documentation will be removed without any response.

Describe the bug When using the Reuse Port function, the hls slice stream is not online and expires

Version Use docker version SRS/6.0.134

To Reproduce Steps to reproduce the behavior:

  1. Pull docker image file registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6

  2. Create multiple srs configuration files, except for the pid name, everything else is the same.

  3. Create the memory directory /mnt/ramdisk for hls slice storage. The command is mkdir -p /mnt/ramdisk && mount -o size=10G -t tmpfs none /mnt/ramdisk The command to start multiple srs servers is as follows docker run -d --privileged=true --net=host --restart=always --name serverA -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverA/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 docker run -d --privileged=true --net=host --restart=always --name serverB -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverB/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 docker run -d --privileged=true --net=host --restart=always --name serverC -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverC/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 docker run -d --privileged=true --net=host --restart=always --name serverD -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverD/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6

  4. After pushing the stream, I found that expired ts and m3u8 were not automatically deleted.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.!!! Before submitting a new bug report, please ensure you have searched for any existing bugs and utilized the Ask AI feature at https://ossrs.io or https://ossrs.net (for users in China). Duplicate issues or questions that are overly simple or already addressed in the documentation will be removed without any response.

Describe the bug When using the Reuse Port function, the hls slice stream is not online and expires

Version Use docker version SRS/6.0.134

To Reproduce Steps to reproduce the behavior:

  1. Pull docker image file registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6

  2. Create multiple srs configuration files, except for the pid name, everything else is the same.

    image
  3. Create the memory directory /mnt/ramdisk for hls slice storage. The command is mkdir -p /mnt/ramdisk && mount -o size=10G -t tmpfs none /mnt/ramdisk The command to start multiple srs servers is as follows docker run -d --privileged=true --net=host --restart=always --name serverA -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverA/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 docker run -d --privileged=true --net=host --restart=always --name serverB -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverB/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 docker run -d --privileged=true --net=host --restart=always --name serverC -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverC/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6 docker run -d --privileged=true --net=host --restart=always --name serverD -v /etc/localtime:/etc/localtime:ro -v /opt/srs/serverD/:/usr/local/srs/conf/ -v /mnt/ramdisk:/usr/local/srs/objs/nginx/html/ registry.cn-hangzhou.aliyuncs.com/ossrs/srs:6

  4. After pushing the stream, I found that expired ts and m3u8 were not automatically deleted.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

image

Additional context Add any other context about the problem here.