On 2017-08-02 09:10, Jean Cavallo wrote:
> Hi,
>
> > Is it possible to have multiple Tryton server running on same or
> different machines but connecting to same database? This might help load
> balance and achieve high availability by putting tryton server behind proxy
> > server! Can also help overcome single-core limitation of Python!
>
> You *will* have cache problems, because default cache is in memory, so
> resets may not be triggered in all server instances.
Wrong, the cache is reset on all instances:
http://hg.tryton.org/trytond/file/default/trytond/transaction.py#l106
http://hg.tryton.org/trytond/file/default/trytond/transaction.py#l207
But if you know an issue, please fill it on
bugs.tryton.org.
This only helps to reduce the memory consumption of each instances which
makes sense if you run many instances on the same host.
But I'm not sure that it is faster than consuming memory on each host
except of maybe if you run a redis server on each hosts to use local
connection but in this case the memory saving should not be that much.
--
Cédric Krier - B2CK SPRL
Email/Jabber:
cedric...@b2ck.com
Tel:
+32 472 54 46 59
Website:
http://www.b2ck.com/