chat.freenode.net #tryton log beginning Tue Oct 22 00:00:02 CEST 2013 | ||
2013-10-22 08:53 -!- beantech(~trevor@203-114-166-118.dsl.sta.inspire.net.nz) has left #tryton | ||
2013-10-22 13:03 <jvblasco> how did u configure trytond to behave as a stateless server? | ||
2013-10-22 13:04 <cedk> jvblasco: what do you mean? | ||
2013-10-22 13:05 <jvblasco> cedk: when u connect through json-rpc it keeps a session for that connection. I need the server to ignore user sessions | ||
2013-10-22 13:05 <jvblasco> cedk: is it posible? | ||
2013-10-22 13:05 <cedk> jvblasco: no | ||
2013-10-22 13:06 <jvblasco> cedk: and how do u load balance tryton? For scalability purposes i mean | ||
2013-10-22 13:06 <cedk> jvblasco: just run many servers | ||
2013-10-22 13:08 <cedk> jvblasco: by the way, it is not linked to the stateless of the server | ||
2013-10-22 13:08 <jvblasco> cedk: but the load balancer doesn't keep track of tryton users sessions. I mean, if i have multiple tryton servers behind a load balancer, a user creates a session on server1 and the next request the balancer throws it to server2 u may have problems | ||
2013-10-22 13:08 <jvblasco> cedk: what do u mean? | ||
2013-10-22 13:09 <cedk> jvblasco: why? | ||
2013-10-22 13:09 <jvblasco> cedk: cause server 2 may not be aware of user session in server1 | ||
2013-10-22 13:10 <jvblasco> cedk: don't really know if tryton implements any way to share sessions across a server cluster | ||
2013-10-22 13:11 <jvblasco> cedk: cause the token u receive when u loggin in server1 may not be usable in server2 | ||
2013-10-22 13:11 <jvblasco> cedk: login* | ||
2013-10-22 13:13 <jvblasco> cedk: maybe i made the bad question, sorry but my english is not as fluent as my spanish, is there a way to deactivate tryton token management? | ||
2013-10-22 13:13 <jvblasco> cedk: to behave like openERP does, u must authenticate for every request. | ||
2013-10-22 13:16 <corro> jvblasco: since Tryton 2.4 (IIRC) the session is stored in the database and is therefore shared for all servers using the same database | ||
2013-10-22 13:18 <jvblasco> corro: i c | ||
2013-10-22 13:18 <jvblasco> corro: that should do the trick | ||
2013-10-22 13:18 <jvblasco> corro: i'm having some issues with a prestashop module though | ||
2013-10-22 13:19 <corro> jvblasco: not sure I can help with that | ||
2013-10-22 13:19 <jvblasco> i uses the same connection backend that the magento module uses, but not sure why prestashop after some time crashes and i need to restart the server | ||
2013-10-22 13:19 <jvblasco> when magento doesn't have any issues at all | ||
2013-10-22 13:20 <jvblasco> truth be told, magento makes 5 calls in the checkout process when prestashop is doing around 15-20 calls to the server | ||
2013-10-22 13:20 <jvblasco> with almost the same code | ||
2013-10-22 13:21 <jvblasco> i thought the session could be an issue | ||
2013-10-22 13:23 <jvblasco> i will need to do more testing | ||
2013-10-22 13:24 <jvblasco> btw if anyone wants to integrate someday with any ecommerce platform, avoid prestashop... | ||
2013-10-22 13:24 <jvblasco> just my 2 cents | ||
2013-10-22 14:30 <lids> http://hg.tryton.org/trytond/file/1c61fd35eff4/trytond/model/modelstorage.py#l287 | ||
2013-10-22 14:30 <lids> is is there a reason to keep data_ids instead of using ids ? | ||
2013-10-22 16:26 -!- vcardon(~vcardon@LNeuilly-152-23-15-185.w193-252.abo.wanadoo.fr) has left #tryton |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!