diff options
| author | Chris Lu <chris.lu@gmail.com> | 2019-05-15 01:02:00 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2019-05-15 01:02:00 -0700 |
| commit | 0a36f628c67df0db27151d40b0c41dc6b87b8da1 (patch) | |
| tree | ee77ab0d9503fcb3b5ae46c3e025924806868413 /weed/storage/erasure_coding/ec_encoder.go | |
| parent | 017d0957c3af96506dc9ab47b52c9f10db367c58 (diff) | |
| download | seaweedfs-0a36f628c67df0db27151d40b0c41dc6b87b8da1.tar.xz seaweedfs-0a36f628c67df0db27151d40b0c41dc6b87b8da1.zip | |
testing RS coding
Diffstat (limited to 'weed/storage/erasure_coding/ec_encoder.go')
| -rw-r--r-- | weed/storage/erasure_coding/ec_encoder.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/weed/storage/erasure_coding/ec_encoder.go b/weed/storage/erasure_coding/ec_encoder.go new file mode 100644 index 000000000..5ff73de69 --- /dev/null +++ b/weed/storage/erasure_coding/ec_encoder.go @@ -0,0 +1,8 @@ +package erasure_coding + +const ( + DataShardsCount = 10 + ParityShardsCount = 4 + ErasureCodingLargeBlockSize = 1024 * 1024 * 1024 // 1GB + ErasureCodingSmallBlockSize = 1024 * 1024 // 1MB +) |
