Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to do performance tuning #21

Open
culyzhao opened this issue Nov 16, 2022 · 0 comments
Open

How to do performance tuning #21

culyzhao opened this issue Nov 16, 2022 · 0 comments

Comments

@culyzhao
Copy link

I tested 100 clients, the proxy server can't process new request smoothly, the CPU and network workload is not high.
If I have 5000 clients to watch a video with 2M bitrate, could HLS-Proxy do this job good?

test script:

#!/bin/sh
for i in `seq 11 100`; do \
   tag=$(printf "%04d" $i); \
   echo $tag; \
   (while true; do \
      ffmpeg -user-agent stat_$tag \
      -i http://ip/some.m3u8 -c copy \
      -flags +global_header -f null /dev/null 2>&1 \
      | stdbuf -i0 -o0 -e 0 tr -s '\r' '\n' \
      | stdbuf -i0 -o0 -e 0 \
      gawk '{ print strftime("[%Y-%m-%d %H:%M:%S.%s]"), $0 }' \
      >>log_$tag ; \
      sleep 2; \
      echo "RESTART----------" >> log_$tag ;
   done &); \
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant