Add configuration info
This commit is contained in:
27
storage-bigtable/init-bigtable.sh
Executable file
27
storage-bigtable/init-bigtable.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Configures a BigTable instance with the expected tables
|
||||
#
|
||||
|
||||
set -e
|
||||
|
||||
instance=solana-ledger
|
||||
|
||||
cbt=(
|
||||
cbt
|
||||
-instance
|
||||
"$instance"
|
||||
)
|
||||
if [[ -n $BIGTABLE_EMULATOR_HOST ]]; then
|
||||
cbt+=(-project emulator)
|
||||
fi
|
||||
|
||||
for table in blocks tx tx-by-addr; do
|
||||
(
|
||||
set -x
|
||||
"${cbt[@]}" createtable $table
|
||||
"${cbt[@]}" createfamily $table x
|
||||
"${cbt[@]}" setgcpolicy $table x maxversions=1
|
||||
"${cbt[@]}" setgcpolicy $table x maxage=360d
|
||||
)
|
||||
done
|
Reference in New Issue
Block a user