Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-dms3-config
Commits
50e43275
Unverified
Commit
50e43275
authored
Nov 23, 2020
by
Adin Schmahmann
Committed by
GitHub
Nov 23, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #115 from ipfs/chore/rm-badger2
Remove badger2 profile
parents
2a9cf46d
07b93e55
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
35 deletions
+1
-35
init.go
init.go
+0
-13
profile.go
profile.go
+1
-22
No files found.
init.go
View file @
50e43275
...
...
@@ -142,19 +142,6 @@ func badgerSpec() map[string]interface{} {
}
}
func
badger2Spec
()
map
[
string
]
interface
{}
{
return
map
[
string
]
interface
{}{
"type"
:
"measure"
,
"prefix"
:
"badger2.datastore"
,
"child"
:
map
[
string
]
interface
{}{
"type"
:
"badger2ds"
,
"path"
:
"badger2ds"
,
"syncWrites"
:
false
,
"truncate"
:
true
,
},
}
}
func
flatfsSpec
()
map
[
string
]
interface
{}
{
return
map
[
string
]
interface
{}{
"type"
:
"mount"
,
...
...
profile.go
View file @
50e43275
...
...
@@ -152,27 +152,6 @@ This profile may only be applied when first initializing the node.
"badgerds"
:
{
Description
:
`Configures the node to use the badger datastore.
This is a fast datastore. Use this datastore if performance, especially
when adding many gigabytes of files, is critical. However:
* This datastore will not properly reclaim space when your datastore is
smaller than several gigabytes. If you run IPFS with '--enable-gc' (you have
enabled block-level garbage collection), you plan on storing very little data in
your IPFS node, and disk usage is more critical than performance, consider using
flatfs.
* This datastore uses up to several gigabytes of memory.
This profile may only be applied when first initializing the node.`
,
InitOnly
:
true
,
Transform
:
func
(
c
*
Config
)
error
{
c
.
Datastore
.
Spec
=
badgerSpec
()
return
nil
},
},
"badger2ds"
:
{
Description
:
`Configures the node to use the badger2 datastore.
This is the fastest datastore. Use this datastore if performance, especially
when adding many gigabytes of files, is critical. However:
...
...
@@ -187,7 +166,7 @@ This profile may only be applied when first initializing the node.`,
InitOnly
:
true
,
Transform
:
func
(
c
*
Config
)
error
{
c
.
Datastore
.
Spec
=
badger
2
Spec
()
c
.
Datastore
.
Spec
=
badgerSpec
()
return
nil
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment