SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
avoid changing max size
Chris Lu27f04a382ad3
diff --git a/go/glog/convenient_api.go b/go/glog/convenient_api.goindex b209c0b5cc..ac2c2e7f87 100644--- a/go/glog/convenient_api.go+++ b/go/glog/convenient_api.go@@ -4,9 +4,8 @@ import ()/*Copying the original glog because it is missing several convenient methods.-1. change log file size limit to 180MB-2. use ToStderrAndLog() in the weed.go-3. remove nano time in log format+1. use ToStderrAndLog() in the weed.go+2. remove nano time in log format*/func ToStderr() {diff --git a/go/glog/glog_file.go b/go/glog/glog_file.goindex 8c744bc511..8dcb2bc08b 100644--- a/go/glog/glog_file.go+++ b/go/glog/glog_file.go@@ -31,7 +31,7 @@ import ()// MaxSize is the maximum size of a log file in bytes.-var MaxSize uint64 = 1024 * 1024 * 180+var MaxSize uint64 = 1024 * 1024 * 1800// logDirs lists the candidate directories for new log files.var logDirs []stringdiff --git a/go/weed/weed.go b/go/weed/weed.goindex a2e670b29c..57fe622814 100644--- a/go/weed/weed.go+++ b/go/weed/weed.go@@ -1,11 +1,11 @@package mainimport (+ "code.google.com/p/weed-fs/go/glog""encoding/json""flag""fmt""io"- "code.google.com/p/weed-fs/go/glog""math/rand""net/http""os"@@ -42,7 +42,8 @@ func setExitStatus(n int) {}func main() {- glog.ToStderrAndLog()+ glog.ToStderrAndLog()+ glog.MaxSize = 1024 * 1024 * 32rand.Seed(time.Now().UnixNano())flag.Usage = usageflag.Parse()