CityScope / CS_Simulation_GAMA

Agent Based Simulation platform for CityScope
GNU General Public License v3.0
30 stars 21 forks source link

Headless mode #149

Closed agrignard closed 3 years ago

agrignard commented 3 years ago

Now that the bridge has been rebuild we will need to see how to set up a server to have Gama running in a headless mode.

I am not sure what is the best way to do it, I guess to having it running on cityIO server, maybe it would make sense to ask nexus for a dedicated GAMA server, but not sure how to do it.

@crisjf if you want to have a look at the headless here is the doc https://gama-platform.github.io/wiki/Headless

Maybe it would make sense to have a meta script in python that can handle the triggering of GAMA.

RELNO commented 3 years ago

@agrignard getting a dedicated VM from necsys is quite simple, send a request to help@media.mit.edu . Running it on the same server as cityIO might have negative effects since both apps might fight on the same resources. Actually @doorleyr is now migrating his module to a dedicate VM for the same reason.

crisjf commented 3 years ago

They even have a docker image!

https://hub.docker.com/r/gamaplatform/gama

crisjf commented 3 years ago

Totally headless, running inside a docker container, and entering idle mode as soon as the update is done. We are making incredible progress on this thing!

image

crisjf commented 3 years ago

The documentation still needs some love, but the three main commands are here:

https://github.com/CityScope/CS_Simulation_GAMA/tree/master/CS_CityScope_GAMA/models/cityIO

@agrignard or @RELNO can you request a VM for GAMABrix?

agrignard commented 3 years ago

Wha @crisjf ! Congrats! you're on fire!

crisjf commented 3 years ago

@doorleyr will give @agrignard and me access to the CS_Modules vm

agrignard commented 3 years ago

FYI https://github.com/gama-platform/gama.docker/issues/4

crisjf commented 3 years ago

I'm gonna close this for now, as the issue is solved and the only remaining thing is to deploy it in a VM for continuous testing.

crisjf commented 3 years ago

I created a separate script for the current version of the random walker model and linked it to dungeonmodule table https://cityscope.media.mit.edu/CS_cityscopeJS/?cityscope=dungeonmodule

I'll leave this running continuously in csmodules.media so we can test frequently.