Commit 04e90294 authored by Anatolie Lupacescu's avatar Anatolie Lupacescu Committed by GitHub

fix: decrease db capacity to 1M (#1709)

parent c1e87cef
......@@ -193,7 +193,7 @@ func (c *command) setHomeDir() (err error) {
func (c *command) setAllFlags(cmd *cobra.Command) {
cmd.Flags().String(optionNameDataDir, filepath.Join(c.homeDir, ".bee"), "data directory")
cmd.Flags().Uint64(optionNameDBCapacity, 5000000, fmt.Sprintf("db capacity in chunks, multiply by %d to get approximate capacity in bytes", swarm.ChunkSize))
cmd.Flags().Uint64(optionNameDBCapacity, 1000000, fmt.Sprintf("db capacity in chunks, multiply by %d to get approximate capacity in bytes", swarm.ChunkSize))
cmd.Flags().Uint64(optionNameDBOpenFilesLimit, 200, "number of open files allowed by database")
cmd.Flags().Uint64(optionNameDBBlockCacheCapacity, 32*1024*1024, "size of block cache of the database in bytes")
cmd.Flags().Uint64(optionNameDBWriteBufferSize, 32*1024*1024, "size of the database write buffer in bytes")
......
......@@ -17,7 +17,7 @@ config: /etc/bee/bee.yaml
## data directory (default "/home/<user>/.bee")
data-dir: /var/lib/bee
## db capacity in chunks, multiply by 4096 to get approximate capacity in bytes
# db-capacity: 5000000
# db-capacity: 1000000
## number of open files allowed by database
# db-open-files-limit: 200
## size of block cache of the database in bytes
......
......@@ -24,7 +24,7 @@ BEE_CLEF_SIGNER_ENABLE=true
## data directory (default /home/<user>/.bee)
# BEE_DATA_DIR=/home/bee/.bee
## db capacity in chunks, multiply by 4096 to get approximate capacity in bytes
# BEE_DB_CAPACITY=5000000
# BEE_DB_CAPACITY=1000000
## number of open files allowed by database
# BEE_DB_OPEN_FILES_LIMIT=200
## size of block cache of the database in bytes
......
......@@ -17,7 +17,7 @@ config: /usr/local/etc/swarm-bee/bee.yaml
## data directory (default "/home/<user>/.bee")
data-dir: /usr/local/var/lib/swarm-bee
## db capacity in chunks, multiply by 4096 to get approximate capacity in bytes
# db-capacity: 5000000
# db-capacity: 1000000
## number of open files allowed by database
# db-open-files-limit: 200
## size of block cache of the database in bytes
......
......@@ -15,7 +15,7 @@ config: ./bee.yaml
## data directory (default "/home/<user>/.bee")
data-dir: ./data
## db capacity in chunks, multiply by 4096 to get approximate capacity in bytes
# db-capacity: 5000000
# db-capacity: 1000000
## debug HTTP API listen address (default ":1635")
# debug-api-addr: 127.0.0.1:1635
## enable debug HTTP API
......
......@@ -44,7 +44,7 @@ var (
var (
// Default value for Capacity DB option.
defaultCapacity uint64 = 5000000
defaultCapacity uint64 = 1000000
// Limit the number of goroutines created by Getters
// that call updateGC function. Value 0 sets no limit.
maxParallelUpdateGC = 1000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment