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. > Consider using > https://bitbucket.org/pokoli/redis-tryton to solve this. We are using > multiple tryton instances with an nginx server, so I can confirm it works. 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: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- You received this message because you are subscribed to the Google Groups "tryton" group. To view this discussion on the web visit https://groups.google.com/d/msgid/tryton/20170802074145.GB3621%40kei.
