|
Darwin Streaming Server
Hi All,
I am going to write a guide for those who wish to run multiple instances of darwin streaming server from 1 server in a multiple IP address scenario and am looking for interested people to get involved and assist in creating the guide. (as well as learn a bit myself as I/we go along)
I will be scripting the whole thing at the end so people can create and run a setup.sh for each additional instance they want to create.
I am no expert but should be able to work this out with a little help so here goes.
Assumptions:
1) Each instance will have a unique admin account
2) You allready have installed DSS once.
3) You know how to start it.
4) Default ports will be used.
5) You have more than 1 ip address assigned to your server.
6) You know the syntax to run DSS and specify additional options
e.g.:
usage: DarwinStreamingServer [ -d | -p port | -v | -c /myconfigpath.xml | -o /myconfigpath.conf | -x | -S numseconds | -I | -h ]
-d: Run in the foreground
-D: Display performance data
-p XXX: Specify the default RTSP listening port of the server
-c /myconfigpath.xml: Specify a config file
-o /myconfigpath.conf: Specify a DSS 1.x / 2.x config file to build XML file from
-x: Force create new .xml config file and exit.
-S n: Display server stats in the console every "n" seconds
-I: Start the server in the idle state
-h: Prints usage
What is known:
In order to run DSS multiple times you must have unique config files and locations for each instance, those files are:
files:
/etc/streaming/streamingserver.xml
/etc/streaming/qtusers
/etc/streaming/qtgroups
/etc/streaming/streamingloadtool.conf
/etc/streaming/relayconfig.xml
In order to run muliple instances you require a set of these files in a unique location e.g.
/etc/streaming/second_instance/
/etc/streaming/third_instance/
The streamingserver.xml file must be altered per instance, I have extracted the linesI personaly belive have to be unique as below:
key:
? = not 100% sure it needs a qunique value
opt = does not need to be unique but can be specified
opt <PREF NAME="maximum_connections" TYPE="SInt32" >1000</PREF>
<PREF NAME="movie_folder" >/usr/local/movies/</PREF>
<PREF NAME="bind_ip_addr" >0</PREF>
<PREF NAME="error_logfile_dir" >/var/streaming/logs/</PREF>
<PREF NAME="run_user_name" >qtss</PREF>
?<PREF NAME="run_group_name" >qtss</PREF>
?<PREF NAME="pid_file" >/var/run/DarwinStreamingServer.pid</PREF>
?<PREF NAME="relay_prefs_file" >/etc/streaming/relayconfig.xml</PREF>
<PREF NAME="request_logfile_dir" >/var/streaming/logs/</PREF>
<PREF NAME="request_logfile_name" >StreamingServer</PREF>
<PREF NAME="mp3_request_logfile_dir" >/var/streaming/logs/</PREF>
<PREF NAME="mp3_broadcast_password" >xxxx</PREF>
<PREF NAME="modAccess_usersfilepath" >/etc/streaming/qtusers</PREF>
<PREF NAME="modAccess_groupsfilepath" >/etc/streaming/qtgroups</PREF>
What is not know/Questions:
1) Where to specify unique WebAdmin port i.e. not 1220 ?
2) Is a seperate /var/streaming/AdminHtml e.g. /var/streaming/second_instance/AdminHtml required or can all instances use the 1 directory ?
3) Are there any other config files or lines within config files that need to be unique?
If there are any interested users please comment or get back to me ultimatley I would like to automate the whole install proccess and the proccess of crating multiple instances with either answer files or prompts.
|