Skip to content

Commit d9a2832

Browse files
authored
docs: 📝 Add missing parameters to config files (#588)
1 parent 3418b4d commit d9a2832

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

configs/fisherman_config.toml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# Fisherman configuration
22
[fisherman]
3-
# Postgres database URL for the fisherman service
4-
indexer_database_url = "postgresql://postgres:postgres@localhost:5432/fisherman_db"
3+
# Postgres database URL for the fisherman service.
4+
# This corresponds to the `--fisherman-database-url` CLI flag.
5+
fisherman_database_url = "postgresql://postgres:postgres@localhost:5432/fisherman_db"
6+
7+
# Duration between batch deletion processing cycles (in seconds).
8+
# This corresponds to the `--fisherman-batch-interval-seconds` CLI flag.
9+
batch_interval_seconds = 60
10+
11+
# Maximum number of files to process per batch deletion cycle.
12+
# This corresponds to the `--fisherman-batch-deletion-limit` CLI flag.
13+
batch_deletion_limit = 1000

configs/msp_config.toml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
[provider]
22
# MSP provider type
33
provider_type = "msp"
4-
# Using memory storage layer for simplicity
5-
storage_layer = "memory"
64
# Maximum storage capacity in bytes (4GB)
75
max_storage_capacity = 4294967295
86
# Jump capacity in bytes (1GB)
97
jump_capacity = 1073741824
8+
# Using memory storage layer for simplicity
9+
storage_layer = "memory"
10+
# Storage location in the file system
11+
storage_path = "/tmp/msp"
1012
# Extrinsic retry timeout in seconds
1113
extrinsic_retry_timeout = 60
1214
# The minimum number of blocks behind the current best block to consider the node out of sync.
@@ -15,6 +17,11 @@ sync_mode_min_blocks_behind = 5
1517
check_for_pending_proofs_period = 4
1618
# The maximum number of blocks from the past that will be processed for catching up the root changes.
1719
max_blocks_behind_to_catch_up_root_changes = 10
20+
# Optional: Database URL for MSP operations (e.g., move bucket operations) without running the full indexer service.
21+
# This corresponds to the `--msp-database-url` CLI flag.
22+
# Example:
23+
# msp_database_url = "postgresql://postgres:postgres@storage-hub-sh-indexer-postgres-1:5432/storage_hub"
24+
msp_database_url = "postgresql://postgres:postgres@storage-hub-sh-indexer-postgres-1:5432/storage_hub"
1825
# Node key for identity
1926
node_key = "0x2e6e3670c96202a2d6f5a58b7ac9092c5a51e0250f324eec2111ca94f5e568be"
2027
# Path to keystores
@@ -62,6 +69,10 @@ user_agent = "StorageHub-Client/1.0"
6269
chunk_size = 8192
6370
# Number of `chunk_size` chunks to buffer during upload/download. (default: 512)
6471
chunks_buffer = 512
72+
# Number of 1KB (FILE_CHUNK_SIZE) chunks batched and queued internally while reading file chunks from the DB.
73+
# This corresponds to the `--internal-buffer-size` CLI flag and controls MSP internal buffering behaviour.
74+
# Default: 1024 (for 1MB buffered from the DB at a time).
75+
internal_buffer_size = 1024
6576
# Number of FILE_CHUNK_SIZE chunks to batch and queue internally during download. (default: 1024)
6677
file_chunks_buffer = 1024
6778

0 commit comments

Comments
 (0)