Change font size
It is currently Wed Mar 22, 2017 5:13 pm

Forum rules


Image
Keep the training material related in some way to OSGrid and OpenSIM or tools that you would use externally to opensim such as image editors and database tools etc... but ultimately the material presented benefits OpenSIM and OSGrid.



Post a new topicPost a reply Page 1 of 1   [ 1 post ]
Author Message
 Post subject: Managing multiple regions
PostPosted: Sun Dec 18, 2016 3:21 am 

Joined: Wed Aug 10, 2016 9:20 am
Posts: 2
I cant take credit for this technique as I am sure I read this somewhere awhile back and I use it.

This post is for anyone who runs multiple regions with many copies of OpenSim so as to segment the regions into their own process.
the developers have provided many flexible options to run specific .ini files and this is just one technique that can be used.
Hope you find this useful.

so what does this do?
It is to have a single install of OpenSim and run regions under their own processes.

scenario: I have 5 Regions, 1 sandbox, 2 Build/test and 2 showcase regions
If I run them under a single process, and I have to shutdown a region I will need to bring down all 5 regions first. (I used to make a mess of my Build/Test regions way too often )
I can run multiple installs of Opensim however, it becomes cumbersome when its time to upgrade as I have 2 or more copies to upgrade each time.

so whats different?
we will group the regions and run each group under their own process. in that way I can bring down a group (or groups) leaving the rest of the regions up running.

so what needs to be done?
this is a windows bases example however the same can be applied for Linux.
In my example Opensim is installed under C:\OSGRID
Following is what you will need to do.

--------------------------------------------------------------------------------------------------------------------
##Create the Following Folders under the bin directory

C:\OSGRID\bin\sims\group1\Regions
C:\OSGRID\bin\sims\group2\Regions
C:\OSGRID\bin\sims\group3\Regions

## Structure is as follows

C:\OSGRID\bin\sims\group1\OpenSim.ini
C:\OSGRID\bin\sims\group1\Regions\Regions.ini

C:\OSGRID\bin\sims\group2\OpenSim.ini
C:\OSGRID\bin\sims\group2\Regions\Regions.ini

C:\OSGRID\bin\sims\group3\OpenSim.ini
C:\OSGRID\bin\sims\group3\RegionsRegions.ini

----------------------------------------------------------------------------------------
## Contents of C:\OSGRID\bin\sims\group1\OpenSim.ini
## THIS OpenSim.ini IS IN ADDITION TO THE ONE IN YOUR .\bin DIRECTORY
## needs a unique port number in this OpenSim.ini file (9010 as my Regions.ini file for
## "group1" is using ports 9011 - 9013 for the 3 sims)

[Startup]
regionload_regionsdir = "C:\OSGRID\bin\sims\group1\Regions\"

[Network]
http_listener_port = 9010

----------------------------------------------------------------------------------------
## Contents of C:\OSGRID\bin\sims\group2\OpenSim.ini
## THIS OpenSim.ini IS IN ADDITION TO THE ONE IN YOUR .\bin DIRECTORY
## needs a unique port number in this OpenSim.ini file (9020 as my Regions.ini file for
## "group2" is using ports 9021 - 9023 for the 3 sims)

[Startup]
regionload_regionsdir = "C:\OSGRID\bin\sims\group2\Regions\"

[Network]
http_listener_port = 9020
-----------------------------------------------------------------------------------------
## Contents of Region.ini under Group1\Regions (fill out your sim details)
## Create similar Region.ini for each Group
## DONT FORGET TO REMOVE THE Region.ini UNDER c:\OSGRID\bin\Regions\


[REGION_1]
RegionUUID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Location = XXXXX,YYYYY
SizeX = 256
SizeY = 256
SizeZ = 256
InternalAddress = 0.0.0.0
InternalPort = 9011
AllowAlternatePorts = False
ExternalHostName = my.domain.com
MaptileStaticUUID = 00000000-0000-0000-0000-000000000000

[REGION_2]
RegionUUID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Location = XXXXX,YYYYY
SizeX = 256
SizeY = 256
SizeZ = 256
InternalAddress = 0.0.0.0
InternalPort = 9012
AllowAlternatePorts = False
ExternalHostName = my.domain.com
MaptileStaticUUID = 00000000-0000-0000-0000-000000000000

[REGION_3]
RegionUUID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Location = XXXXX,YYYYY
SizeX = 256
SizeY = 256
SizeZ = 256
InternalAddress = 0.0.0.0
InternalPort = 9013
AllowAlternatePorts = False
ExternalHostName = my.domain.com
MaptileStaticUUID = 00000000-0000-0000-0000-000000000000

-----------------------------------------------------------------------------------------
## Contents of Region.ini under Group2\Regions (fill out your sim details)
## Create similar Region.ini for each Group

[REGION_4]
RegionUUID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Location = XXXXX,YYYYY
SizeX = 256
SizeY = 256
SizeZ = 256
InternalAddress = 0.0.0.0
InternalPort = 9021
AllowAlternatePorts = False
ExternalHostName = my.domain.com
MaptileStaticUUID = 00000000-0000-0000-0000-000000000000

[REGION_5]
RegionUUID = xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Location = XXXXX,YYYYY
SizeX = 256
SizeY = 256
SizeZ = 256
InternalAddress = 0.0.0.0
InternalPort = 9022
AllowAlternatePorts = False
ExternalHostName = my.domain.com
MaptileStaticUUID = 00000000-0000-0000-0000-000000000000


-----------------------------------------------------------------------------------------
## Now to start Opensim open a command prompt and run (this is for Group1 regions)
C:\OSGRID\bin\OpenSim.exe -inidirectory="C:\OSGRID\bin\sims\group1"

## Open a new command prompt and run (for Group2)
C:\OSGRID\bin\OpenSim.exe -inidirectory="C:\OSGRID\bin\sims\group2"
-----------------------------------------------------------------------------------------


Top
 Profile  
 
Display posts from previous:  Sort by  
Post a new topicPost a reply Page 1 of 1   [ 1 post ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
610nm Style by Daniel St. Jules of Gamexe.net