srs CLUSTER:源站集群中节点配置项内的http_api监听IP为127.0.0.1时与coworkers中的实际IP同时使用会冲突

fsi0uk1n  于 2022-10-27  发布在  其他
关注(0)|答案(6)|浏览(299)

描述(Description)

描述你遇到了什么问题(Please description your issue here)

源站集群中节点配置项内的http_api监听IP为127.0.0.1时,与coworkers中的实际IP同时使用,会冲突。实际IP是指那台机器的IP。

  1. SRS版本(Version): srs-server-4.0-b1(4.0.206)
  2. 操作系统: ubuntu-16.04.6-server-amd64
  3. SRS安装包: srs-server-4.0-b1.tar.gz
  4. SRS的日志如下(Log):
[2022-03-04 13:33:02.761][Error][24700][o72v89m6][111] serve error code=1018 : service cycle : rtmp: stream service : discover coworkers, url=http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093 : http: post http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093, status=0, res= : http: client post : http: connect server : http: tcp connect http 192.168.1.110:9093 to=30000ms, rto=30000ms : tcp: connect 192.168.1.110:9093 to=30000ms : connect to 192.168.1.110:9093
thread [24700][o72v89m6]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:217][errno=111]
thread [24700][o72v89m6]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:414][errno=111]
thread [24700][o72v89m6]: playing() [src/app/srs_app_rtmp_conn.cpp:629][errno=111]
thread [24700][o72v89m6]: discover_co_workers() [src/app/srs_app_http_hooks.cpp:439][errno=111]
thread [24700][o72v89m6]: do_post() [src/app/srs_app_http_hooks.cpp:505][errno=111]
thread [24700][o72v89m6]: post() [src/protocol/srs_service_http_client.cpp:322][errno=111]
thread [24700][o72v89m6]: connect() [src/protocol/srs_service_http_client.cpp:447][errno=111]
thread [24700][o72v89m6]: connect() [src/protocol/srs_service_st.cpp:642][errno=111]
thread [24700][o72v89m6]: srs_tcp_connect() [src/protocol/srs_service_st.cpp:193][errno=111](Connection refused)

重现(Replay)

重现Bug的步骤(How to replay bug?)

  1. 目前有两台机器,一台机器的ip为 192.168.1.110 ,一台机器的ip为 192.168.1.185
    192.168.1.110服务器上部署的是源站集群,4个节点:serverA1、serverB1、serverC1、serverD1。(源站需要4个节点容易复现问题)
    192.168.1.185服务器上部署的是边缘集群,1个节点:edge1。
  2. 源站中4个节点配置文件,边缘中1个节点配置文件,分别是项目自带的
    origin.cluster.serverA.conforigin.cluster.serverB.conforigin.cluster.serverC.conforigin.cluster.edge.conf
    简单改点内容演变成
    origin.cluster.serverA1.conforigin.cluster.serverB1.conforigin.cluster.serverC1.conforigin.cluster.serverD1.conforigin.cluster.edge1.conf
  3. origin.cluster.serverA1.conf配置文件如下:

# the config for srs origin-origin cluster

# @see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

# @see full.conf for detail config.

listen              19350;
max_connections     1000;
daemon              off;
srs_log_tank        console;
pid                 ./objs/origin.cluster.serverA1.pid;
http_api {
    enabled         on;
    listen          9090;
}
vhost __defaultVhost__ {
    cluster {
        mode            local;
        origin_cluster  on;
        coworkers       192.168.1.110:9091 192.168.1.110:9092 192.168.1.110:9093;
    }
}
  1. origin.cluster.serverB1.conf配置文件如下:

# the config for srs origin-origin cluster

# @see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

# @see full.conf for detail config.

listen              19351;
max_connections     1000;
daemon              off;
srs_log_tank        console;
pid                 ./objs/origin.cluster.serverB1.pid;
http_api {
    enabled         on;
    listen          9091;
}
vhost __defaultVhost__ {
    cluster {
        mode            local;
        origin_cluster  on;
        coworkers       192.168.1.110:9090 192.168.1.110:9092 192.168.1.110:9093;
    }
}
  1. origin.cluster.serverC1.conf配置文件如下:

# the config for srs origin-origin cluster

# @see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

# @see full.conf for detail config.

listen              19352;
max_connections     1000;
daemon              off;
srs_log_tank        console;
pid                 ./objs/origin.cluster.serverC1.pid;
http_api {
    enabled         on;
    listen          9092;
}
vhost __defaultVhost__ {
    cluster {
        mode            local;
        origin_cluster  on;
        coworkers       192.168.1.110:9090 192.168.1.110:9091 192.168.1.110:9093;
    }
}
  1. origin.cluster.serverD1.conf配置文件如下:

# the config for srs origin-origin cluster

# @see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

# @see full.conf for detail config.

listen              19353;
max_connections     1000;
daemon              off;
srs_log_tank        console;
pid                 ./objs/origin.cluster.serverD1.pid;
http_api {
    enabled         on;
    listen          9093;
}
vhost __defaultVhost__ {
    cluster {
        mode            local;
        origin_cluster  on;
        coworkers       192.168.1.110:9090 192.168.1.110:9091 192.168.1.110:9092;
    }
}
  1. origin.cluster.edge1.conf配置文件如下:

# the config for srs origin-edge cluster

# @see https://github.com/ossrs/srs/wiki/v3_EN_OriginCluster

# @see full.conf for detail config.

listen              1935;
max_connections     1000;
pid                 objs/edge1.pid;
daemon              off;
srs_log_tank        console;
vhost __defaultVhost__ {
    cluster {
        mode            remote;
        origin          192.168.1.110:19350 192.168.1.110:19351 192.168.1.110:19352 192.168.1.110:19353;
    }
}

进入192.168.1.110服务器,进入srs项目路径,再启动srs:
./objs/srs -c ./conf/origin.cluster.serverA1.conf
./objs/srs -c ./conf/origin.cluster.serverB1.conf
./objs/srs -c ./conf/origin.cluster.serverC1.conf
./objs/srs -c ./conf/origin.cluster.serverD1.conf

进入192.168.1.185服务器,进入srs项目路径,再启动srs:
./objs/srs -c ./conf/origin.cluster.edge1.conf

使用ffmpeg推流到serverA1、serverC1节点:
ffmpeg -i rtsp://admin:admin@192.168.1.58:554/h264/ch1/main/av_stream -c copy -f flv rtmp://192.168.1.110:19350/live/test01
ffmpeg -i rtsp://admin:admin@192.168.1.48:554/h264/ch1/main/av_stream -c copy -f flv rtmp://192.168.1.110:19352/live/test02

使用ffplay向edge1节点拉流
ffplay -i rtmp://192.168.1.185:1935/live/test01
ffplay -i rtmp://192.168.1.185:1935/live/test02

反复拉流test01、test02,连接很顺畅,日志无异常。

1.重点:
当我尝试把4个源站节点配置项内的http_api更改为监听127.0.0.1:<端口> 时,日志就开始报错了。但边缘节点也能播放,虽然能播放,看日志是挨个与配置项中的源站节点尝试建立连接了,等待的时间很长。如果源站节点很多,等待播放的时间就更长。

origin.cluster.serverA1.conf更改配置文件如下:

http_api {
    enabled         on;
    listen          127.0.0.1:9090;
}
(其余配置项不动)

origin.cluster.serverB1.conf更改配置文件如下:

