mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
more syntax highting fixes and fixing spacing on the left of commands so they copy better
parent
47e235c615
commit
e98e0ad976
|
@ -16,16 +16,16 @@ Each bucket has its own collection. Usually one collection uses 7 volumes, where
|
||||||
|
|
||||||
Try to keep the volume size low. For example,
|
Try to keep the volume size low. For example,
|
||||||
```bash
|
```bash
|
||||||
weed master -volumeSizeLimitMB=1024
|
weed master -volumeSizeLimitMB=1024
|
||||||
```
|
```
|
||||||
|
|
||||||
In addition, you can also configure the per bucket storage this way in `weed shell`:
|
In addition, you can also configure the per bucket storage this way in `weed shell`:
|
||||||
```bash
|
```bash
|
||||||
fs.configure -locationPrefix=/buckets/ -volumeGrowthCount=1 -apply
|
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:
|
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
|
```bash
|
||||||
fs.configure -locationPrefix=/buckets/ -replication=001 -volumeGrowthCount=2 -apply
|
fs.configure -locationPrefix=/buckets/ -replication=001 -volumeGrowthCount=2 -apply
|
||||||
```
|
```
|
||||||
|
|
||||||
See https://github.com/seaweedfs/seaweedfs/wiki/Path-Specific-Configuration
|
See https://github.com/seaweedfs/seaweedfs/wiki/Path-Specific-Configuration
|
||||||
|
@ -71,6 +71,7 @@ Not included:
|
||||||
* Policy
|
* Policy
|
||||||
|
|
||||||
# Feature difference
|
# Feature difference
|
||||||
|
|
||||||
| Feature | SeaweedFS | Amazon S3 |
|
| Feature | SeaweedFS | Amazon S3 |
|
||||||
| -------------------------------------- | --------- | --------- |
|
| -------------------------------------- | --------- | --------- |
|
||||||
| Multi byte ranges reads | Yes | No |
|
| Multi byte ranges reads | Yes | No |
|
||||||
|
@ -88,13 +89,20 @@ This is not so ideal. Another approach is to list current directory when deletin
|
||||||
The last approach, which is most efficient, is to maintain counters for each folder, and drop the folder as soon as it becomes empty. This is implemented in [[Cloud Monitoring]].
|
The last approach, which is most efficient, is to maintain counters for each folder, and drop the folder as soon as it becomes empty. This is implemented in [[Cloud Monitoring]].
|
||||||
|
|
||||||
# S3 Authentication
|
# S3 Authentication
|
||||||
|
|
||||||
By default, the access key and secret key to access `weed s3` is not authenticated. To enable credential based access, you can choose static or dynamic configuration:
|
By default, the access key and secret key to access `weed s3` is not authenticated. To enable credential based access, you can choose static or dynamic configuration:
|
||||||
* **Dynamic Configuration**: setup auth with `s3.configure` in `weed shell`
|
* **Dynamic Configuration**: setup auth with `s3.configure` in `weed shell`
|
||||||
* **Static Configuration**: create a config.json file similar to the example below, and specify it via `weed s3 -config=config.json`
|
* **Static Configuration**: create a config.json file similar to the example below, and specify it via `weed s3 -config=config.json`
|
||||||
|
|
||||||
## Dynamic Configuration
|
## Dynamic Configuration
|
||||||
|
|
||||||
|
Example command:
|
||||||
|
```bash
|
||||||
|
s3.configure -access_key=any -secret_key=any -buckets=bucket1 -user=me -actions=Read,Write,List,Tagging,Admin -apply
|
||||||
```
|
```
|
||||||
> s3.configure -access_key=any -secret_key=any -buckets=bucket1 -user=me -actions=Read,Write,List,Tagging,Admin -apply
|
|
||||||
|
Output from above `s3.configure` command:
|
||||||
|
```json
|
||||||
{
|
{
|
||||||
"identities": [
|
"identities": [
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue