Guewen Baconnier
529c4066fa
Propagage region_name to swift connection
...
Otherwise, the bucket will be in the incorrect region
2018-03-16 09:10:58 +01:00
jcoux and GitHub
5706146f18
Merge pull request #27 from jcoux/1093_v11_monitoring-short-living-sessions
...
Expire sessions generated by health checks quickly
2018-01-11 11:19:16 +01:00
Guewen Baconnier and jcoux
39e71ff334
Expire sessions generated by health checks quickly
...
The default expiration of sessions is 7 days. With healthchecks run
every few seconds, we quickly have millions of anonymous sessions in
Redis. Allow to define a custom expiration for some sessions and set a
very short one for the monitoring requests.
2018-01-11 10:46:55 +01:00
jcoux and Guewen Baconnier
8eaa15df7b
[11.0] Fix connection errors when we read attachment
2018-01-11 10:41:26 +01:00
Guewen Baconnier
e3799cd54b
Change OCA dependency to server-env
...
server_environment addons have been moved there
2018-01-11 10:41:26 +01:00
Yannick Vaucher and Guewen Baconnier
a3abfca6c5
Don't try to decode None when key was removed from database
2018-01-11 10:41:26 +01:00
Guewen Baconnier
6cc18007dd
Remove web_kanban, does no longer exist in 11.0
2018-01-11 10:41:26 +01:00
Guewen Baconnier
bfaca4628a
Tentative to fix travis build
2018-01-11 10:41:26 +01:00
Guewen Baconnier
5b37af2376
Fix flake8 warning
2018-01-11 10:41:26 +01:00
Guewen Baconnier
207cd6504c
Encode/decode redis data which expects bytes
2017-11-15 16:25:02 +01:00
Guewen Baconnier
ea44b4fd15
Remove call to encode, str expected, not bytes (py3)
2017-11-15 16:15:39 +01:00
Guewen Baconnier
08329c91d2
Replace value.decode('base64') by base64.b64decode (py3)
2017-11-15 15:54:59 +01:00
Guewen Baconnier
5901ca82a2
Set version in .travis.yml
2017-11-15 15:42:25 +01:00
Guewen Baconnier
4bb649f729
Add check for empty bucket on integration
2017-11-15 15:03:03 +01:00
Guewen Baconnier
b084ce278a
Set addons installable
2017-11-15 14:56:45 +01:00
Guewen Baconnier
f9c290a45a
Apply 2to3 automatic migration
2017-11-15 14:55:11 +01:00
Guewen Baconnier
96c9a38150
Set addons uninstallable
2017-11-15 14:31:23 +01:00
Guewen Baconnier and GitHub
98d7bc3096
Merge pull request #19 from yvaucher/aws-region
...
Add AWS_REGION to connect to bucket with specific region
2017-11-15 14:28:54 +01:00
Yannick Vaucher
a3c0322982
Add AWS_REGION to connect to bucket with specific region
2017-11-13 16:29:01 +01:00
Guewen Baconnier and GitHub
aaf56d5027
Merge pull request #18 from TDu/mock-test-swift
...
Mock Swift client api in tests
2017-11-10 09:00:38 +01:00
Guewen Baconnier
7999386273
Fix tests
...
When there is no write container setup, no write/delete actions are
done.
2017-11-10 08:52:53 +01:00
Thierry Ducrest
d79646d108
Add mocking in Swift tests
2017-11-09 11:33:36 +01:00
jcoux and GitHub
0fe1115bc9
Merge pull request #17 from camptocamp/jcoux-patch-fix-regex-redis
...
Fix regex on check ODOO_SESSION_REDIS_PREFIX
2017-10-26 13:21:48 +02:00
jcoux
55631073b1
Fix regex on check ODOO_SESSION_REDIS_PREFIX
2017-10-26 12:29:41 +02:00
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