http_api {
    enabled         on;
    listen          127.0.0.1:9091;
}
(其余配置项不动)

origin.cluster.serverC1.conf更改配置文件如下:

http_api {
    enabled         on;
    listen          127.0.0.1:9092;
}
(其余配置项不动)

origin.cluster.serverD1.conf更改配置文件如下:

http_api {
    enabled         on;
    listen          127.0.0.1:9093;
}
(其余配置项不动)

origin.cluster.edge1.conf配置文件保持不变。

再次启动4个源站+1个边缘,再次向源站推流、再次向边缘拉流,启动、推流、拉流步骤与上边一样,考虑到文字篇幅这里一句带过。

  1. serverA1日志:
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] XCORE-SRS/4.0.206(Leo)
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] config parse complete
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] write log to console
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476][MAIN] SRS/4.0.206(Leo), MIT
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwrong<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaishou.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.com> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgchenhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise.worlds@outlook.com> 
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2022-03-04 13:32:20.739][Trace][24700][0i2e3476] srs checking config...
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:20.740][Warn][24700][0i2e3476][22] stats network use index=0, ip=192.168.1.110, ifname=eno1
[2022-03-04 13:32:20.740][Warn][24700][0i2e3476][22] stats disk not configed, disk iops disabled.
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] write log to console
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] SRS on  amd64 x86_64, conf:./conf/origin.cluster.serverA1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2022-03-04 13:32:20.740][Trace][24700][0i2e3476] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2022-03-04 13:32:20.740][Warn][24700][0i2e3476][22] SRS/4.0.206 is not stable
[2022-03-04 13:32:20.747][Trace][24700][0i2e3476] fingerprint=AB:97:8A:4A:59:C0:68:6E:95:35:1C:6B:FA:D5:31:D6:00:63:6A:83:D2:4B:37:51:E0:7D:83:DD:6E:34:14:C2
[2022-03-04 13:32:20.747][Trace][24700][0i2e3476] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2022-03-04 13:32:20.747][Trace][24700][0i2e3476] http: root mount to ./objs/nginx/html
[2022-03-04 13:32:20.747][Trace][24700][0i2e3476] server main cid=0i2e3476, pid=24700, ppid=367, asprocess=0
[2022-03-04 13:32:20.747][Trace][24700][0i2e3476] write pid=24700 to ./objs/origin.cluster.serverA1.pid success!
[2022-03-04 13:32:20.748][Trace][24700][0i2e3476] RTMP listen at tcp://0.0.0.0:19350, fd=6
[2022-03-04 13:32:20.748][Trace][24700][0i2e3476] HTTP-API listen at tcp://127.0.0.1:9090, fd=7
[2022-03-04 13:32:20.748][Trace][24700][0i2e3476] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2022-03-04 13:32:20.748][Trace][24700][0i2e3476] http: api mount /console to ./objs/nginx/html/console
[2022-03-04 13:32:20.748][Trace][24700][v84675zu] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:20.748][Warn][24700][444157c1][22] use private address as ip: 192.168.1.110, ifname=eno1
[2022-03-04 13:32:20.748][Trace][24700][444157c1] Startup query id=7678298c9b7c11ec8aa06de3594bfab3, eip=192.168.1.110, wait=436s
[2022-03-04 13:32:20.748][Trace][24700][8l5n6562] TCP: connection manager run, conns=0
[2022-03-04 13:32:20.749][Trace][24700][54305xi4] RTC: connection manager run, conns=0
[2022-03-04 13:32:25.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,12MB
[2022-03-04 13:32:30.737][Trace][24700][v84675zu] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:31.288][Trace][24700][ec7a653c] RTMP client ip=192.168.1.210:64627, fd=8
[2022-03-04 13:32:31.293][Trace][24700][ec7a653c] complex handshake success
[2022-03-04 13:32:31.293][Trace][24700][ec7a653c] connect app, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19350, app=live, args=null
[2022-03-04 13:32:31.293][Trace][24700][ec7a653c] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:32:31.371][Trace][24700][ec7a653c] client identified, type=fmle-publish, vhost=192.168.1.110, app=live, stream=test01, param=, duration=0ms
[2022-03-04 13:32:31.371][Trace][24700][ec7a653c] connected stream, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=19350, app=live, stream=test01, param=, args=null
[2022-03-04 13:32:31.371][Trace][24700][ec7a653c] new source, stream_url=/live/test01
[2022-03-04 13:32:31.371][Trace][24700][ec7a653c] source url=/live/test01, ip=192.168.1.210, cache=1, is_edge=0, source_id=/
[2022-03-04 13:32:31.451][Trace][24700][ec7a653c] ignore disabled exec for vhost=__defaultVhost__
[2022-03-04 13:32:31.451][Trace][24700][ec7a653c] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0
[2022-03-04 13:32:31.532][Trace][24700][ec7a653c] got metadata, width=1920, height=1080, vcodec=7, acodec=7
[2022-03-04 13:32:31.532][Trace][24700][ec7a653c] 42B video sh,  codec(7, profile=High, level=4, 1920x1080, 0kbps, 0.0fps, 0.0s)
[2022-03-04 13:32:35.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:37,oth:0,buf:0)
[2022-03-04 13:32:40.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:37,oth:0,buf:0)
[2022-03-04 13:32:45.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-03-04 13:32:50.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-03-04 13:32:55.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-03-04 13:32:56.451][Trace][24700][ec7a653c] <- CPB time=19991528, okbps=1,0,0, ikbps=4181,0,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:00.737][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:02.717][Trace][24700][o72v89m6] RTMP client ip=192.168.1.185:49084, fd=9
[2022-03-04 13:33:02.720][Trace][24700][o72v89m6] complex handshake success
[2022-03-04 13:33:02.720][Trace][24700][o72v89m6] connect app, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19350, app=live, args=(obj)
[2022-03-04 13:33:02.720][Trace][24700][o72v89m6] edge-srs ip=192.168.1.185, version=4.0.206, pid=19627, id=0
[2022-03-04 13:33:02.720][Trace][24700][o72v89m6] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:02.760][Trace][24700][o72v89m6] client identified, type=rtmp-play, vhost=192.168.1.110, app=live, stream=test02, param=, duration=-1ms
[2022-03-04 13:33:02.760][Trace][24700][o72v89m6] connected stream, tcUrl=rtmp://192.168.1.110:19350/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=19350, app=live, stream=test02, param=, args=(obj)
[2022-03-04 13:33:02.760][Trace][24700][o72v89m6] new source, stream_url=/live/test02
[2022-03-04 13:33:02.760][Trace][24700][o72v89m6] source url=/live/test02, ip=192.168.1.185, cache=1, is_edge=0, source_id=/
[2022-03-04 13:33:02.761][Trace][24700][o72v89m6] TCP: before dispose resource(RtmpConn)(0x29c79a0), conns=2, zombies=0, ign=0, inz=0, ind=0
[2022-03-04 13:33:02.761][Error][24700][o72v89m6][111] serve error code=1018 : service cycle : rtmp: stream service : discover coworkers, url=http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093 : http: post http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093, status=0, res= : http: client post : http: connect server : http: tcp connect http 192.168.1.110:9093 to=30000ms, rto=30000ms : tcp: connect 192.168.1.110:9093 to=30000ms : connect to 192.168.1.110:9093
thread [24700][o72v89m6]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:217][errno=111]
thread [24700][o72v89m6]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:414][errno=111]
thread [24700][o72v89m6]: playing() [src/app/srs_app_rtmp_conn.cpp:629][errno=111]
thread [24700][o72v89m6]: discover_co_workers() [src/app/srs_app_http_hooks.cpp:439][errno=111]
thread [24700][o72v89m6]: do_post() [src/app/srs_app_http_hooks.cpp:505][errno=111]
thread [24700][o72v89m6]: post() [src/protocol/srs_service_http_client.cpp:322][errno=111]
thread [24700][o72v89m6]: connect() [src/protocol/srs_service_http_client.cpp:447][errno=111]
thread [24700][o72v89m6]: connect() [src/protocol/srs_service_st.cpp:642][errno=111]
thread [24700][o72v89m6]: srs_tcp_connect() [src/protocol/srs_service_st.cpp:193][errno=111](Connection refused)
[2022-03-04 13:33:02.761][Trace][24700][8l5n6562] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2022-03-04 13:33:02.761][Trace][24700][o72v89m6] TCP: disposing #0 resource(RtmpConn)(0x29c79a0), conns=2, disposing=1, zombies=0
[2022-03-04 13:33:05.738][Trace][24700][v84675zu] Hybrid cpu=2.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:06.452][Trace][24700][ec7a653c] <- CPB time=29998408, okbps=0,1,0, ikbps=4133,4144,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:10.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:15.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:16.452][Trace][24700][ec7a653c] <- CPB time=40003649, okbps=0,1,0, ikbps=4110,4144,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:20.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:25.738][Trace][24700][v84675zu] Hybrid cpu=2.00%,14MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:26.452][Trace][24700][ec7a653c] <- CPB time=50010948, okbps=0,1,0, ikbps=4091,4144,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:30.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:35.738][Trace][24700][v84675zu] Hybrid cpu=2.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:40.738][Trace][24700][v84675zu] Hybrid cpu=1.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-03-04 13:33:41.453][Trace][24700][ec7a653c] <- CPB time=65009779, okbps=0,0,0, ikbps=4069,4014,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:45.739][Trace][24700][v84675zu] Hybrid cpu=0.00%,14MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
^C[2022-03-04 13:33:47.534][Trace][24700][0i2e3476] sig=2, user terminate program, fast quit
[2022-03-04 13:33:47.747][Trace][24700][0i2e3476] cleanup for quit signal fast=1, grace=0
[2022-03-04 13:33:47.747][Warn][24700][0i2e3476][11] main cycle terminated, system quit normally.
[2022-03-04 13:33:47.847][Trace][24700][0i2e3476] srs disposed
[2022-03-04 13:33:47.847][Trace][24700][0i2e3476] srs terminated

