Skip to main content
September 24, 2011
Question

Setting up Flash media server 4.0

  • September 24, 2011
  • 2 replies
  • 2577 views

ok so is where i am now..

i have a orgin server and 2 edge servers and a load balancer

first off im confused in each edge server i set them to be remote, rtmp and changed the routeentry to  <RouteEntry>*:*;96.44.***.***:1935</RouteEntry> on both servers

orgin server is just local

what my question is im streaming to orgin and its getting sent to 1 edge and other edge is doing nothing no traffic the stream i set it this way url: 'rtmp://173.254.***.***/live/live_test', which is the 1 edge thats working if i setup another channel pointing to the other edge server ip adresss it doesnt work.. what am i doing wrong isnt all this supposed to be load balanced or am i missing steps...

or did i do it wrong on the flash player config.. Thanks

    This topic has been closed for replies.

    2 replies

    September 25, 2011

    ok so here is the deal...

    url: 'rtmp://173.254.***.***/live/live_test' <-- was wrong i think i pointed it edge server so i changed it to point to load balancer:1935 and it worked... only problem when people connected 80% of the load went to dallas  edge server..

    Ok so this is my setup

    2 dedicated servers 1 in dallas and 1 in LA

    Dallas server has 2 1gbit lines so i made 2 vps's inside the server 1 to act as load balancer and 1 to act as origin server...

    la server was just plain edge server...

    as per this

    listen rtmp :1935

        mode tcp

        balance roundrobin

    server s1 173.254.***.***:1935 check

        server s2 96.44.***.***:1935 check

    should it not have worked ? or did i miss sumthing again

    i feel im really close to solving this...

    Nikhil_Kalyan
    Participating Frequently
    September 24, 2011

    Hi,

    Thanks for using FMS 4.0

    The setup for edge looks alright.

    But, edges are not the load balancers in the general way we presume. The edges route the traffic to an origin server once they get the traffic to them. But there is as such no mechanism within the FMS or Flash player to direct this traffic to one of the edge servers. This has to be done through many ways , programatically (plugins) or scripts (simple server side code) or any external load balancer or other methods.

    Once the edge gets the traffic, it totally redirects (in your case the route entry is * : * , all traffic), to the origin, which streams accordingly.

    All your clients should be directed to one or both the edge servers (without direct connection to the origin), and then routed.

    Hope it clarifies. Thank you  !

    September 24, 2011

    i have a server running haproxy thats the load balancer is its info  supposed to be put somewhere in the configs?

    September 24, 2011

    so to clarify this i stream with fme to orgin which sends info to edge servers correct? so did i miss a step?