Skip to main content
Sep 24, 2011 7:07 AM UTC
Question

Setting up Flash media server 4.0

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 is closed to new replies. Start a new post to keep the conversation going.

    11 replies

    Sep 25, 2011 10:53 AM UTC

    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...

    Translate
    Nikhil_Kalyan
    Participating Frequently
    Sep 24, 2011 8:26 AM UTC

    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  !

    Translate
    Sep 24, 2011 8:36 AM UTC

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

    Translate
    Sep 24, 2011 8:38 AM UTC

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

    Translate