aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/example/config
diff options
context:
space:
mode:
authoronefang2019-05-22 19:14:35 +1000
committeronefang2019-05-22 19:14:35 +1000
commitca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5 (patch)
tree9b4dfc525c31a88014a8d7d6c223e7cd452749c6 /example/config
parentRenamed branch to SledjChisl. (diff)
downloadopensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.zip
opensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.gz
opensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.bz2
opensim-SC_OLD-ca7a2ed839f8fec5a7d7abbf50fc2c031f192fb5.tar.xz
Major tweaking of the scripts to suit the new setup.
Diffstat (limited to 'example/config')
-rw-r--r--example/config/ROBUST/opensim-monit.conf6
-rw-r--r--example/config/config.ini30
-rw-r--r--example/config/sim_skeleton/My_sim.xml7
-rw-r--r--example/config/sim_skeleton/ThisSim.ini21
-rw-r--r--example/config/sim_skeleton/opensim-monit.conf8
5 files changed, 44 insertions, 28 deletions
diff --git a/example/config/ROBUST/opensim-monit.conf b/example/config/ROBUST/opensim-monit.conf
index 70190b9..adce46d 100644
--- a/example/config/ROBUST/opensim-monit.conf
+++ b/example/config/ROBUST/opensim-monit.conf
@@ -21,10 +21,10 @@
21# 21#
22# Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l. 22# Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l.
23# 23#
24check process ROBUST with pidfile /var/run/opensim/ROBUST.pid 24check process ROBUST with pidfile OS_PATH/caches/ROBUST.pid
25 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/ROBUST && /opt/opensim/config/ROBUST/start-sim -q'" 25 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd OS_PATH/config/ROBUST && OS_PATH/config/ROBUST/start-sim -q'"
26 as uid root and gid root 26 as uid root and gid root
27 stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/ROBUST && /opt/opensim/config/ROBUST/stop-sim'" with timeout 600 seconds 27 stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd OS_PATH/config/ROBUST && OS_PATH/config/ROBUST/stop-sim'" with timeout 600 seconds
28 if cpu usage > 50% for 4 cycles then restart 28 if cpu usage > 50% for 4 cycles then restart
29# if 5 restarts within 5 cycles then timeout 29# if 5 restarts within 5 cycles then timeout
30# if failed url http://127.0.0.1:9005/jsonSimStats/ 30# if failed url http://127.0.0.1:9005/jsonSimStats/
diff --git a/example/config/config.ini b/example/config/config.ini
index 3890e66..510c8b6 100644
--- a/example/config/config.ini
+++ b/example/config/config.ini
@@ -1,13 +1,12 @@
1; ** 1; The Const section allows us to define some basic information that we
2; * The Const section allows us to define some basic information that we 2; will use throughout our configuration. We will provide examples for
3; * will use throughout our configuration. We will provide examples for 3; setting the base url of the ROBUST server and the public and private ports
4; * setting the base url of the Robust server and the public and private ports 4; it uses. Changing the values of the constants will set the operating
5; * it uses. Changing the values of the constants will set the operating 5; parameters thoughout the configuration. Other constants that may prove
6; * parameters thoughout the configuration. Other constants that may prove 6; to be useful may be added to the followin section. They may be
7; * to be useful may be added to the followin section. They may be 7; referenced anywhere in the configuration by using ${Const|Name}. One
8; * referenced anywhere in the configuration by using ${Const|Name}. One 8; such use is providing a base path for setting locations that ROBUST
9; * such use is providing a base path for setting locations that Robust 9; uses to write data.
10; * uses to write data.
11 10
12; Also put grid specific stuff here. 11; Also put grid specific stuff here.
13 12
@@ -31,22 +30,17 @@
31 ; For a standalone this will usually be the externally accessible IP/DNS 30 ; For a standalone this will usually be the externally accessible IP/DNS
32 ; name and use default public port 9000. The private port is not used 31 ; name and use default public port 9000. The private port is not used
33 ; in the configuration for a standalone. 32 ; in the configuration for a standalone.
34
35 BaseHostname = "127.0.0.1" 33 BaseHostname = "127.0.0.1"
36 HostName = "localhost" 34 HostName = "localhost"
37 BaseURL = http://${Const|BaseHostname} 35 BaseURL = http://${Const|BaseHostname}
38 GridURL = http://${Const|BaseHostname} 36 GridURL = http://${Const|BaseHostname}
39 37
40 ;# {PublicPort} {} {PublicPort} {8002 9000} "8002"
41 PublicPort = "8002" 38 PublicPort = "8002"
42
43 ;# {PrivatePort} {} {PrivatePort} {8003} "8003"
44 PrivatePort = "8003" 39 PrivatePort = "8003"
45 40
41 ; The public port of the ROBUST asset server, which might be different.
42 AssetServerPort = "8003"
46 43
44 ; Database credentials.
47 DataProvider = "OpenSim.Data.MySQL.dll" 45 DataProvider = "OpenSim.Data.MySQL.dll"
48 ConnectionString = "Data Source=MYSQL_HOST;Database=MYSQL_DB;User ID=MYSQL_USER;Password=MYSQL_PASSWORD;Old Guids=true;" 46 ConnectionString = "Data Source=MYSQL_HOST;Database=MYSQL_DB;User ID=MYSQL_USER;Password=MYSQL_PASSWORD;Old Guids=true;"
49
50
51 ; The public port of the Robust server -- THIS IS SPECIAL PORT FOR ASSSET SERVER
52 AssetServerPort = "8003"
diff --git a/example/config/sim_skeleton/My_sim.xml b/example/config/sim_skeleton/My_sim.xml
index c5723f3..f71df57 100644
--- a/example/config/sim_skeleton/My_sim.xml
+++ b/example/config/sim_skeleton/My_sim.xml
@@ -9,5 +9,12 @@
9 <Key Name="RegionType" Value="private sim" /> 9 <Key Name="RegionType" Value="private sim" />
10 <Key Name="SizeX" Value="SIM_SIZE" /> 10 <Key Name="SizeX" Value="SIM_SIZE" />
11 <Key Name="SizeY" Value="SIM_SIZE" /> 11 <Key Name="SizeY" Value="SIM_SIZE" />
12 <Key Name="SizeZ" Value="16384" />
13 <Key Name="MaxAgents" Value="100" />
14 <Key Name="MaxPrims" Value="45000" />
15 <Key Name="PhysicalPrimMax" Value="640" />
16 <Key Name="NonphysicalPrimMax" Value="2560" />
17 <Key Name="ClampPrimSize" Value="False" />
18 <Key Name="MaptileStaticUUID" Value="00000000-0000-0000-0000-000000000000" />
12 </Section> 19 </Section>
13</Nini> 20</Nini>
diff --git a/example/config/sim_skeleton/ThisSim.ini b/example/config/sim_skeleton/ThisSim.ini
index 2f691f0..140cf3b 100644
--- a/example/config/sim_skeleton/ThisSim.ini
+++ b/example/config/sim_skeleton/ThisSim.ini
@@ -2,9 +2,24 @@
2 mysim="SIM_NUMBER" 2 mysim="SIM_NUMBER"
3 3
4[Startup] 4[Startup]
5 PIDFile = "/var/run/opensim/sim${Const|mysim}.pid" 5 PIDFile = "${Paths|CachePath}/sim${Const|mysim}.pid"
6 regionload_regionsdir="/opt/opensim/config/sim${Const|mysim}" 6 LogFile = "${Paths|LogPath}/OpenSim_sim${Const|mysim}.log"
7 LogFile = "../logs/OpenSim_sim${Const|mysim}.log" 7 ConsoleHistoryFile = "${Paths|LogPath}/OpenSimConsoleHistory_sim${Const|mysim}.txt"
8 regionload_regionsdir="../../config/sim${Const|mysim}"
9
10[Map]
11 enablePosition = true
12 ; Only texture prims that have a diagonal size greater than this number.
13 TexturePrimSize = 1
8 14
9[Network] 15[Network]
10 http_listener_port = SIM_PORT 16 http_listener_port = SIM_PORT
17
18[Performance]
19 ;; Select the performance characteristirs of OpenSim.
20 ; Include-Performance = "config-include/SimFast.ini"
21 Include-Performance = "config-include/SimBalanced.ini"
22 ; Include-Performance = "config-include/SimDefault.ini"
23 ; Include-Performance = "config-include/SimLean.ini"
24 │ 2621 mysql 20 0 4131620 483696 17640 S 0.3 2.9 8:07.82 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/x86_64-linux-gnu/mariadb18/plugin --user=m+
25 \ No newline at end of file
diff --git a/example/config/sim_skeleton/opensim-monit.conf b/example/config/sim_skeleton/opensim-monit.conf
index ac50fc2..fd9220f 100644
--- a/example/config/sim_skeleton/opensim-monit.conf
+++ b/example/config/sim_skeleton/opensim-monit.conf
@@ -13,12 +13,12 @@
13# 13#
14# Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l. 14# Hmmmm, seems that monit changing to a user and running bash -l is different from sudo changing to a user and running bash -l.
15# 15#
16check process simSIM_NUMBER with pidfile /var/run/opensim/simSIM_NUMBER.pid 16check process simSIM_NUMBER with pidfile OS_PATH/caches/simSIM_NUMBER.pid
17 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/simSIM_NUMBER && /opt/opensim/config/simSIM_NUMBER/start-sim -q'" 17 start program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd OS_PATH/config/simSIM_NUMBER && OS_PATH/config/simSIM_NUMBER/start-sim -q'"
18 as uid root and gid root 18 as uid root and gid root
19 stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd /opt/opensim/config/simSIM_NUMBER && /opt/opensim/config/simSIM_NUMBER/stop-sim'" with timeout 600 seconds 19 stop program = "/usr/bin/sudo -Hu opensim /bin/bash -lc 'cd OS_PATH/config/simSIM_NUMBER && OS_PATH/config/simSIM_NUMBER/stop-sim'" with timeout 600 seconds
20 if cpu usage > 50% for 4 cycles then restart 20 if cpu usage > 50% for 4 cycles then restart
21 if MEMORY usage > 25% for 4 cycles then restart 21 if MEMORY usage > 10% for 4 cycles then restart
22# if 5 restarts within 5 cycles then timeout 22# if 5 restarts within 5 cycles then timeout
23# if failed url http://127.0.0.1:9005/jsonSimStats/ 23# if failed url http://127.0.0.1:9005/jsonSimStats/
24# and content != '"SimFPS":0.0,' for 4 cycles 24# and content != '"SimFPS":0.0,' for 4 cycles