serverB1日志:

[2022-03-04 13:32:21.594][Trace][24701][728f358g] XCORE-SRS/4.0.206(Leo)
[2022-03-04 13:32:21.594][Trace][24701][728f358g] config parse complete
[2022-03-04 13:32:21.594][Trace][24701][728f358g] write log to console
[2022-03-04 13:32:21.594][Trace][24701][728f358g][MAIN] SRS/4.0.206(Leo), MIT
[2022-03-04 13:32:21.594][Trace][24701][728f358g] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2022-03-04 13:32:21.594][Trace][24701][728f358g] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwrong<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaishou.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.com> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgchenhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise.worlds@outlook.com> 
[2022-03-04 13:32:21.594][Trace][24701][728f358g] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2022-03-04 13:32:21.594][Trace][24701][728f358g] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2022-03-04 13:32:21.594][Trace][24701][728f358g] srs checking config...
[2022-03-04 13:32:21.595][Trace][24701][728f358g] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:21.595][Trace][24701][728f358g] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:21.595][Warn][24701][728f358g][22] stats network use index=0, ip=192.168.1.110, ifname=eno1
[2022-03-04 13:32:21.595][Warn][24701][728f358g][22] stats disk not configed, disk iops disabled.
[2022-03-04 13:32:21.595][Trace][24701][728f358g] write log to console
[2022-03-04 13:32:21.595][Trace][24701][728f358g] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
[2022-03-04 13:32:21.595][Trace][24701][728f358g] SRS on  amd64 x86_64, conf:./conf/origin.cluster.serverB1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2022-03-04 13:32:21.595][Trace][24701][728f358g] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2022-03-04 13:32:21.595][Trace][24701][728f358g] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2022-03-04 13:32:21.595][Trace][24701][728f358g] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2022-03-04 13:32:21.595][Warn][24701][728f358g][22] SRS/4.0.206 is not stable
[2022-03-04 13:32:21.602][Trace][24701][728f358g] fingerprint=A0:4A:95:FC:E4:F9:4C:CB:A9:3B:21:F3:DA:57:55:89:A9:25:0B:85:29:E4:01:C2:62:01:0C:B5:B8:3D:A6:A4
[2022-03-04 13:32:21.602][Trace][24701][728f358g] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2022-03-04 13:32:21.602][Trace][24701][728f358g] http: root mount to ./objs/nginx/html
[2022-03-04 13:32:21.602][Trace][24701][728f358g] server main cid=728f358g, pid=24701, ppid=421, asprocess=0
[2022-03-04 13:32:21.602][Trace][24701][728f358g] write pid=24701 to ./objs/origin.cluster.serverB1.pid success!
[2022-03-04 13:32:21.602][Trace][24701][728f358g] RTMP listen at tcp://0.0.0.0:19351, fd=6
[2022-03-04 13:32:21.602][Trace][24701][728f358g] HTTP-API listen at tcp://127.0.0.1:9091, fd=7
[2022-03-04 13:32:21.602][Trace][24701][728f358g] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2022-03-04 13:32:21.602][Trace][24701][728f358g] http: api mount /console to ./objs/nginx/html/console
[2022-03-04 13:32:21.603][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:21.603][Warn][24701][0641x8j3][22] use private address as ip: 192.168.1.110, ifname=eno1
[2022-03-04 13:32:21.603][Trace][24701][0641x8j3] Startup query id=76fa93b89b7c11ec82e2dd698b1bdb28, eip=192.168.1.110, wait=452s
[2022-03-04 13:32:21.603][Trace][24701][82817n86] TCP: connection manager run, conns=0
[2022-03-04 13:32:21.604][Trace][24701][95938z28] RTC: connection manager run, conns=0
[2022-03-04 13:32:26.591][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:31.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:36.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:41.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:46.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:51.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:56.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-03-04 13:33:01.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-03-04 13:33:05.762][Trace][24701][wq265n92] RTMP client ip=192.168.1.185:52100, fd=8
[2022-03-04 13:33:05.765][Trace][24701][wq265n92] complex handshake success
[2022-03-04 13:33:05.765][Trace][24701][wq265n92] connect app, tcUrl=rtmp://192.168.1.110:19351/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19351, app=live, args=(obj)
[2022-03-04 13:33:05.765][Trace][24701][wq265n92] edge-srs ip=192.168.1.185, version=4.0.206, pid=19627, id=0
[2022-03-04 13:33:05.765][Trace][24701][wq265n92] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:05.804][Trace][24701][wq265n92] client identified, type=rtmp-play, vhost=192.168.1.110, app=live, stream=test02, param=, duration=-1ms
[2022-03-04 13:33:05.804][Trace][24701][wq265n92] connected stream, tcUrl=rtmp://192.168.1.110:19351/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=19351, app=live, stream=test02, param=, args=(obj)
[2022-03-04 13:33:05.804][Trace][24701][wq265n92] new source, stream_url=/live/test02
[2022-03-04 13:33:05.804][Trace][24701][wq265n92] source url=/live/test02, ip=192.168.1.185, cache=1, is_edge=0, source_id=/
[2022-03-04 13:33:05.805][Trace][24701][wq265n92] TCP: before dispose resource(RtmpConn)(0x1d21d30), conns=1, zombies=0, ign=0, inz=0, ind=0
[2022-03-04 13:33:05.805][Error][24701][wq265n92][111] serve error code=1018 : service cycle : rtmp: stream service : discover coworkers, url=http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093 : http: post http://192.168.1.110:9093/api/v1/clusters?vhost=__defaultVhost__&ip=192.168.1.110&app=live&stream=test02&coworker=192.168.1.110:9093, status=0, res= : http: client post : http: connect server : http: tcp connect http 192.168.1.110:9093 to=30000ms, rto=30000ms : tcp: connect 192.168.1.110:9093 to=30000ms : connect to 192.168.1.110:9093
thread [24701][wq265n92]: do_cycle() [src/app/srs_app_rtmp_conn.cpp:217][errno=111]
thread [24701][wq265n92]: service_cycle() [src/app/srs_app_rtmp_conn.cpp:414][errno=111]
thread [24701][wq265n92]: playing() [src/app/srs_app_rtmp_conn.cpp:629][errno=111]
thread [24701][wq265n92]: discover_co_workers() [src/app/srs_app_http_hooks.cpp:439][errno=111]
thread [24701][wq265n92]: do_post() [src/app/srs_app_http_hooks.cpp:505][errno=111]
thread [24701][wq265n92]: post() [src/protocol/srs_service_http_client.cpp:322][errno=111]
thread [24701][wq265n92]: connect() [src/protocol/srs_service_http_client.cpp:447][errno=111]
thread [24701][wq265n92]: connect() [src/protocol/srs_service_st.cpp:642][errno=111]
thread [24701][wq265n92]: srs_tcp_connect() [src/protocol/srs_service_st.cpp:193][errno=111](Connection refused)
[2022-03-04 13:33:05.805][Trace][24701][82817n86] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2022-03-04 13:33:05.805][Trace][24701][wq265n92] TCP: disposing #0 resource(RtmpConn)(0x1d21d30), conns=1, disposing=1, zombies=0
[2022-03-04 13:33:06.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=62,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-03-04 13:33:11.592][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:1,oth:0,buf:0)
[2022-03-04 13:33:16.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:1,oth:0,buf:0)
[2022-03-04 13:33:21.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=2,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:1,oth:0,buf:0)
[2022-03-04 13:33:26.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:31.593][Trace][24701][sw45h9v4] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:36.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:41.593][Trace][24701][sw45h9v4] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
^C[2022-03-04 13:33:45.574][Trace][24701][728f358g] sig=2, user terminate program, fast quit
[2022-03-04 13:33:45.602][Trace][24701][728f358g] cleanup for quit signal fast=1, grace=0
[2022-03-04 13:33:45.602][Warn][24701][728f358g][11] main cycle terminated, system quit normally.
[2022-03-04 13:33:45.702][Trace][24701][728f358g] srs disposed
[2022-03-04 13:33:45.702][Trace][24701][728f358g] srs terminated

