Skip to content

Commit

Permalink
bump version to v0.16.3
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfung committed Aug 12, 2023
1 parent 6debb31 commit 0fe6ac6
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion config/backup.service
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ After=network.target
[Service]
User=one
Type=simple
ExecStart=/user/bin/mnm run '/home/one/bin/snapshots.sh'
ExecStart=/usr/bin/mnm run '/home/one/bin/snapshots.sh'
Restart=on-failure
LimitNOFILE=65536

Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (

const (
Debug = true
BuildVersion = "v0.16.2-BUILD_VERSION"
BuildVersion = "v0.16.3-BUILD_VERSION"

MainnetId = "6430225c42bb015b4da03102fa962e4f4ef3969e03e04345db229f8377ef7997"

Expand Down
2 changes: 2 additions & 0 deletions config/snapshots.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ sudo systemctl stop mixin-archive || exit 1

tar cf - -C /mnt/archive/mixin snapshots | s3cmd put - s3://mixin/snapshots/kernel.tar.new || exit 1

s3cmd mv s3://mixin/snapshots/kernel.tar s3://mixin/snapshots/kernel.yesterday.tar || exit 1

s3cmd mv s3://mixin/snapshots/kernel.tar.new s3://mixin/snapshots/kernel.tar || exit 1

s3cmd setacl s3://mixin/snapshots/kernel.tar --acl-public || exit 1
Expand Down
2 changes: 1 addition & 1 deletion storage/badger.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func openDB(dir string, sync bool, custom *config.Custom) (*badger.DB, error) {
// these three options control the maximum database size
// for level up to max levels: sum(base * (multiplier ** level))
// increase the level to 8 when data grows big to execeed 16TB
// the drawback is huge memory usage increases when 1 level up
// the memory usage will increase for hours to compact when level up
// the max levels can not be decreased once up, so be cautious
opts = opts.WithBaseLevelSize(16 << 20)
opts = opts.WithLevelSizeMultiplier(16)
Expand Down

0 comments on commit 0fe6ac6

Please sign in to comment.