Giter Site home page Giter Site logo

Comments (2)

winlinvip avatar winlinvip commented on May 28, 2024

Fault-tolerant backup actually consists of two strategies: one is a hot backup, and the other is a cold backup.

Hot Backup

Hot backup involves forwarding traffic to two different Real SRS Servers behind a single VIP (Virtual IP).

In fact, within Kubernetes (K8s), a VIP is equivalent to a Service, and the two SRS Servers correspond to two Pods.

Regarding stream pushing, for instance, when a client pushes a stream to the Service's VIP, the Service randomly selects one Pod to handle it, and this process should work without issues.

When an issue arises with an SRS, the Service will remove the problematic Pod. Consequently, when a client pushes a stream to this VIP, it will automatically be routed to the next available Pod, and this should also function well.

However, there can be issues when playing SRT streams. For instance, if a client pushes a stream to PodA, and when attempting to play this SRT stream, it might be routed to PodB instead, resulting in the player being unable to retrieve the stream and causing a black screen.

Cold Standby

Cold standby refers to a scenario where the VIP (Virtual IP) always forwards to a primary SRS Real Server initially, and then, in the event of an issue, it redirects to a backup SRS Server.

Under this approach, the current SRS is operational. However, the issue lies with the VIP (Virtual IP) or the Kubernetes Service, which needs to have the capability to support this functionality.

My impression is that load balancers like HAP can support this method, but I'm not sure, you need to do some test and verification.

TRANS_BY_GPT4

from srs.

winlinvip avatar winlinvip commented on May 28, 2024

I would like to propose a more suitable solution, which is the SRT Proxy. In fact, it integrates the above-mentioned cold standby and hot standby solutions.

Alternatively, to put it simply, the SRT Proxy can be regarded as a VIP or LB that supports hot standby. We have previously discussed the Proxy solution in detail, please refer to #3634.

We have also implemented a validation demo for SRT Proxy, confirming that SRT can be proxied. For reference, see #3869.

This year, we should be able to implement this Proxy, but currently, there is no specific timeline established.

TRANS_BY_GPT4

from srs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.