[web2py] Re: Too much sessions...

2019-07-29 Thread Gaël Princivalle
Hi all. I've got several problems for moving the sessions to the memory. Now they're in the DB, adding this to the model: session.connect(request, response, db) It works fine and the website is faster. Il giorno venerdì 19 luglio 2019 14:31:38 UTC+2, Gaël Princivalle ha scritto: > > Hi Zoltán.

[web2py] Re: Too much sessions...

2019-07-19 Thread Gaël Princivalle
Hi Zoltán. python-six module is installed. 0_memcache.py is like in the documentation: from gluon.contrib.memcache import MemcacheClient memcache_servers = ['127.0.0.1:11211'] cache.memcache = MemcacheClient(request, memcache_servers) cache.ram = cache.disk = cache.memcache I've added this in

[web2py] Re: Too much sessions...

2019-07-18 Thread Gaël Princivalle
Hi Zoltán, for the moment I've modified my crontab for deleting the sessions every hour. I'll try to install python-six module and store the sessions in the memory in the next days. Il giorno giovedì 18 luglio 2019 11:03:37 UTC+2, Fekete Zoltán ha scritto: > > Hi Gael! > > Could you solve the

[web2py] Re: Too much sessions...

2019-07-18 Thread Gaël Princivalle
CentOS 7 on Webfaction. Il giorno sabato 13 luglio 2019 09:03:17 UTC+2, Massimo Di Pierro ha scritto: > > what os is this? > > On Friday, 12 July 2019 01:00:03 UTC-7, Gaël Princivalle wrote: >> >> Hi all. >> >> In my sessions folder all sessions are stored in separated sub-folders, >>

[web2py] Re: Too much sessions...

2019-07-18 Thread Fekete Zoltán
Hi Gael! Could you solve the problem? Pls. give a short feedback. Regards, Zoltán 2019. július 13., szombat 9:03:17 UTC+2 időpontban Massimo Di Pierro a következőt írta: > > what os is this? > > On Friday, 12 July 2019 01:00:03 UTC-7, Gaël Princivalle wrote: >> >> Hi all. >> >> In my sessions

[web2py] Re: Too much sessions...

2019-07-13 Thread Massimo Di Pierro
what os is this? On Friday, 12 July 2019 01:00:03 UTC-7, Gaël Princivalle wrote: > > Hi all. > > In my sessions folder all sessions are stored in separated sub-folders, > 068,069... > The file system don't accept more than 512 sub-folders in a folder. > When I reach 512 sub-folders the website

[web2py] Re: Too much sessions...

2019-07-12 Thread Dave S
On Friday, July 12, 2019 at 1:00:03 AM UTC-7, Gaël Princivalle wrote: > > Hi all. > > In my sessions folder all sessions are stored in separated sub-folders, > 068,069... > The file system don't accept more than 512 sub-folders in a folder. > When I reach 512 sub-folders the website is down. >

[web2py] Re: Too much sessions...

2019-07-12 Thread Fekete Zoltán
Try to install python-six module, restart the webserver or you web2py instance (whichever you have) and possibly you'll be OK. Regards, FeZ 2019. július 12., péntek 16:22:46 UTC+2 időpontban Gaël Princivalle a következőt írta: > > >Could you please copy the whole error message? > Cannot

[web2py] Re: Too much sessions...

2019-07-12 Thread Gaël Princivalle
>Could you please copy the whole error message? Cannot import module 'applications.hydrover_oleodinamica.modules.six' Versione web2py™ Version 2.14.6-stable+timestamp.2016.05.10.00.21.47 Python Python 2.7.5: /usr/bin/python (prefix: /usr) Traceback 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.

[web2py] Re: Too much sessions...

2019-07-12 Thread Fekete Zoltán
Could you please copy the whole error message? Which python version do you use (2 or 3) ? But in general, yes, I recommend to upgrade to the latest version for several reasons. The module 'six' is a compatibility layer between API of python2 and python3 anyway. I cannot see now why it should

[web2py] Re: Too much sessions...

2019-07-12 Thread Gaël Princivalle
Thank you Zoltán. I'm still trying this solution however when I create the 0_memcache.py model file I've got this ticket: Cannot import module 'applications.my_app.modules.six' Could it be due to the fact that the web2py version is the old 2.14.6? Il giorno venerdì 12 luglio 2019 10:46:44

[web2py] Re: Too much sessions...

2019-07-12 Thread Fekete Zoltán
Hi Gael, It is possible to store sessions in the db, however consider that it will slow down the system if you have such a high load. A faster solution is to store sessions in memory: http://web2py.com/books/default/chapter/29/13?search=cache#Sessions-in-memcache Read that part of the doc,