diff options
Diffstat (limited to '')
-rw-r--r-- | example/config/sim_skeleton/My_sim.xml | 7 | ||||
-rw-r--r-- | example/config/sim_skeleton/ThisSim.ini | 21 | ||||
-rw-r--r-- | example/config/sim_skeleton/opensim-monit.conf | 8 |
3 files changed, 29 insertions, 7 deletions
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 | # |
16 | check process simSIM_NUMBER with pidfile /var/run/opensim/simSIM_NUMBER.pid | 16 | check 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 |