Page 1 of 1

If not multi-thread, multi-instance? [clustering]

PostPosted: Fri Oct 28, 2016 17:37
by taikedz
Hello

I am aware that the main game can only handle one thread, even though there is an emerge thread setting for map gen to multi-thread mapgen {is this correct?}

However I was wanting to know if one could gain improved performance by running multiple instances, listening on different ports, but writing to the same world directory with a database backing suitable to the task (sqlite is out of the question then of course)?

I know this is generally not a good idea for most applications, but I wondered if Minetest's implementation could inadvertently support it?

+++

Or, if some sort of efficient way for resolving conflicting writes in a DB could be implemented and activated in a setting, such that some sort of clustering proxy could be implemented on top of multiple instances?

Thanks

Re: If not multi-thread, multi-instance? [clustering]

PostPosted: Fri Oct 28, 2016 17:50
by Byakuren
I think currently you would get corruption of your world.