ERROR 2016-09-13 06:31:57,189 restricted.py:171] Traceback (most recent call last):
File "/home/www-data/web2py/gluon/restricted.py", line 220, in restricted
exec(ccode, environment)
File "/home/www-data/web2py/applications/<app-name>/models/db.py", line 73, in <module>
db = DAL('google:sql://<app-id>:live/<app-name>', migrate=True) # DEBUG REVIEW: Turn off after migrations.
File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 170, in __call__
obj = super(MetaDAL, cls).__call__(*args, **kwargs)
File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 475, in __init__
"Failure to connect, tried %d times:\n%s" % (attempts, tb)
RuntimeError: Failure to connect, tried 5 times:
Traceback (most recent call last):
File "/home/www-data/web2py/gluon/packages/dal/pydal/base.py", line 455, in __init__
self._adapter = adapter(**kwargs)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/__init__.py", line 40, in __call__
obj = super(AdapterMeta, cls).__call__(*args, **kwargs)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/google.py", line 40, in __init__
super(GoogleSQL, self).__init__(*args, **kwargs)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 373, in __init__
super(SQLAdapter, self).__init__(*args, **kwargs)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 51, in __init__
self._initialize_(do_connect)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/google.py", line 49, in _initialize_
super(MySQL, self)._initialize_(do_connect)
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/base.py", line 64, in _initialize_
self._find_work_folder()
File "/home/www-data/web2py/gluon/packages/dal/pydal/adapters/google.py", line 44, in _find_work_folder
super(GoogleSQL)._find_work_folder()
AttributeError: 'super' object has no attribute '_find_work_folder'
--
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+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Indeed, I did my test on a single instance with no scaling in order to characterise the cost if the service becomes largely used.
You are right, with automatic scaling, the response time is totally acceptable. The cost is also acceptable as least until the site usage keeps low...