From ca47a82d99503fc9bff11a587257d4ed0ca1a4c2 Mon Sep 17 00:00:00 2001 From: Louis Abel Date: Wed, 13 Jul 2022 20:07:50 -0700 Subject: [PATCH] increase worker count --- sync/sync-to-prod-9.sh | 2 +- sync/sync-to-staging-9.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sync/sync-to-prod-9.sh b/sync/sync-to-prod-9.sh index 22dd4af..1c90de1 100644 --- a/sync/sync-to-prod-9.sh +++ b/sync/sync-to-prod-9.sh @@ -14,7 +14,7 @@ if [ $ret_val -eq "0" ]; then TARGET="${PRODUCTION_ROOT}/${CATEGORY_STUB}/${REV:0:3}" mkdir -p "${TARGET}" echo "Syncing ${REVISION}" - sudo -l && time fpsync -o '-av --numeric-ids --no-compress --chown=10004:10005' -n 18 -t /mnt/compose/partitions "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/" "${TARGET}/" + sudo -l && time fpsync -o '-av --numeric-ids --no-compress --chown=10004:10005' -n 24 -t /mnt/compose/partitions "${STAGING_ROOT}/${CATEGORY_STUB}/${REV}/" "${TARGET}/" # Full file list update for production root cd "${PRODUCTION_ROOT}/" || { echo "Failed to change directory"; exit 1; } diff --git a/sync/sync-to-staging-9.sh b/sync/sync-to-staging-9.sh index 4c18041..a5d59df 100644 --- a/sync/sync-to-staging-9.sh +++ b/sync/sync-to-staging-9.sh @@ -26,7 +26,7 @@ if [ $ret_val -eq "0" ]; then # shellcheck disable=SC2035 #sudo -l && find **/* -maxdepth 0 -type d | parallel --will-cite -j 18 sudo rsync -av --chown=10004:10005 --progress --relative --human-readable \ # {} "${TARGET}" - sudo -l && time fpsync -o '-av --numeric-ids --no-compress --chown=10004:10005' -n 18 -t /mnt/compose/partitions "/mnt/compose/${MAJ}/latest-${SHORT}-${MAJ}${PROFILE}/compose/" "${TARGET}/" + sudo -l && time fpsync -o '-av --numeric-ids --no-compress --chown=10004:10005' -n 24 -t /mnt/compose/partitions "/mnt/compose/${MAJ}/latest-${SHORT}-${MAJ}${PROFILE}/compose/" "${TARGET}/" # This is temporary until we implement rsync into empanadas #if [ -f "COMPOSE_ID" ]; then