Multiple instances for GSS

61 views
Skip to first unread message

paola....@gmail.com

unread,
Mar 3, 2022, 10:28:37 AM3/3/22
to geopaparazzi-users
Hi everybody,
I'm working with five classes of a secondary school for a project about hydrogeological risk awareness in urban environment. The students of each class are going to use SMASH to report risk related situations in some areas of Genova and the notes they are going to collect will be gathered in a GSS server. Each class has a specific theme, but study  areas and  survey days are overlapping. In order to let students focus only on their theme, it would be useful to create a GSS instance for each class i. e. using different subfolders or different ports . Is it possible? GSS runs on a Ubuntu 20 in house server.
Thank you very much
Best regards
Paola

andrea antonello

unread,
Mar 4, 2022, 5:22:44 AM3/4/22
to geopaparazzi-u.
Hi Paola,

> Hi everybody,
> I'm working with five classes of a secondary school for a project about hydrogeological risk awareness in urban environment. The students of each class are going to use SMASH to report risk related situations in some areas of Genova and the notes they are going to collect will be gathered in a GSS server. Each class has a specific theme, but study areas and survey days are overlapping. In order to let students focus only on their theme, it would be useful to create a GSS instance for each class i. e. using different subfolders or different ports . Is it possible? GSS runs on a Ubuntu 20 in house server.

currently it is possible to choose a different workspace for each
server run, but not the port.

It would be a fairly simple change to add it as a possible option so
that the default 8080 can be changed.
The only thing I am a bit worried, is the case in which you also need
https, which uses port 443. In that case I think it could be
complicated to do changes without messing things up with other
services.

What do you think?

Cheers,
Andrea




> Thank you very much
> Best regards
> Paola
>
> --
> You received this message because you are subscribed to the Google Groups "geopaparazzi-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to geopaparazzi-us...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/geopaparazzi-users/20d86b8e-b1fb-4f06-bfc9-c8aa64005884n%40googlegroups.com.

paola....@gmail.com

unread,
Mar 7, 2022, 9:09:21 AM3/7/22
to geopaparazzi-users
Hi Andrea,
I've tried to create different workspaces, butI'm afraid I'm making some mistakes. I've created a H2GIS database for each instance and I manage to shift from one to another by changing the name of the reference database in the run.sh file. Anyway, by acting so,  I can't run more than one instance simultaneously. Is it correct?
I've thought to change port in order to allow the students of the different classes to work independently at the same, time avoiding to mix notes, but any solution is good. I've no problems with the 443 port because presently there are no services using it.
Thank you very much for any suggestion.
Paola

andrea antonello

unread,
Mar 16, 2022, 9:49:48 AM3/16/22
to geopaparazzi-u.
Hi Paola,
sorry for the late reply, but at least I bring good news. :-)

> I've tried to create different workspaces, butI'm afraid I'm making some mistakes. I've created a H2GIS database for each instance and
>I manage to shift from one to another by changing the name of the reference database in the run.sh file.
> Anyway, by acting so, I can't run more than one instance simultaneously. Is it correct?

It should. The run.sh script usually looks like:

VERSION=3.3.0
WORKSPACE=/home/hydrologis/TMP/GSS/
MEM=-Xmx4g
java $MEM -jar gss-backbone-$VERSION.jar -w $WORKSPACE -mp testPwd

If you create a folder structure using the groups you need to handle, ex.
/home/school/workspaces/class1/
/home/school/workspaces/class2/
/home/school/workspaces/class3/
/home/school/workspaces/class4/
You would just use these paths to the WORKSPACE variable and it should
work out of the box.

BUT! If you run multiple instances on the same machine, only the first
one will run, because they will all try to use the 8080 port and only
the first will succeed. Any other run should fail telling you about
the port already being in use.

But the change is already done to be able to specify the port like:

java $MEM -jar gss-backbone-$VERSION.jar -w $WORKSPACE -mp testPwd -pt 8083

So if you make a couple of run.sh scripts with set WORKSPACE and port,
you should be able to make this work. You will have to just wait for a
couple of days for the new release.
> To view this discussion on the web visit https://groups.google.com/d/msgid/geopaparazzi-users/887856af-0434-421d-8dcf-ab55dad3fc2en%40googlegroups.com.

paola....@gmail.com

unread,
Mar 24, 2022, 8:50:14 AM3/24/22
to geopaparazzi-users
Hi Andrea,
it works, thank you very much! I have installed the last version of GSS (3.5.0) and now I have a different instance for each class.
Cheers
Paola

andrea antonello

unread,
Mar 25, 2022, 3:18:57 AM3/25/22
to geopaparazzi-u.
Hi Paola,

it works, thank you very much! I have installed the last version of GSS (3.5.0) and now I have a different instance for each class.

fantastic!

Cheers,
Andrea

 

andrea antonello

unread,
Mar 25, 2022, 3:20:18 AM3/25/22
to geopaparazzi-u.
BTW, due to some nice profiling work and pushing done by Francesco, this version should be quite more performant when loading many notes. :-)
So this should also benefit your case.

Cheers,
Andrea
Reply all
Reply to author
Forward
0 new messages