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

Should child srs's be subtract here? #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

moeshue
Copy link

@moeshue moeshue commented Mar 25, 2016

It seems that the resource for connecting child srs should be released after connection failed and so is the srs's load counter.

It seems that the resource for connecting child srs should be released after connection failed and so is the srs's load counter.
@winlinvip
Copy link
Member

好像不用

@moeshue
Copy link
Author

moeshue commented Mar 25, 2016

您好,我會有此疑慮是因為,在我使用flazr壓力測試之後,即便我關掉了flazr,之後想再透過vlc播放串流都會失敗(會一直出現rtmp handshake failed,這應該是另一個問題),會connect server error,但此時用來做load balance的那個load變數就會一直往上加,不會減少,似乎在我關掉vlc之後,還是沒有跑到load--那裡,是我誤會這個機制嗎? 這樣是不是會影響choose_srs()的決定結果?

另外,在多核的環境下,dolphin的使用能大量提升concurrent的連線數嗎?因為測試起來效果好像沒有單一srs來的好?

太感謝你了!

從我的 iPhone 傳送

winlin [email protected] 於 2016年3月25日 18:12 寫道:

好像不用


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub

@winlinvip
Copy link
Member

请用srs-bench做压力测试,可能是flazr没有释放的原因?
https://github.com/ossrs/srs-bench

@moeshue
Copy link
Author

moeshue commented Mar 28, 2016

Hi Win,

  首先,我有用netstat查看在Flazr關閉之後,已經沒有socket佔用,然而,要試著用VLC播放,還是會因為connect server failed而失敗。而我想跟您請教的問題並非是誰沒有release socket;而是,在因為某些原因server connect failed,child srs的load還是會往上加,而不會因為failed減回來,這樣變成我用VLC播放失敗越多次,load變數就越大,然而child srs真實的load並沒有增加,不知道這樣會不會影響接下來choose_srs的機制,畢竟這個function是用load來決定的,而load卻又無法反應真實狀況。

真的很抱歉,一直麻煩您,目前公司暫時打算採用單一SRS不用dolphin,但是我單純想要知道我的理解是否有任何錯誤?

感謝!!

winlin [email protected] 於 2016年3月28日 11:54 寫道:

请用srs-bench做压力测试,可能是flazr没有释放的原因?
https://github.com/ossrs/srs-bench https://github.com/ossrs/srs-bench

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub #1 (comment)

@winlinvip
Copy link
Member

我们也是没有用dolphin,因为单核的srs性能够用了。你说的这个应该是dolphin的bug,没有正确计算load导致。

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

Successfully merging this pull request may close these issues.

2 participants