serverC1日志:

[2022-03-04 13:32:22.364][Trace][24702][51649u5l] XCORE-SRS/4.0.206(Leo)
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] config parse complete
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] write log to console
[2022-03-04 13:32:22.364][Trace][24702][51649u5l][MAIN] SRS/4.0.206(Leo), MIT
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwrong<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaishou.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.com> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgchenhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise.worlds@outlook.com> 
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] srs checking config...
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:22.364][Trace][24702][51649u5l] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:22.364][Warn][24702][51649u5l][22] stats network use index=0, ip=192.168.1.110, ifname=eno1
[2022-03-04 13:32:22.365][Warn][24702][51649u5l][22] stats disk not configed, disk iops disabled.
[2022-03-04 13:32:22.365][Trace][24702][51649u5l] write log to console
[2022-03-04 13:32:22.365][Trace][24702][51649u5l] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
[2022-03-04 13:32:22.365][Trace][24702][51649u5l] SRS on  amd64 x86_64, conf:./conf/origin.cluster.serverC1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2022-03-04 13:32:22.365][Trace][24702][51649u5l] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2022-03-04 13:32:22.365][Trace][24702][51649u5l] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2022-03-04 13:32:22.365][Trace][24702][51649u5l] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2022-03-04 13:32:22.365][Warn][24702][51649u5l][22] SRS/4.0.206 is not stable
[2022-03-04 13:32:22.371][Trace][24702][51649u5l] fingerprint=D5:BC:22:C9:9D:EA:15:E6:46:2C:EF:58:41:E7:CE:94:02:ED:4D:1F:E2:84:D1:F2:64:DF:DB:73:96:C1:8D:D9
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] http: root mount to ./objs/nginx/html
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] server main cid=51649u5l, pid=24702, ppid=475, asprocess=0
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] write pid=24702 to ./objs/origin.cluster.serverC1.pid success!
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] RTMP listen at tcp://0.0.0.0:19352, fd=6
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] HTTP-API listen at tcp://127.0.0.1:9092, fd=7
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2022-03-04 13:32:22.372][Trace][24702][51649u5l] http: api mount /console to ./objs/nginx/html/console
[2022-03-04 13:32:22.372][Trace][24702][rqo38s45] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:22.372][Warn][24702][gs23u2z8][22] use private address as ip: 192.168.1.110, ifname=eno1
[2022-03-04 13:32:22.372][Trace][24702][gs23u2z8] Startup query id=777003c89b7c11ec847ef7786d7a23c8, eip=192.168.1.110, wait=325s
[2022-03-04 13:32:22.373][Trace][24702][qs825100] TCP: connection manager run, conns=0
[2022-03-04 13:32:22.373][Trace][24702][q1803092] RTC: connection manager run, conns=0
[2022-03-04 13:32:27.361][Trace][24702][rqo38s45] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:32.361][Trace][24702][rqo38s45] Hybrid cpu=1.00%,12MB
[2022-03-04 13:32:37.361][Trace][24702][rqo38s45] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:38.628][Trace][24702][o4983o21] RTMP client ip=192.168.1.210:64634, fd=8
[2022-03-04 13:32:38.643][Trace][24702][o4983o21] complex handshake success
[2022-03-04 13:32:38.644][Trace][24702][o4983o21] connect app, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19352, app=live, args=null
[2022-03-04 13:32:38.644][Trace][24702][o4983o21] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:32:38.723][Trace][24702][o4983o21] client identified, type=fmle-publish, vhost=192.168.1.110, app=live, stream=test02, param=, duration=0ms
[2022-03-04 13:32:38.723][Trace][24702][o4983o21] connected stream, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=19352, app=live, stream=test02, param=, args=null
[2022-03-04 13:32:38.723][Trace][24702][o4983o21] new source, stream_url=/live/test02
[2022-03-04 13:32:38.723][Trace][24702][o4983o21] source url=/live/test02, ip=192.168.1.210, cache=1, is_edge=0, source_id=/
[2022-03-04 13:32:38.803][Trace][24702][o4983o21] ignore disabled exec for vhost=__defaultVhost__
[2022-03-04 13:32:38.803][Trace][24702][o4983o21] start publish mr=0/350, p1stpt=20000, pnt=5000, tcp_nodelay=0
[2022-03-04 13:32:38.882][Trace][24702][o4983o21] got metadata, width=1280, height=720, vcodec=7, acodec=8
[2022-03-04 13:32:38.883][Trace][24702][o4983o21] 40B video sh,  codec(7, profile=Baseline, level=3.1, 1280x720, 0kbps, 0.0fps, 0.0s)
[2022-03-04 13:32:42.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:47.362][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:52.362][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:105,oth:0,buf:0)
[2022-03-04 13:32:57.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:105,oth:0,buf:0)
[2022-03-04 13:33:02.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:105,oth:0,buf:0)
[2022-03-04 13:33:03.803][Trace][24702][o4983o21] <- CPB time=20003728, okbps=1,0,0, ikbps=882,0,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:07.362][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:08.806][Trace][24702][04z40272] RTMP client ip=192.168.1.185:35852, fd=9
[2022-03-04 13:33:08.809][Trace][24702][04z40272] complex handshake success
[2022-03-04 13:33:08.809][Trace][24702][04z40272] connect app, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.110, port=19352, app=live, args=(obj)
[2022-03-04 13:33:08.809][Trace][24702][04z40272] edge-srs ip=192.168.1.185, version=4.0.206, pid=19627, id=0
[2022-03-04 13:33:08.809][Trace][24702][04z40272] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:08.848][Trace][24702][04z40272] client identified, type=rtmp-play, vhost=192.168.1.110, app=live, stream=test02, param=, duration=-1ms
[2022-03-04 13:33:08.848][Trace][24702][04z40272] connected stream, tcUrl=rtmp://192.168.1.110:19352/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=19352, app=live, stream=test02, param=, args=(obj)
[2022-03-04 13:33:08.848][Trace][24702][04z40272] source url=/live/test02, ip=192.168.1.185, cache=1, is_edge=0, source_id=o4983o21/o4983o21
[2022-03-04 13:33:08.848][Trace][24702][04z40272] dispatch cached gop success. count=25, duration=490
[2022-03-04 13:33:08.848][Trace][24702][04z40272] create consumer, active=1, queue_size=0.00, jitter=30000000
[2022-03-04 13:33:08.848][Trace][24702][04z40272] set fd=9, SO_SNDBUF=87040=>175000, buffer=350ms
[2022-03-04 13:33:08.848][Trace][24702][04z40272] start play smi=0ms, mw_sleep=350, mw_msgs=8, realtime=0, tcp_nodelay=0
[2022-03-04 13:33:12.362][Trace][24702][rqo38s45] Hybrid cpu=2.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:100,oth:0,buf:0)
[2022-03-04 13:33:13.804][Trace][24702][o4983o21] <- CPB time=30014718, okbps=0,1,0, ikbps=859,878,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:14.378][Trace][24702][04z40272] TCP: before dispose resource(RtmpConn)(0x168da80), conns=2, zombies=0, ign=0, inz=0, ind=0
[2022-03-04 13:33:14.378][Warn][24702][04z40272][32] client disconnect peer. ret=1009
[2022-03-04 13:33:14.378][Trace][24702][qs825100] TCP: clear zombies=1 resources, conns=2, removing=0, unsubs=0
[2022-03-04 13:33:14.378][Trace][24702][04z40272] TCP: disposing #0 resource(RtmpConn)(0x168da80), conns=2, disposing=1, zombies=0
[2022-03-04 13:33:17.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:131,oth:0,buf:0)
[2022-03-04 13:33:22.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:131,oth:0,buf:0)
[2022-03-04 13:33:27.363][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:131,oth:0,buf:0)
[2022-03-04 13:33:28.804][Trace][24702][o4983o21] <- CPB time=45001819, okbps=0,1,0, ikbps=845,878,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:32.363][Trace][24702][rqo38s45] Hybrid cpu=0.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-03-04 13:33:37.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
[2022-03-04 13:33:38.804][Trace][24702][o4983o21] <- CPB time=55009313, okbps=0,1,0, ikbps=837,878,0, mr=0/350, p1stpt=20000, pnt=5000
[2022-03-04 13:33:42.363][Trace][24702][rqo38s45] Hybrid cpu=1.00%,13MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:99,oth:0,buf:0)
^C[2022-03-04 13:33:43.640][Trace][24702][51649u5l] sig=2, user terminate program, fast quit
[2022-03-04 13:33:44.371][Trace][24702][51649u5l] cleanup for quit signal fast=1, grace=0
[2022-03-04 13:33:44.371][Warn][24702][51649u5l][11] main cycle terminated, system quit normally.
[2022-03-04 13:33:44.471][Trace][24702][51649u5l] srs disposed
[2022-03-04 13:33:44.471][Trace][24702][51649u5l] srs terminated

