Skip to content
This repository has been archived by the owner on May 15, 2024. It is now read-only.

Allow setting max replication factor #226

Merged
merged 1 commit into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# The version of singularity you will use to make deals. Generally, this should not change
SINGULARITY_REF=:v0.5.5
SINGULARITY_REF=:v0.5.9

# Comma seperated list of storage providers motion should make storage deals with
# You must set this value to contain at least one storage provider for motion to
Expand Down Expand Up @@ -76,4 +76,5 @@ SINGULARITY_CONTENT_PROVIDER_DOMAIN=
# deal on filecoin. Defaults to 16GiB. You should not need to change this
#MOTION_SINGULARITY_PACK_THRESHOLD=17179869184


# Max number of replicas per each PieceCID
#MOTION_REPLICATION_FACTOR=
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ services:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
volumes:
- motion-singularity-volume:/usr/src/app/storage
command: run deal-pusher
command: run deal-pusher --max-replication-factor ${MOTION_REPLICATION_FACTOR:-0}
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
LOTUS_TEST:
Expand Down
2 changes: 1 addition & 1 deletion integration/test/motionlarity/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ services:
image: ghcr.io/data-preservation-programs/singularity${SINGULARITY_REF}
volumes:
- motion-singularity-volume:/usr/src/app/storage
command: run deal-pusher
command: run deal-pusher --max-replication-factor ${MOTION_REPLICATION_FACTOR:-0}
restart: unless-stopped
environment:
DATABASE_CONNECTION_STRING: postgres://${SINGULARITY_DB_USER:-postgres}:${SINGULARITY_DB_PASSWORD:-postgres}@db:5432/${SINGULARITY_DB_NAME:-singularity}
Expand Down