@@ -27,7 +27,8 @@ git clone https://github.com/noobaa/noobaa-core
2727cd noobaa-core
2828npm install
2929npm run build
30- npm run pkg # optional create a single-executable build/noobaa-core
30+ # optional package everything into a single-executable at build/noobaa-core
31+ npm run pkg
3132```
3233
3334### 3. Quick test
@@ -107,6 +108,7 @@ config.IO_CALC_SHA256_ENABLED = false;
107108
108109config.MAX_OBJECT_PART_SIZE = 1024 * 1024 * 1024;
109110config.IO_CHUNK_READ_CACHE_SIZE = 4 * 1024 * 1024 * 1024;
111+
110112config.CHUNK_SPLIT_AVG_CHUNK = 256 * 1024 * 1024;
111113config.CHUNK_SPLIT_DELTA_CHUNK = 0;
112114
@@ -118,7 +120,7 @@ config.CHUNK_CODER_CIPHER_TYPE = 'none';
118120config.CHUNK_CODER_REPLICAS = 1;
119121config.CHUNK_CODER_EC_DATA_FRAGS = 2;
120122config.CHUNK_CODER_EC_PARITY_FRAGS = 2;
121- config.CHUNK_CODER_EC_PARITY_TYPE = 'isa-c1 ';
123+ config.CHUNK_CODER_EC_PARITY_TYPE = 'cm256 ';
122124config.CHUNK_CODER_EC_TOLERANCE_THRESHOLD = 2;
123125config.CHUNK_CODER_EC_IS_DEFAULT = true;
124126
@@ -173,6 +175,12 @@ POSTGRES_HOST=ip \
173175
174176## STORAGE
175177
178+ ### Create a pool
179+
180+ ``` sh
181+ npm run api -- pool_api create_hosts_pool ' { "name":"backingstores", "is_managed": false, "host_count": 9999 }'
182+ ```
183+
176184### Start backingstores
177185
178186``` sh
@@ -193,7 +201,7 @@ npm run api -- node aggregate_nodes '{}'
193201### Check local storage
194202
195203``` sh
196- du -sh storage/backingstores
204+ du -sh storage/backingstores/ *
197205find storage/backingstores -name ' *.data' -type f -ls
198206```
199207
@@ -204,51 +212,51 @@ find storage/backingstores -name '*.data' -type f -ls
204212### Get access and secret keys
205213
206214``` sh
207- export AWS_ACCESS_KEY_ID=$( npm run api -- account read_account ' {}' --json | jq -r ' .access_keys[0].access_key' )
208- export AWS_SECRET_ACCESS_KEY=$( npm run api -- account read_account ' {}' --json | jq -r ' .access_keys[0].secret_key' )
215+ export AWS_ACCESS_KEY_ID=$( npm run api -- account read_account ' {}' --json | tail -1 | jq -r ' .access_keys[0].access_key' )
216+ export AWS_SECRET_ACCESS_KEY=$( npm run api -- account read_account ' {}' --json | tail -1 | jq -r ' .access_keys[0].secret_key' )
209217```
210218
211- ### Listing
219+ ### Create bucket
212220
213221``` sh
214- node src/tools/s3cat --endpoint http://localhost:6001
215- node src/tools/s3cat --endpoint http://localhost:6001 --bucket first.bucket --ls
216- aws --endpoint http://localhost:6001 s3 ls
217- aws --endpoint http://localhost:6001 s3 ls s3://first.bucket
222+ aws --endpoint http://localhost:6001 s3 mb s3://testbucket
218223```
219224
220- ### Create bucket
225+ ### Listing
221226
222227``` sh
223- aws --endpoint http://localhost:6001 s3 mb s3://lala
228+ node src/tools/s3cat --endpoint http://localhost:6001
229+ node src/tools/s3cat --endpoint http://localhost:6001 --bucket testbucket --ls
230+ aws --endpoint http://localhost:6001 s3 ls
231+ aws --endpoint http://localhost:6001 s3 ls s3://testbucket
224232```
225233
226234### Read/Write
227235
228236``` sh
229- node src/tools/s3cat --endpoint http://localhost:6001 --sig s3 --bucket first.bucket --put ggg --size 4096
230- node src/tools/s3cat --endpoint http://localhost:6001 --sig s3 --bucket first.bucket --get ggg
231- dd if=/dev/zero bs=1M count=1024 | aws --endpoint http://localhost:6001 s3 cp - s3://first.bucket/ggg
232- aws --endpoint http://localhost:6001 s3 cp s3://first.bucket/ggg - | xxd -a
233- aws --endpoint http://localhost:6001 s3 rm s3://first.bucket/ggg
237+ node src/tools/s3cat --endpoint http://localhost:6001 --sig s3 --bucket testbucket --put testobject --size 4096
238+ node src/tools/s3cat --endpoint http://localhost:6001 --sig s3 --bucket testbucket --get testobject
239+ dd if=/dev/zero bs=1M count=1024 | aws --endpoint http://localhost:6001 s3 cp - s3://testbucket/testobject
240+ aws --endpoint http://localhost:6001 s3 cp s3://testbucket/testobject - | xxd -a
241+ aws --endpoint http://localhost:6001 s3 rm s3://testbucket/testobject
234242```
235243
236244## Multipart uploads
237245
238246``` sh
239- node src/tools/s3cat --endpoint http://localhost:6001 --sig s3 --bucket first.bucket --upload ggg --size 4096 --part_size 1024 --concur 4
247+ node src/tools/s3cat --endpoint http://localhost:6001 --sig s3 --bucket testbucket --upload testobject --size 4096 --part_size 1024 --concur 4
240248```
241249
242250### Perf tools
243251
244252``` sh
245- node src/tools/s3perf --endpoint http://localhost:6001 --sig s3 --bucket first.bucket --put s3perf/ --concur 4 --size 128 --size_units MB --time 5
246- node src/tools/s3perf --endpoint http://localhost:6001 --sig s3 --bucket first.bucket --get s3perf/ --concur 4 --size 128 --size_units MB --time 5
253+ node src/tools/s3perf --endpoint http://localhost:6001 --sig s3 --bucket testbucket --put s3perf/ --concur 4 --size 128 --size_units MB --time 5
254+ node src/tools/s3perf --endpoint http://localhost:6001 --sig s3 --bucket testbucket --get s3perf/ --concur 4 --size 128 --size_units MB --time 5
247255```
248256
249257### Using sigv4 for streaming requires https endpoint 6443 (selfsigned)
250258
251259``` sh
252- node src/tools/s3cat --endpoint https://localhost:6443 --selfsigned --bucket first.bucket --put ggg --size 4096
253- node src/tools/s3cat --endpoint https://localhost:6443 --selfsigned --bucket first.bucket --upload ggg --size 4096 --part_size 1024 --concur 4
260+ node src/tools/s3cat --endpoint https://localhost:6443 --selfsigned --bucket testbucket --put testobject --size 4096
261+ node src/tools/s3cat --endpoint https://localhost:6443 --selfsigned --bucket testbucket --upload testobject --size 4096 --part_size 1024 --concur 4
254262```
0 commit comments