Dear All, On Wed, Aug 2, 2017 at 12:41 PM, Cédric Krier <[email protected]> wrote:
> 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. > > I am very thankful to all. So, I will first install redis-tryton with my Tryton Server and then user HAProxy for load balancing. -- Regards, Khurram. -- 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/CAM3N3CzP1f%3DHH1zsEQkYK2zayL2YtH9f-Fh1aEj8x_vLc-03iA%40mail.gmail.com.
