Guewen Baconnier and GitHub
86e5bd3ad7
Merge pull request #16 from TDu/add-ovh-platform
...
[BSRTL-215] Add OVH as an option for the cloud platform
2017-09-21 09:03:46 +02:00
Guewen Baconnier
ee8038b388
Update doc
2017-09-20 15:42:25 +02:00
Guewen Baconnier
abe34fcaa2
Return empty result on file read error
...
This is how the core implementation works
2017-09-20 15:42:25 +02:00
Guewen Baconnier
cbef735c76
Abstract object storage in attachment_s3
...
Using the base_attachment_object_storage module, the same way
attachment_swift is done. Fixed a few issues along the way in
attachment_swift.
2017-09-20 15:42:25 +02:00
Guewen Baconnier
edc700c807
Configure storage by platform kind
2017-09-20 15:42:25 +02:00
Guewen Baconnier
81196a8058
Various small changes after review
2017-09-20 12:43:38 +02:00
Thierry Ducrest and Guewen Baconnier
dd8f2fc5c8
Add auth v2.0 for swift connection
2017-09-20 12:43:38 +02:00
Thierry Ducrest and Guewen Baconnier
1548fd674a
Abstract install method
2017-09-19 16:30:51 +02:00
Thierry Ducrest and Guewen Baconnier
66748534f6
Add OVH as an option for the cloud platform
2017-09-19 16:30:51 +02:00
Guewen Baconnier
5d30207963
Merge branch 'TDu-swift-integration' into 10.0
2017-09-01 11:15:33 +02:00
Thierry Ducrest and Guewen Baconnier
fea698057a
Create base_attachment_object_storage to extract common code to store implementations
2017-09-01 11:14:21 +02:00
Thierry Ducrest
beea07d44f
Add implementation of reading writing on the Swift object store
2017-08-30 09:01:00 +02:00
Guewen Baconnier and GitHub
27707f7271
Merge pull request #13 from guewen/better-s3-access-error-msg
...
[10.0] Make error message more precise for S3 access
2017-08-29 11:37:32 +02:00
Guewen Baconnier
f1e84b5562
Make error message more precise for S3 access
...
The previous error message let think that you should set AWS_BUCKETNAME,
although you should set it only if you are trying to write in this
repository.
2017-08-28 14:37:45 +02:00
Thierry Ducrest
017e1c7bd9
Create the module for Swift attachment
2017-08-25 16:34:12 +02:00
Guewen Baconnier and GitHub
e67626945e
Merge pull request #11 from guewen/10.0-session-redis-sentinel
...
[10.0] Allow to use a Redis Sentinel
2017-05-18 16:40:25 +02:00
Guewen Baconnier
c7240e1fe1
Allow to use a Redis Sentinel
2017-05-16 09:07:59 +02:00
Guewen Baconnier
2b81b7a6fb
Do not require to run statds metrics
2017-04-29 09:20:55 +02:00
Guewen Baconnier
f0519cf2f6
Add more details in asserts
2017-01-17 11:11:47 +01:00
Guewen Baconnier and GitHub
540269f59e
Merge pull request #5 from guewen/10.0-attachment-fast-web-access
...
Store files that need fast access in the database
2017-01-16 17:27:39 +01:00
Guewen Baconnier
795692ad78
Store files that need fast access in the database
...
An Object Storage read is slower than a disk of database access.
It might take ~200 to 300ms to retrieve a file content.
This is not an issue for attachments such as the pdf files or any
attachment that we want to read on demand. But that's too slow for
files needed to render a web page.
We'll store in the database:
* Assets (js, css, ...). As a side effect, the databases will be more
portable, as assets are rebuilt frequently, storing them in the Object
Storage led the integration server to try to read assets deleted since
long ago
* Attachments linked to Binary fields named 'image_small',
'image_medium', 'web_icon_data'. Those fields are often used on kanban
views that display a lot a images and retrieving them all was then
very slow (Odoo does not do async requests).
The migration to S3 is no longer called during initialization of the
registry: it would be too slow as we would have to define if the
attachments must be kept in database or sent to S3 on each new start. It
means we have to call `env['ir.attachment'].force_storage()` to run the
migration.
2017-01-16 14:04:24 +01:00
Guewen Baconnier
4eecb899f3
Fix IrHttp._dispatch is now a class method
2016-12-21 23:21:57 +01:00
Guewen Baconnier
8e4b461c75
Migrate addons to 10.0
2016-12-21 21:29:09 +01:00
Guewen Baconnier
022f9003e8
Add debug logs in session_redis
2016-12-14 11:25:12 +01:00
Guewen Baconnier
997f92aaab
Rename builtin id variable
2016-12-13 12:21:37 +01:00
Guewen Baconnier
d138a1fd3d
Be more defensive against concurrent workers
...
When migrating attachments to S3, several workers may try to migrate
the same attachments. Do not fail when both update the same attachment.
2016-12-13 12:01:50 +01:00
Guewen Baconnier
5f61ed8985
registry is useless in the second branch
2016-12-13 09:06:50 +01:00
Guewen Baconnier
53d7cdf3e7
Fix attachment_s3: do not open a new cursor
...
Because it provokes serialization errors during the installation or
update of addons. Do not commit as we might commit unwanted things...
Later, we might want to add a specific, more elaborate, migration
process.
2016-12-13 08:58:08 +01:00
Guewen Baconnier and GitHub
8b15070c7f
Merge pull request #4 from guewen/add-load-readme
...
Document --load option for some addons
2016-11-14 08:29:51 +01:00
Guewen Baconnier
607268bd4f
Delete S3 file only when bucket is the current one
2016-11-14 08:29:13 +01:00
Guewen Baconnier
779aa03c57
Explicit attachment_s3 must be started in --load
2016-11-10 16:14:19 +01:00
Guewen Baconnier
92880deeab
Explicit session_redis must be started in --load
2016-11-10 16:14:19 +01:00
Guewen Baconnier
78ac4d306e
Document --load option
2016-11-10 16:14:19 +01:00
Guewen Baconnier
110ec2399d
Add logging when deleting file on the object storage
2016-11-07 10:11:23 +01:00
Guewen Baconnier
7f262799cf
Do not care if an attachment could not be deleted
2016-11-07 09:50:26 +01:00
Guewen Baconnier
8400c0f34e
Set statsd customer
2016-11-04 13:39:50 +01:00
Guewen Baconnier
f643c19fba
Do not fail when an attachment cannot be read
...
It would be blocking and a missing attachment might be a minor issue.
Only warn when such a file is missing.
2016-11-04 13:38:31 +01:00
Guewen Baconnier and GitHub
80ac235c28
Merge pull request #3 from guewen/grafana-statsd
...
Add statsd addon
2016-11-04 10:35:25 +01:00
Guewen Baconnier
65e9bad4e5
Add monitoring_statsd in cloud_platform
2016-11-04 10:30:10 +01:00
Guewen Baconnier
d53ef3de37
Add statsd metrics addon
2016-11-04 10:30:10 +01:00
Guewen Baconnier and GitHub
23634feb46
Merge pull request #2 from guewen/logging-json
...
Add logging_json
2016-11-04 10:20:20 +01:00
Guewen Baconnier
bed41d6719
Add requirements.txt
2016-11-03 17:37:00 +01:00
Guewen Baconnier
e5c1afb09e
Fix server_environment_files error
2016-11-03 17:07:47 +01:00
Guewen Baconnier
3c8b74369b
Make pylint happy
2016-11-03 16:58:36 +01:00
Guewen Baconnier
3fd26cb894
Fix travis configuration
2016-11-03 16:46:42 +01:00
Guewen Baconnier
7eafdd75f4
Add oca-dependencies
2016-11-03 16:24:47 +01:00
Guewen Baconnier
b5f00c26dc
Fix pep8
2016-11-02 10:29:02 +01:00
Guewen Baconnier
ec1f3fc61a
Add logging_json
...
Output odoo logs as json
2016-11-02 10:10:05 +01:00
Guewen Baconnier
46231b3365
Fix pep8
2016-11-02 09:55:36 +01:00
Guewen Baconnier
1d4f76de2b
Migrate attachments s3 to new pattern
...
So remove the compatibility code altogether
2016-11-01 08:55:00 +01:00