Scaling web2py

45 views
Skip to first unread message

bria...@gmail.com

unread,
Jun 23, 2017, 4:12:37 PM6/23/17
to web2py-users
I'm planning to have 2 servers hosting web2py for load balancing and high availability. Will sessions be persistent across both servers? If not, then I need to make sure the load balancer always direct the same user session to the same server? Is my understanding correct?

Anthony

unread,
Jun 23, 2017, 4:20:59 PM6/23/17
to web2py-users
Either store sessions in the database or use stick sessions. See http://web2py.com/books/default/chapter/29/13/deployment-recipes#Efficiency-and-scalability.

Anthony

Chinh Dang

unread,
Jun 23, 2017, 4:32:06 PM6/23/17
to web...@googlegroups.com
How to decide which method to used - shared folder or database?

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages