mirror of
https://github.com/ipfs/kubo.git
synced 2025-08-06 19:44:01 +08:00

* include pebble as built-in plugin Pebble provides a high-performance alternative to leveldb as the datastore, and will serve as a replacement for badger1. There are a number of tuning parameters available for tuning pebble's performance to your specific needs. Default values are used for any that are not configured or are set to the parameter's zero-value. Requires https://github.com/ipfs/go-ds-pebble/pull/39 Closes #10347 * docs: remove mention of ipfs-ds-convert. Rationale: https://github.com/ipfs/ipfs-ds-convert/issues/50 * docs: pebbleds profile * test: meaningful t0025-datastores.sh * Update config/init.go * Update docs/config.md * Do not hard-code zero values into pebble config
24 lines
703 B
Bash
Executable File
24 lines
703 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
test_description="Test non-standard datastores"
|
|
|
|
. lib/test-lib.sh
|
|
|
|
profiles=("flatfs" "pebbleds" "badgerds")
|
|
proot="$(mktemp -d "${TMPDIR:-/tmp}/t0025.XXXXXX")"
|
|
|
|
for profile in "${profiles[@]}"; do
|
|
test_expect_success "'ipfs init --empty-repo=false --profile=$profile' succeeds" '
|
|
BITS="2048" &&
|
|
IPFS_PATH="$proot/$profile" &&
|
|
ipfs init --empty-repo=false --profile=$profile
|
|
'
|
|
test_expect_success "'ipfs pin add' and 'pin ls' works with $profile" '
|
|
export IPFS_PATH="$proot/$profile" &&
|
|
echo -n "hello_$profile" | ipfs block put --pin=true > hello_cid &&
|
|
ipfs pin ls -t recursive "$(cat hello_cid)"
|
|
'
|
|
done
|
|
|
|
test_done
|