From 47e235c615aff776857f9d9fd93b03c6d3a64e7e Mon Sep 17 00:00:00 2001 From: JesseBot Date: Tue, 21 Nov 2023 16:00:10 +0100 Subject: [PATCH] fix empty lines and syntax highlighting --- Amazon-S3-API.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/Amazon-S3-API.md b/Amazon-S3-API.md index 8613d12..ae86478 100644 --- a/Amazon-S3-API.md +++ b/Amazon-S3-API.md @@ -15,16 +15,16 @@ From version 3.51 name of collection is `filerGroup_bucketname` or `bucketname` Each bucket has its own collection. Usually one collection uses 7 volumes, where each volume is 30GB by default. So if you want to create multiple buckets, you may run out of volumes very quickly unless you have a large disk. Try to keep the volume size low. For example, -``` +```bash weed master -volumeSizeLimitMB=1024 ``` In addition, you can also configure the per bucket storage this way in `weed shell`: -``` +```bash fs.configure -locationPrefix=/buckets/ -volumeGrowthCount=1 -apply ``` This will add 1 physical volume when existing volumes are full. If using replication, you will need to add more volumes, so that it is a multiple of the number of replicas: -``` +```bash fs.configure -locationPrefix=/buckets/ -replication=001 -volumeGrowthCount=2 -apply ``` @@ -71,11 +71,11 @@ Not included: * Policy # Feature difference -| | SeaweedFS | Amazon S3 | -| ---------------------------- | --- | -- | -| Multi byte ranges reads | Yes | No | -| DeleteObject deletes a folder| Yes | No | -| same path for both a file and a folder| No | Yes | +| Feature | SeaweedFS | Amazon S3 | +| -------------------------------------- | --------- | --------- | +| Multi byte ranges reads | Yes | No | +| DeleteObject deletes a folder | Yes | No | +| same path for both a file and a folder | No | Yes | ## Empty folders @@ -141,7 +141,7 @@ You can create as many users as needed. Each user can have multiple credentials. For public access, you can configure an identity with name "anonymous", usually with just "Read" action, or access to specific buckets. -``` +```json { "identities": [ { @@ -225,7 +225,6 @@ Read:bucket Read:bucket_prefix* Read:bucket/* Read:bucket/a/b/* - ``` ## Presigned URL @@ -239,10 +238,8 @@ If you need to setup multiple S3 nodes, you can just start multiple s3 instances Usually you would also want to have multiple filers. The easiest way is to run filer together with a S3. -``` - - weed filer -s3 - +```bash +weed filer -s3 ``` # Authentication with Filer