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

Commit

Permalink
hot fix: add cache related server args
Browse files Browse the repository at this point in the history
  • Loading branch information
J-HowHuang committed May 1, 2024
1 parent 4aac0c1 commit dbed464
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
14 changes: 11 additions & 3 deletions server/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ mkdir -p "${LOG_DIR}"
# Server root directory
SERVER_ROOT="${SERVER_ROOT:-"."}"
SERVER_IP="${SERVER_IP:-"localhost"}"
CACHE_CAPACITY="${CACHE_CAPACITY:-"1073741824"}"
CACHE_BUCKET_SIZE="${CACHE_BUCKET_SIZE:-"3"}"

# Names or keywords to identify your processes
PROCESS_NAMES=("istziio_server_node" "redis-serveredis-serverr")
Expand Down Expand Up @@ -55,19 +57,25 @@ REDIS_PORT=6379 cargo run --bin istziio_server_node --\
--bucket "istziio-bucket" \
--region "us-east-1" \
--access-key "$AWS_ACCESS_KEY_ID" \
--secret-key "$AWS_SECRET_ACCESS_KEY" > "${LOG_DIR}/app_6379.log" 2>&1 &
--secret-key "$AWS_SECRET_ACCESS_KEY" \
--max-size "$CACHE_CAPACITY" \
--bucket-size "$CACHE_BUCKET_SIZE" > "${LOG_DIR}/app_6379.log" 2>&1 &
REDIS_PORT=6380 cargo run --bin istziio_server_node --\
--server-ip $SERVER_IP \
--bucket "istziio-bucket" \
--region "us-east-1" \
--access-key "$AWS_ACCESS_KEY_ID" \
--secret-key "$AWS_SECRET_ACCESS_KEY" > "${LOG_DIR}/app_6380.log" 2>&1 &
--secret-key "$AWS_SECRET_ACCESS_KEY" \
--max-size "$CACHE_CAPACITY" \
--bucket-size "$CACHE_BUCKET_SIZE" > "${LOG_DIR}/app_6380.log" 2>&1 &
REDIS_PORT=6381 cargo run --bin istziio_server_node --\
--server-ip $SERVER_IP \
--bucket "istziio-bucket" \
--region "us-east-1" \
--access-key "$AWS_ACCESS_KEY_ID" \
--secret-key "$AWS_SECRET_ACCESS_KEY" > "${LOG_DIR}/app_6381.log" 2>&1 &
--secret-key "$AWS_SECRET_ACCESS_KEY" \
--max-size "$CACHE_CAPACITY" \
--bucket-size "$CACHE_BUCKET_SIZE" > "${LOG_DIR}/app_6381.log" 2>&1 &

echo "Application servers starting..."

Expand Down
6 changes: 5 additions & 1 deletion server/run_single_node.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ mkdir -p "${LOG_DIR}"

# Server root directory
SERVER_ROOT="${SERVER_ROOT:-"."}"
CACHE_CAPACITY="${CACHE_CAPACITY:-"1073741824"}"
CACHE_BUCKET_SIZE="${CACHE_BUCKET_SIZE:-"3"}"

# Names or keywords to identify your processes
PROCESS_NAMES=("istziio_server_node" "redis-serveredis-serverr")
Expand Down Expand Up @@ -55,7 +57,9 @@ REDIS_PORT=6379 cargo run --\
--bucket "istziio-bucket" \
--region "us-east-1" \
--access-key "$AWS_ACCESS_KEY_ID" \
--secret-key "$AWS_SECRET_ACCESS_KEY" > "${LOG_DIR}/app_6379.log" 2>&1 &
--secret-key "$AWS_SECRET_ACCESS_KEY" \
--max-size "$CACHE_CAPACITY" \
--bucket-size "$CACHE_BUCKET_SIZE" > "${LOG_DIR}/app_6379.log" 2>&1 &

echo "Application servers starting..."

Expand Down

0 comments on commit dbed464

Please sign in to comment.