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

User avatar
taikedz
Member
 
Posts: 587
Joined: Sun May 15, 2016 11:11
GitHub: taikedz
IRC: DuCake
In-game: DuCake

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

by taikedz » Fri Oct 28, 2016 17:37

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
Last edited by taikedz on Fri Oct 28, 2016 18:20, edited 1 time in total.
 

Byakuren
Member
 
Posts: 441
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri

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

by Byakuren » Fri Oct 28, 2016 17:50

I think currently you would get corruption of your world.
Every time a mod API is left undocumented, a koala dies.
 


Return to Minetest Problems

Who is online

Users browsing this forum: No registered users and 3 guests

cron