serverD1日志:

[2022-03-04 13:32:23.042][Trace][24704][513k770g] XCORE-SRS/4.0.206(Leo)
[2022-03-04 13:32:23.043][Trace][24704][513k770g] config parse complete
[2022-03-04 13:32:23.043][Trace][24704][513k770g] write log to console
[2022-03-04 13:32:23.043][Trace][24704][513k770g][MAIN] SRS/4.0.206(Leo), MIT
[2022-03-04 13:32:23.043][Trace][24704][513k770g] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2022-03-04 13:32:23.043][Trace][24704][513k770g] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwrong<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaishou.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.com> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgchenhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise.worlds@outlook.com> 
[2022-03-04 13:32:23.043][Trace][24704][513k770g] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:27:35, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2022-03-04 13:32:23.043][Trace][24704][513k770g] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2022-03-04 13:32:23.043][Trace][24704][513k770g] srs checking config...
[2022-03-04 13:32:23.043][Trace][24704][513k770g] ips, iface[0] eno1 ipv4 0x11043 192.168.1.110, iface[1] eno1 ipv6 0x11043 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:23.043][Trace][24704][513k770g] devices, intranet eno1 192.168.1.110, intranet eno1 fe80::ae1f:6bff:fed6:d12%eno1
[2022-03-04 13:32:23.043][Warn][24704][513k770g][22] stats network use index=0, ip=192.168.1.110, ifname=eno1
[2022-03-04 13:32:23.043][Warn][24704][513k770g][22] stats disk not configed, disk iops disabled.
[2022-03-04 13:32:23.043][Trace][24704][513k770g] write log to console
[2022-03-04 13:32:23.043][Trace][24704][513k770g] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
[2022-03-04 13:32:23.043][Trace][24704][513k770g] SRS on  amd64 x86_64, conf:./conf/origin.cluster.serverD1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2022-03-04 13:32:23.043][Trace][24704][513k770g] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2022-03-04 13:32:23.043][Trace][24704][513k770g] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2022-03-04 13:32:23.043][Trace][24704][513k770g] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2022-03-04 13:32:23.043][Warn][24704][513k770g][22] SRS/4.0.206 is not stable
[2022-03-04 13:32:23.050][Trace][24704][513k770g] fingerprint=85:75:B4:48:2D:1C:0D:B9:E9:D2:8B:7D:5E:62:9E:9A:9F:1E:4E:79:6B:5F:17:71:3F:6E:CB:04:72:AA:48:1F
[2022-03-04 13:32:23.050][Trace][24704][513k770g] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2022-03-04 13:32:23.050][Trace][24704][513k770g] http: root mount to ./objs/nginx/html
[2022-03-04 13:32:23.050][Trace][24704][513k770g] server main cid=513k770g, pid=24704, ppid=527, asprocess=0
[2022-03-04 13:32:23.051][Trace][24704][513k770g] write pid=24704 to ./objs/origin.cluster.serverD1.pid success!
[2022-03-04 13:32:23.051][Trace][24704][513k770g] RTMP listen at tcp://0.0.0.0:19353, fd=6
[2022-03-04 13:32:23.051][Trace][24704][513k770g] HTTP-API listen at tcp://127.0.0.1:9093, fd=7
[2022-03-04 13:32:23.051][Trace][24704][513k770g] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2022-03-04 13:32:23.051][Trace][24704][513k770g] http: api mount /console to ./objs/nginx/html/console
[2022-03-04 13:32:23.051][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:23.051][Warn][24704][4747t7t3][22] use private address as ip: 192.168.1.110, ifname=eno1
[2022-03-04 13:32:23.051][Trace][24704][4747t7t3] Startup query id=77d79b469b7c11eca2b155a34adc145c, eip=192.168.1.110, wait=383s
[2022-03-04 13:32:23.051][Trace][24704][p2368853] TCP: connection manager run, conns=0
[2022-03-04 13:32:23.052][Trace][24704][42c822l7] RTC: connection manager run, conns=0
[2022-03-04 13:32:28.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:33.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:38.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:43.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:48.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:53.040][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:58.041][Trace][24704][8011z123] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:03.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:08.041][Trace][24704][8011z123] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:13.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-03-04 13:33:18.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-03-04 13:33:23.041][Trace][24704][8011z123] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,0,0,0,0,0,0,0
[2022-03-04 13:33:28.041][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
^[[A[2022-03-04 13:33:33.042][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:38.042][Trace][24704][8011z123] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
^C[2022-03-04 13:33:41.646][Trace][24704][513k770g] sig=2, user terminate program, fast quit
[2022-03-04 13:33:42.050][Trace][24704][513k770g] cleanup for quit signal fast=1, grace=0
[2022-03-04 13:33:42.050][Warn][24704][513k770g][11] main cycle terminated, system quit normally.
[2022-03-04 13:33:42.150][Trace][24704][513k770g] srs disposed
[2022-03-04 13:33:42.150][Trace][24704][513k770g] srs terminated
dddzy1tm

dddzy1tm1#

(有字符长度限制,接上文)

edge1日志:

[2022-03-04 13:32:24.495][Trace][19627][cli33je7] XCORE-SRS/4.0.206(Leo)
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] config parse complete
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] write log to console
[2022-03-04 13:32:24.495][Trace][19627][cli33je7][MAIN] SRS/4.0.206(Leo), MIT
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] authors: https://github.com/ossrs/srs/blob/4.0release/trunk/AUTHORS.txt
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] contributors: Winlin<winlin@vip.126.com> Winlin<winterserver@126.com> Winlin<chengli.ycl@alibaba-inc.com> Wenjie<zhaowenjie@tal.com> Wenjie<740936897@qq.com> Wenjie<wenjie.zhao@chinacache.com> xiangcheng.liu<liuxc0116@foxmail.com> naijia.liu<youngcow@youngcow.net> alcoholyi<alcoholyi@qq.com> byteman<wangchen2011@gmail.com> chad.wang<chad.wang.cn@gmail.com> suhetao<suhetao@gmail.com> Johnny<fengjihu@163.com> karthikeyan<keyanmca@gmail.com> StevenLiu<lq@chinaffmpeg.org> zhengfl<zhengfl_1989@126.com> tufang14<breadbean1449@gmail.com> allspace<allspace@gmail.com> niesongsong<nie950@gmail.com> rudeb0t<nimrod@themanxgroup.tw> CallMeNP<np.liamg@gmail.com> synote<synote@qq.com> lovecat<littlefawn@163.com> panda1986<542638787@qq.com> YueHonghui<hongf.yue@hotmail.com> ThomasDreibholz<dreibh@simula.no> JuntaoLiu<juntliu@gmail.com> RocFang<fangpeng1986@gmail.com> MakarovYaroslav<yaroslav.makarov.97@mail.ru> MirkoVelic<mvelic@inoxx.net> HuiZhang(huzhang2)<huzhang2@cisco.com> OtterWa<simpleotter23@gmail.com> walkermi<172192667@qq.com> haofz<fuzhuang.hao@vhall.com> ME_Kun_Han<hanvskun@hotmail.com> ljx0305<ljx0305@gmail.com> cenxinwei<censhanhe@163.com> StarBrilliant<m13253@hotmail.com> xubin<xubin@chnvideo.com> intliang<yintiliang@gmail.com> flowerwrong<sysuyangkang@gmail.com> YLX<568414379@qq.com> J<guotaojiang@qq.com> Harlan<hailiang@gvrcraft.com> hankun<hankun@bravovcloud.com> JonathanBarratt<jonathan.barratt@gmail.com> KeeganH<keeganwharris@gmail.com> StevenLiu<lingjiujianke@gmail.com> liuxc0116<liuxc0116@gmail.com> ChengdongZhang<lmajzcd@sina.com> lovacat<lovecat@china.sina.com> qiang.li<qiang.li@verycdn.com.cn> HungMingWu<u9089000@gmail.com> Himer<xishizhaohua@qq.com> XiaLixin<xialixin@kanzhun.com> XiaLixin<68469352@qq.com> XiaLixin<xlx0625@163.com> XiaLixin<xialx@yuntongxun.com> alphonsetai<tyh_123@163.com> Michael.Ma<wnpllr@gmail.com> lam2003<linmin3@yy.com> ShiWei<shiwei05@kuaishou.com> ShiWei<shi.weibd@hotmail.com> XiaofengWang<wasphin@gmail.com> XiaoZhihong<hondaxiao@tencent.com> XiaoZhihong<xiaozhihong8@gmail.com> XiaoZhihong<xiaozhihong@huya.com> yanghuiwen<cainiaodj@qq.com> WuPengqiang<309554135@qq.com> WuPengqiang<pengqiang.wpq@alibaba-inc.com> l<22312935+lam2003@github> xfalcon<x-falcon@github> ChenGuanghua<jinxue.cgh@alibaba-inc.com> ChenGuanghua<chengh_math@126.com> LiPeng<mozhan.lp@alibaba-inc.com> LiPeng<lipeng19811218@gmail.com> yajun18<yajun18@staff.sina.com.cn> liulichuan<liulichuan@kuaishou.com> yapingcat<caoyapingneu@163.com> chenchengbin<chenchengbin@yy.com> ChenHaibo<495810242@qq.com> ChenHaibo<nmgchenhaibo@foxmail.com> jasongwq<jasongwq@gmail.com> yinjiaoyuan<yinjiaoyuan@163.com> PieerePi<pihuibin@hotmail.com> JesseXi<jesse.jinjin@wo.cn> PieerePi<40780488+PieerePi@github> ghostsf<ghost_sf@163.com> xbpeng121<53243357+xbpeng121@github> johzzy<hellojinqiang@gmail.com> stone<bluestn@163.com> cfw11<34058899+cfw11@github> Hung-YiChen<gaod.chen@gmail.com> long<liyalong12345@126.com> matthew1838<77285055+matthew1838@github> rise<rise.worlds@outlook.com> 
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] cwd=/home/srs-server-4.0-b1/trunk, work_dir=./, build: 2021-12-20 20:18:37, configure: --x86-x64, uname: Linux ubuntu 4.4.0-142-generic #168-Ubuntu SMP Wed Jan 16 21:00:45 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux, osx: 0
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] configure detail: --prefix=/usr/local/srs --hls=on --hds=off --dvr=on --ssl=on --https=on --ssl-1-0=off --ssl-local=off --sys-ssl=off --transcode=on --ingest=on --stat=on --http-callback=on --http-server=on --stream-caster=on --http-api=on --utest=off --cherrypy=off --srt=off --rtc=on --simulator=off --cxx11=off --cxx14=off --ffmpeg-fit=on --nasm=on --srtp-nasm=on --clean=on --gperf=off --gmc=off --gmd=off --gmp=off --gcp=off --gprof=off --static=off --shared-st=off --shared-srt=off --shared-ffmpeg=off --log-verbose=off --log-info=off --log-trace=on --gcov=off --debug=off --debug-stats=off --cross-build=off --cc=gcc --cxx=g++ --ar=ar --ld=ld --randlib=randlib
[2022-03-04 13:32:24.495][Trace][19627][cli33je7] srs checking config...
[2022-03-04 13:32:24.496][Trace][19627][cli33je7] ips, iface[0] bond0 ipv4 0x11443 192.168.1.185, iface[1] bond0 ipv6 0x11443 fe80::1618:77ff:fe4d:57f%bond0
[2022-03-04 13:32:24.496][Trace][19627][cli33je7] devices, intranet bond0 192.168.1.185, intranet bond0 fe80::1618:77ff:fe4d:57f%bond0
[2022-03-04 13:32:24.496][Warn][19627][cli33je7][22] stats network use index=0, ip=192.168.1.185, ifname=bond0
[2022-03-04 13:32:24.497][Warn][19627][cli33je7][22] stats disk not configed, disk iops disabled.
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] write log to console
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] features, rch:on, dash:on, hls:on, hds:off, srt:off, hc:on, ha:on, hs:on, hp:on, dvr:on, trans:on, inge:on, stat:on, sc:on
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] SRS on  amd64 x86_64, conf:./conf/origin.cluster.edge1.conf, limit:1000, writev:1024, encoding:little-endian, HZ:100
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] mw sleep:350ms. mr enabled:on, default:0, sleep:350ms
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] gc:on, pq:30000ms, cscc:[0,16), csa:on, tn:on(may hurts performance), ss:auto(guess by merged write)
[2022-03-04 13:32:24.497][Trace][19627][cli33je7] system default latency(ms): mw(0-350) + mr(0-350) + play-queue(0-30000)
[2022-03-04 13:32:24.497][Warn][19627][cli33je7][22] SRS/4.0.206 is not stable
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] fingerprint=03:FD:C8:B6:E2:60:35:78:59:9C:04:18:1E:7E:E6:F8:19:B6:E5:5F:AB:CA:44:78:53:90:A3:5C:CE:85:72:45
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] CircuitBreaker: enabled=1, high=2x90, critical=1x95, dying=5x99
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] http: root mount to ./objs/nginx/html
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] server main cid=cli33je7, pid=19627, ppid=176576, asprocess=0
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] write pid=19627 to objs/edge1.pid success!
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] RTMP listen at tcp://0.0.0.0:1935, fd=6
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] signal installed, reload=1, reopen=10, fast_quit=15, grace_quit=3
[2022-03-04 13:32:24.504][Trace][19627][cli33je7] http: api mount /console to ./objs/nginx/html/console
[2022-03-04 13:32:24.505][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:24.505][Warn][19627][xn7t6z8h][22] use private address as ip: 192.168.1.185, ifname=bond0
[2022-03-04 13:32:24.505][Trace][19627][xn7t6z8h] Startup query id=78b559d69b7c11ec83c41f0a1fab75e3, eip=192.168.1.185, wait=407s
[2022-03-04 13:32:24.505][Trace][19627][bwtk01m0] TCP: connection manager run, conns=0
[2022-03-04 13:32:24.507][Trace][19627][884knwib] RTC: connection manager run, conns=0
[2022-03-04 13:32:29.492][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:34.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB
[2022-03-04 13:32:39.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:44.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:49.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,12MB, cid=1,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:54.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:32:59.493][Trace][19627][x5910t65] Hybrid cpu=0.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:02.635][Trace][19627][f30o5z66] RTMP client ip=192.168.1.210:64655, fd=7
[2022-03-04 13:33:02.640][Trace][19627][f30o5z66] complex handshake success
[2022-03-04 13:33:02.640][Trace][19627][f30o5z66] connect app, tcUrl=rtmp://192.168.1.185:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=192.168.1.185, port=1935, app=live, args=null
[2022-03-04 13:33:02.640][Trace][19627][f30o5z66] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:02.720][Trace][19627][f30o5z66] ignore AMF0/AMF3 command message.
[2022-03-04 13:33:02.760][Trace][19627][f30o5z66] ignore AMF0/AMF3 command message.
[2022-03-04 13:33:02.760][Trace][19627][f30o5z66] client identified, type=rtmp-play, vhost=192.168.1.185, app=live, stream=test02, param=, duration=-1ms
[2022-03-04 13:33:02.760][Trace][19627][f30o5z66] connected stream, tcUrl=rtmp://192.168.1.185:1935/live, pageUrl=, swfUrl=, schema=rtmp, vhost=__defaultVhost__, port=1935, app=live, stream=test02, param=, args=null
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] new source, stream_url=/live/test02
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] source url=/live/test02, ip=192.168.1.210, cache=1, is_edge=1, source_id=/
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] ignore disabled exec for vhost=__defaultVhost__
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] dispatch cached gop success. count=0, duration=-1
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] create consumer, active=1, queue_size=0.00, jitter=30000000
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] set fd=7, SO_SNDBUF=87040=>175000, buffer=350ms
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] start play smi=0ms, mw_sleep=350, mw_msgs=8, realtime=0, tcp_nodelay=0
[2022-03-04 13:33:02.761][Trace][19627][f30o5z66] update source_id=35r4mf06/f30o5z66
[2022-03-04 13:33:02.765][Trace][19627][35r4mf06] complex handshake success.
[2022-03-04 13:33:02.765][Trace][19627][35r4mf06] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:02.804][Trace][19627][35r4mf06] connected, version=4.0.206.0, ip=192.168.1.110, pid=24700, id=0, dsu=1
[2022-03-04 13:33:02.804][Trace][19627][35r4mf06] edge-pull publish url rtmp://192.168.1.110:19350/live/test02, stream=test02 as test02
[2022-03-04 13:33:02.804][Trace][19627][35r4mf06] edge change from 100 to state 101 (pull).
[2022-03-04 13:33:02.806][Warn][19627][35r4mf06][104] origin disconnected, retry, error code=1007 : recv message : recv interlaced message : read basic header : basic header requires 1 bytes : read bytes : read
thread [19627][35r4mf06]: ingest() [src/app/srs_app_edge.cpp:320][errno=104]
thread [19627][35r4mf06]: recv_message() [src/protocol/srs_rtmp_stack.cpp:372][errno=104]
thread [19627][35r4mf06]: recv_interlaced_message() [src/protocol/srs_rtmp_stack.cpp:859][errno=104]
thread [19627][35r4mf06]: read_basic_header() [src/protocol/srs_rtmp_stack.cpp:954][errno=104]
thread [19627][35r4mf06]: grow() [src/protocol/srs_protocol_stream.cpp:162][errno=104]
thread [19627][35r4mf06]: read() [src/protocol/srs_service_st.cpp:514][errno=104]
[2022-03-04 13:33:04.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,12MB, cid=1,0, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0
[2022-03-04 13:33:05.809][Trace][19627][35r4mf06] complex handshake success.
[2022-03-04 13:33:05.809][Trace][19627][35r4mf06] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:05.848][Trace][19627][35r4mf06] connected, version=4.0.206.0, ip=192.168.1.110, pid=24701, id=0, dsu=1
[2022-03-04 13:33:05.848][Trace][19627][35r4mf06] edge-pull publish url rtmp://192.168.1.110:19351/live/test02, stream=test02 as test02
[2022-03-04 13:33:05.850][Warn][19627][35r4mf06][104] origin disconnected, retry, error code=1007 : recv message : recv interlaced message : read basic header : basic header requires 1 bytes : read bytes : read
thread [19627][35r4mf06]: ingest() [src/app/srs_app_edge.cpp:320][errno=104]
thread [19627][35r4mf06]: recv_message() [src/protocol/srs_rtmp_stack.cpp:372][errno=104]
thread [19627][35r4mf06]: recv_interlaced_message() [src/protocol/srs_rtmp_stack.cpp:859][errno=104]
thread [19627][35r4mf06]: read_basic_header() [src/protocol/srs_rtmp_stack.cpp:954][errno=104]
thread [19627][35r4mf06]: grow() [src/protocol/srs_protocol_stream.cpp:162][errno=104]
thread [19627][35r4mf06]: read() [src/protocol/srs_service_st.cpp:514][errno=104]
[2022-03-04 13:33:08.853][Trace][19627][35r4mf06] complex handshake success.
[2022-03-04 13:33:08.853][Trace][19627][35r4mf06] protocol in.buffer=0, in.ack=0, out.ack=0, in.chunk=128, out.chunk=128
[2022-03-04 13:33:08.892][Trace][19627][35r4mf06] connected, version=4.0.206.0, ip=192.168.1.110, pid=24702, id=0, dsu=1
[2022-03-04 13:33:08.892][Trace][19627][35r4mf06] edge-pull publish url rtmp://192.168.1.110:19352/live/test02, stream=test02 as test02
[2022-03-04 13:33:08.893][Trace][19627][35r4mf06] got metadata, width=1280, height=720, vcodec=7, acodec=8
[2022-03-04 13:33:08.893][Trace][19627][35r4mf06] 40B video sh,  codec(7, profile=Baseline, level=3.1, 1280x720, 0kbps, 0.0fps, 0.0s)
[2022-03-04 13:33:09.493][Trace][19627][x5910t65] Hybrid cpu=1.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:11,oth:0,buf:0)
[2022-03-04 13:33:11.422][Warn][19627][35r4mf06][4] origin disconnected, retry, error code=1007 : recv message : recv interlaced message : read basic header : basic header requires 1 bytes : read bytes : read
thread [19627][35r4mf06]: ingest() [src/app/srs_app_edge.cpp:320][errno=4]
thread [19627][35r4mf06]: recv_message() [src/protocol/srs_rtmp_stack.cpp:372][errno=4]
thread [19627][35r4mf06]: recv_interlaced_message() [src/protocol/srs_rtmp_stack.cpp:859][errno=4]
thread [19627][35r4mf06]: read_basic_header() [src/protocol/srs_rtmp_stack.cpp:954][errno=4]
thread [19627][35r4mf06]: grow() [src/protocol/srs_protocol_stream.cpp:162][errno=4]
thread [19627][35r4mf06]: read() [src/protocol/srs_service_st.cpp:514][errno=4]
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] cleanup when unpublish
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] edge change from 101 to 300 then 0 (init).
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] TCP: before dispose resource(RtmpConn)(0x1401800), conns=1, zombies=0, ign=0, inz=0, ind=0
[2022-03-04 13:33:14.422][Warn][19627][f30o5z66][4] client disconnect peer. ret=1007
[2022-03-04 13:33:14.422][Trace][19627][bwtk01m0] TCP: clear zombies=1 resources, conns=1, removing=0, unsubs=0
[2022-03-04 13:33:14.422][Trace][19627][f30o5z66] TCP: disposing #0 resource(RtmpConn)(0x1401800), conns=1, disposing=1, zombies=0
[2022-03-04 13:33:14.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=4,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, objs=(pkt:0,raw:0,fua:0,msg:11,oth:0,buf:0)
[2022-03-04 13:33:19.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=3,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:32,oth:0,buf:0)
[2022-03-04 13:33:24.494][Trace][19627][x5910t65] Hybrid cpu=1.00%,13MB, cid=3,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:32,oth:0,buf:0)
[2022-03-04 13:33:29.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=3,1, timer=63,0,0, clock=0,49,1,0,0,0,0,0,0, free=1, objs=(pkt:0,raw:0,fua:0,msg:32,oth:0,buf:0)
[2022-03-04 13:33:34.494][Trace][19627][x5910t65] Hybrid cpu=0.00%,13MB, cid=1,0, timer=62,0,0, clock=0,49,1,0,0,0,0,0,0
^C[2022-03-04 13:33:36.586][Trace][19627][cli33je7] sig=2, user terminate program, fast quit
[2022-03-04 13:33:37.501][Trace][19627][cli33je7] cleanup for quit signal fast=1, grace=0
[2022-03-04 13:33:37.501][Warn][19627][cli33je7][11] main cycle terminated, system quit normally.
[2022-03-04 13:33:37.601][Trace][19627][cli33je7] srs disposed
[2022-03-04 13:33:37.601][Trace][19627][cli33je7] srs terminated
  1. 初步解析认为http_api只要监听了127.0.0.1,coworkers 中配置的实际ip192.168.1.110也就变得请求不到了,从而导致源站节点日志中报错。就不允许任何ip来访问http_api了,就连本机实际ip192.168.1.110也不行。
    按道理讲限制本机访问,127.0.0.1和本机实际ip192.168.1.110都可以的。

期望行为(Expect)

期望可以既能让http_api监听127.0.0.1,限制别人访问。coworkers也能使用本机的实际IP访问。

uujelgoq

uujelgoq2#

在更改http_api监听为127.0.0.1后,我也尝试将各源站节点中coworkers的配置更改为127.0.0.1,但边缘edge节点也报错。
是因为当边缘节点拉流时,源站反馈给边缘的拉流地址不是实际ip,而是127.0.0.1开头的,而边缘节点上根本就没存在推流,所以就也失败了。

zlwx9yxi

zlwx9yxi3#

源站中节点配置http_api监听IP为127.0.0.1,是因为不想让外部机器访问节点中的API,提高安全性。
因为目前http_api暂不支持输入密码等类似的安全拦截,可以随意被访问,想限制住外部的访问。

mjqavswn

mjqavswn4#

k8s的话,好解决。直接部署的话,用iptables搞一下?

rvpgvaaj

rvpgvaaj5#

现场是直接部署,跑在实体机环境下的。没有跑容器。
不太清楚您说的 用iptables搞一下? 是什么意思。对Linux只是简单使用,对Linux运维相关的知识了解的较少。

eoxn13cs

eoxn13cs6#

没看懂,太复杂了。必须4个源站节点才能复现?看是否能减少复现路径。

另外,永远不要直接推流到源站,应该推流到Edge。

相关问题