comparison README.md @ 77:80792bb9600e

new HybridMode
author Alain Mazy <am@osimis.io>
date Fri, 14 Oct 2022 10:36:02 +0200
parents f1688e875d3e
children 431ab61b5760
comparison
equal deleted inserted replaced
75:ac596874d997 77:80792bb9600e
131 "ConnectionTimeout": 30, // optional: connection timeout in seconds 131 "ConnectionTimeout": 30, // optional: connection timeout in seconds
132 "RequestTimeout": 1200, // optional: request timeout in seconds (max time to upload/download a file) 132 "RequestTimeout": 1200, // optional: request timeout in seconds (max time to upload/download a file)
133 "RootPath": "", // optional: folder in which files are stored (ex: my/path/to/myfolder) 133 "RootPath": "", // optional: folder in which files are stored (ex: my/path/to/myfolder)
134 "StorageEncryption" : {...}, // optional 134 "StorageEncryption" : {...}, // optional
135 "StorageStructure" : "flat", // optional 135 "StorageStructure" : "flat", // optional
136 "MigrationFromFileSystemEnabled" : false // optional 136 "MigrationFromFileSystemEnabled" : false, // optional (deprecated, is now equivalent to "HybridMode": "WriteToObjectStorage")
137 "HybridMode": "WriteToDisk" // "WriteToDisk", "WriteToObjectStorage", "Disabled"
137 } 138 }
138 ``` 139 ```
140
141 ### Testing the S3 plugin with minio
142
143 ```
144 docker run -p 9000:9000 -p 9001:9001 -e MINIO_REGION=eu-west-1 -e MINIO_ROOT_USER=minio -e MINIO_ROOT_PASSWORD=miniopwd minio/minio server /data --console-address ":9001"
145 ```
146
147 config file:
148 ```
149 "AwsS3Storage" : {
150 "BucketName": "orthanc",
151 "Region": "eu-west-1",
152 "Endpoint": "http://127.0.0.1:9000/",
153 "AccessKey": "minio",
154 "SecretKey": "miniopwd",
155 "VirtualAddressing": false
156
157 // "StorageEncryption" : {
158 // "Enable": true,
159 // "MasterKey": [1, "/home/test/encryption/test.key"],
160 // "MaxConcurrentInputSize": 1024,
161 // "Verbose": true
162 // } // optional: see the section related to encryption
163 }
164
165 ```
166
167 Test the hybrid mode
168 - start in "HybridMode": "WriteToFileSystem",
169 - upload instances 1 & 2
170 - restart in "HybridMode": "WriteToObjectStorage",
171 - check that you can read instance 1 and that you can delete it
172 - upload instances 3 & 4
173 - restart in "HybridMode": "WriteToFileSystem",
174 - check that you can read instance 3 and that you can delete it
175 - final check:
176 - there should be only one file in the disk storage
177 - there should be only one file in the S3 bucket
178