FMS Server Balancing
Hello again. I run a FMS 3.5 Server and I want to add additional FMS Servers and load balance the traffic. The plan is to use a script for the developer version of FMS that forwards two incoming FME streams to the different servers, so each FMS Server has all streams. Is there a script for this? In addition there is a need for a script that somehow redirects the users to the server with the lowest users/bandwidth in use. Can somebody provide me with such a script or help me? Would appreciate it. Any other solutions would be welcome to get the same results.
I don't know of any publicly available code that does what you're looking for. I typically write an application that continually polls the admin services of each FMS in the cluster to handle load balancing.
That said, I think what you're planning would violate the terms of the EULA for the FMS dev edition. I recall reading that you can only use the dev edition for deployment when not used in conjunction with additional FMS servers.... you might want to check into that.
Similar Messages
-
This question is a mutual question of as3 and fms, I am not sure - a proficient can help in this forum but _____
In my flv file, I have 500 hundred small size (20 seconds timewise - 0.80 mb byte wise) videos in the library. In a test , randomly 6 of tese viedos come to the screen and since it is a test if you choose the correct video, the next question comes (another 6 videos randomly come and so on....)
I have 2 questions here
1. My swf is working fine with 20 videos (flv playback ) in the library, but when I fill the library with 500 of them, is there a possible size problem because of libraray capacity ( I think the stage is not a problme because only 6 videos are available on the stage each time)
2.If I publish this swf in the net and use an fms server to make possible anybody can use the swf and videos at the same time,
what capacity shall I choose as - ??? how many people at the same time. There are options like 100 people -300- 500 people at the same time. But in brief in my library I have500 videos and randomly 6 on the stage.
Thnx.."1. My swf is working fine with 20 videos (flv playback ) in the library, but when I fill the library with 500 of them, is there a possible size problem because of libraray capacity ( I think the stage is not a problme because only 6 videos are available on the stage each time)"
You don't have to do that. You can instantiate a single symbol from the library as many time as you want and just supply appropriate video asset url.
"2.If I publish this swf in the net and use an fms server to make possible anybody can use the swf and videos at the same time,
what capacity shall I choose as - ??? how many people at the same time. There are options like 100 people -300- 500 people at the same time. But in brief in my library I have500 videos and randomly 6 on the stage."
If you are talking about server config options:
a. It doesn't matter how many simbols there are in the library. What matters is how many simultaneous streams a single user will establish. So, if you play back 6 videos at a time for a single client - with 300 limit only 50 people will be able to watch them.
b. You are better off posting load balancing and configuration question on FMS forum. -
FMS Load Balancing With RTMP User Pairing
Hey All,
I'm running into an issue with scaling an FMS environment to what we need.
We need to create an RTMP environment that can support up to 1 Million
simultaneous connections. Just so you get an idea of the scale I'm talking
about.
I'm looking to have multiple FMS servers running behind a switch that interprets
the incoming RTMP request and redirects to the appropriate server.
My current test environment has one switch with three FMS servers behind it.
I'm sending the switch a URL like "rtmp://111.111.111.111/s1/". The "s1" is
passed by the RTMP call to the switch, but the switch doesn't see the variable
to determine the redirect path.
There are two reasons we are using variables for a switch to interpret:
1. Without the switch interpreting the variable, it can only do a round robin
approach and we need to be able to precisely target FMS servers since we
are pairing users over RTMP for conferencing.
2. We don't want to make the FMS server IPs public.
When testing, I've noticed that the RTMP variable "s1" isn't in the inital
handshake header that is sent by the client and that this may be why the "s1"
isn't interpreted by the switch.
Any and all input would be greatly appreciated.
Thanks,
RobertHello,
First time logon request :
When a new login request comes, it comes to message server. message server pass this request to best available application server dispatcher.
then dispatcher distributes the requests one after the other to the available work processes. Data is actually processed in the work process, whereby the user who created the request using the SAP GUI is not always assigned the same work
process. There is no fixed assignment of work processes to users.
Once user is already logged in :
Now, new transaction request for already logged on user will be always processed by same application server where he logged in first time. His transaction request from GUI comes to Dispatcher of the application server then dispatcher distributes the requests one after the other to the available free work processes(may be different). (means already logged on user may get different work process but from same application server)
also read this :
http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2e8a358411d1829f0000e829fbfe/content.htm
How dispatcher works
thanks
ashish
Edited by: ashish vikas on Aug 22, 2011 12:06 AM -
When I place the .swf, smil and http files on the FMS server the SMIL stream test sample works fine
But When I move the files to my web server I get Connection error.
This is the same issue discussed in http://forums.adobe.com/thread/554107
I added a ‘base’ variable but it did not work for me.
The SMIL file has the correct path to the sample files and FMS server
<meta base="rtmp://200.200.200.23/vod/" />
I am able to stream files from my html file on my webserver not the FMS server by pointing to the FMS server at rtmp://200.200.200.23/vod/mp4:sample1_1500kbps.f4v
Is this a domain security setting? If so, where do I change it?
If not How do I get FMS to stream SMIL files without installing a webserver with FMS?
Thanks,Hi,
I think there is bug with that videoPlayer.swf which is used by index.html of webroot folder of FMS to play media files, its not able to parse smil file correctly. I used some other player and used the smil file and kept it on http server other than fms server so it was able to dynamically stream videos. So I would suggest you to create your own player which uses smil file. You can take help from the below link to create player:
http://www.adobe.com/devnet/flashmediaserver/articles/dynstream_advanced_pt1_05.html
Regards,
Amit -
Video Freezes when overriding flv files on FMS server
I have an flash application that captures a web cam video stream and stores it on the FMS server.
I notice when I create a brand new video, and store it on my FMS server, it works fine.
When I make another video and my application overrides the file with the new video, this is where I get problems.
When I download the flv file from the FMS server, and I play it locally it plays fine, but the timeline is weird.
The web player freezes the video during that first 15 seconds.
A 30 second video, will have a time line of like 45 seconds, the local flv player is smart enough to skip over the paused part of the video.
You will see it skip over the timeline to the good video (from 0sec to 15 secs). The web player freezes the video during that first 15 seconds.
Any clues that I described that makes you know what is going on?Great that gives me a big clue, which asc file do you think I need to look in?
/mnt/applications/livepkgr/main.asc
/mnt/applications/multicast/main.asc
/mnt/applications/live/MemberClips/MemberClips.asc
/opt/adobe/fms/samples/applications/vod/main.asc
/opt/adobe/fms/samples/applications/livepkgr/main.asc
/opt/adobe/fms/samples/applications/multicast/main.asc
/opt/adobe/fms/samples/applications/live/main.asc
/opt/adobe/fms/scriptlib/framework.asc
/opt/adobe/fms/scriptlib/webservices/XMLSchema.asc
/opt/adobe/fms/scriptlib/webservices/SOAP.asc
/opt/adobe/fms/scriptlib/webservices/Namespace.asc
/opt/adobe/fms/scriptlib/webservices/ServiceManager.asc
/opt/adobe/fms/scriptlib/webservices/XMLSchemaDataTypes.asc
/opt/adobe/fms/scriptlib/webservices/Log.asc
/opt/adobe/fms/scriptlib/webservices/XMLUtil.asc
/opt/adobe/fms/scriptlib/webservices/SOAPConstants.asc
/opt/adobe/fms/scriptlib/webservices/WSDL.asc
/opt/adobe/fms/scriptlib/webservices/WebServicesClass.asc
/opt/adobe/fms/scriptlib/webservices/WSDLConstants.asc
/opt/adobe/fms/scriptlib/webservices/WebServices.asc
/opt/adobe/fms/scriptlib/webservices/XMLSchemaConstants.asc
/opt/adobe/fms/scriptlib/netservices.asc
/opt/adobe/fms/scriptlib/application.asc
/opt/adobe/fms/scriptlib/facade.asc
/opt/adobe/fms/applications/MemberClips/MemberClips.asc
/opt/adobe/fms/documentation/samples/livestreams/main.asc
/opt/adobe/fms/documentation/samples/StreamLength/main.asc
/opt/adobe/fms/documentation/samples/HelloWorld/HelloWorld.asc -
How to connect directly to FMS server
Hi,
Is it possible to connect directly to FMS server with NetConnection
and connect to video with NetStream ?
I see that in debug mode can see the RTMPS connection of FMS server,
So I try successfully connect to this RTMPS connection,
But I don't know what is the STREAM NAME of the video (WebcamPublisher).
Thanks,
Eyal.Hi Nigel,
I developed the ChatVideo (http://www.chatvideo.co.il) that use the Adobe LiveCycle Collaboration Service.
Now I want to develop a version to iPhone.
To do this I used WOWZA servers - I set up the WOWZA server to edge and he take the stream from the Adobe FMS origin server,
And on the fly the WOWZA server produce M3U8 link that can view in the iPhone.
Are you know a other way to do this?
Thanks,
Eyal. -
What is an "active connection" to the FMS server?
Hi,
I am wondering exactly what are considered "active connections" to an FMS server?
Is it only the RTMP/RTMFP NetConnections, or do NetStreams also count?
ThanksOnly netConnections. You can't connect a netstream without a netconnection so they don't count on the connection count number.
-
Listing files on FMS server @ client
Hi Everybody!
I want to show list of FLV files placed on FMS server. do u
guys have any sample code for that. Looking forward for reply!
thanks.Amitpal,
Here is a server side class that list files in 3 ways.
getFiles just returns the content of the folder specifiec.
showFileList returns the content of a folder listing it's
sub-folders and content as an object.
listFiles just returns the recursive sort of the folder.
function FileManager()
trace("#FileManager# constructor");
FileManager.prototype.getFiles = function(p_client, p_path)
trace("getFiles Called");
trace(p_path)
var fileList = new File(p_path);
var temp = fileList.list();
return temp;
FileManager.prototype.showFileList = function(p_client,
p_path)
this.fileList = {folders:"", files:""};
this.folders = new Array();
this.files = new Array();
this.listFiles(p_path, true);
//for(j=0; j<this.fileList.length; j++){
// trace(this.fileList[j]);
this.fileList.folders = this.folders;
this.fileList.files = this.files;
return this.fileList;
FileManager.prototype.listFiles = function(path, listsub)
var curFolder = new File(path);
var files = curFolder.list();
for (var f=0; f < files.length; f++) {
if (files[f].isDirectory && listsub == true) {
this.folders.push(files[f].name)
//this.listFiles(files[f].name, true);
} else {
this.files.push(files[f].name);
// main.asc file
load("FileManager.asc");
application.onAppStart = function()
this.fileManager = new FileManager();
// FileManager Call *from Peldi
Client.prototype.fileManagerCall = function(p_method)
var fileMgr = application.fileManager;
if (fileMgr[p_method] == undefined) {
trace("ERROR: this.fileManager." + p_method + " method not
found");
return false;
} else {
var params = new Array();
params.push(this);
for (var i=1; i<arguments.length; i++)
params
=arguments;
var res = fileMgr[p_method].apply(fileMgr, params);
return res;
//client side
// onConnect event handler for NetConneciton
public function onConnect(evt:Object)
__nc["Application"] = this;
var resultObject = new Object();
resultObject["owner"] = this;
resultObject.onResult = function(returnValue){
//set client side object
this.owner.__fileList:Object = {};
this.owner.__fileList = returnValue;
this.owner.dispatchEvent({type:"connectSuccess",
nc:this.owner.__nc});
// Call fms passing the video folder as a path
__nc.call("fileManagerCall", resultObject, "showFileList",
"folderOfVideos");
// a setter method to store the fileList
public function set fileList(p_list):Void
__fileList = p_list;
var foldArr = [];
for (var i = 0; i<__fileList["folders"].length; i++) {
foldArr.push(getFolder(__fileList["folders"]
this.lessonArray = foldArr;
var vidArr = [];
for (var j = 0; j<__fileList["files"].length; j++) {
vidArr.push(getFile(__fileList["files"][j]));
this.videoArray = vidArr;
// helper methods
private function getFolder(p_folder):Object
trace(p_folder)
var foldObj = {label:"", data:""};
var filePath =
p_folder.substr((p_folder).lastIndexOf("/")+1);
foldObj.label = filePath;
foldObj.data = p_folder;
return foldObj;
private function getFile(p_file):Object
var vidObj = {label:"", data:""};
var vidFilePath = p_file.substr((p_file).lastIndexOf("/")+1);
var vidFile = vidFilePath.substr(0,
vidFilePath.indexOf("."));
vidObj.label = vidFile;
vidObj.data = vidFile;
return vidObj;
Hope this helps...
Shack -
Can we restart fms server from flex?
Hi,
I wanted to know whether we can start,stop restart fms server using flex code(actionscript).I actually came across API's StartServer() and StopServer().Can I use this for the purpose.If yes can you please give a sample code so that I can better understand the functionality.HI ,
Its not possible DI server restrat Through B1WS.
Thanks
kalpen -
Live streaming to FMS server from analog cable?
Need to stream an analog cable signal (may consist of 60-70
channels in VL and VHF)to FMS server. im doing a small scale
project. so i want some hardwares supporting these. please suggest
me some reasonable ones..
is it possible to do the same with a tv tuner card.?For HLS streaming, only aac/heaac are supported audio codec. Though FMS do not disallow packaging mp3, but its mostly depnds upon ios devices to play back them.. We don't recommend mp3 as codec for ios playback.
Thanks -
Available Functions on FMS Server
I have a chat client that uses FMS server. I do not know how many more functions are on FSM that I can utilize. There is 0 documentation for the available FMS server. Is there a way to browse or query all the available features/functions of Adobe FMS server?
Also some of the chatters crashes my flash play remotely. I think, they are just overflowing the buffer? Is it the case? or how anyone can remotely crash my flash player? This only happens if I kick any of the specific user using the command /kick user.Adobe Media Server developer guide is available here
http://help.adobe.com/en_US/adobemediaserver/devguide/index.html -
Retrive FMS server date to AS3
hi,
i m working on a customer support chat application. There is
neccssary for me to get the FMS server time and date, bcoz
depending on the server time and date the client instances recive
different messages.
i looked at date() function on FMS server, but it returns
user PC time ( not FMS server time).......
so i there any way to get FMS server date and time??
thanks in advance
shrikantwhat is FMS server? Can you talk to it using HttpService?
Otherwise how do you connect to to using Flex?
ATTA -
Cannot install FMS server in Linux Fedora 4, I receive this
message:
Your distribution, unknow, is not supported by this
Macromedia Flash Media Server installer.
What can I do, who can help me?I got FMS working with Fedora by entering these UNIX
commands:
cd /usr/lib
sudo ln -s libcrypto.so libcrypto.so.4
sudo ln -s libcrypto.so libcrypto.so.6
sudo ln -s libssl.so libssl.so.4
sudo ln -s libssl.so libssl.so.6
/etc/init.d/fms start
ALSO, don't forget that you need to have these port numbers
opened by your ISP:
FMS Server Port = 1935
FMS Admin Server Port = 1111
Enjoy! -
FMS Server leaves ghost conncetions open? HELP
If u run an FMS application and connect to it with a client,
then pull the LAN cable to that client out of the wall
[disconnecting it] the fms server still shows that client as
connected.... How is this supposed to be managed? the
application.onDisconnect function is NOT called in this scenario,
and the application thinks a client is still present!
HELPYup... that's been a problem since FCS 1.0. The problem is
that FMS still sees the connection to the router/proxy, and thinks
the client is still there.
I like to work around this by having the server call a client
function on an interval, and wait for a response (using client.call
and a result handler). If the client doesn't respond after a given
period of time, I close the connection on the server side. -
Hi to all,
I am a flex developer.I am new in FMS.I want to upload videos(not webcam video) with format mpg,avi etc. to FMS Server streams folder with convert it with .flv format.
Can any body help me.
Thanks is advance.
Priyanka KapoorYup... that's been a problem since FCS 1.0. The problem is
that FMS still sees the connection to the router/proxy, and thinks
the client is still there.
I like to work around this by having the server call a client
function on an interval, and wait for a response (using client.call
and a result handler). If the client doesn't respond after a given
period of time, I close the connection on the server side.
Maybe you are looking for
-
My husband has an iphone4 and I used the Net10 byop package and it activated and they gave me the phone number and it worked immediately exept it states on home screen SPRINT! (This phone came from a family member that no longer was using it. There w
-
Split an AVI movie into several segments in PE 4
I am new to using PE and have an old version which I never used. I have tried to do this with Roxio Creator 2009, Nero 9, and Studio 9 with no luck. I captured a video from a Canon ZR 45. I contains 2 actual sessions which I would like to make int
-
Random iTunes library problem or bug with duplicates
iTunes (Mac) spontaneously creates duplicate songs and does some unusual things in the process. The duplicate songs only appear in my library, the music media remains intact most of the time. Sometimes iTunes moves one or two songs from the same reco
-
Does IDoc get triggered when GR occured for a particular po
Hi Friends, Say a GR occured for a particular PO,so i want to track this GR in Action Code that GR has occuredand no other details is needed except that. so,my question is "Does IDoc get triggered when GR has occured for a particular Purchase Order".
-
Pdf mail merge like / FOP / PLPDF
Hi to all, does exist any products that run as well with Oracle xe, that allow user to do a 'mailmerge like' linking with data? I'll try to explain better what i'm looking for: 1- A Model designer will do the pdf, with graphic and map the db field ac