Skip to content

Commit

Permalink
fixed as per dudi's request
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadQadora committed Feb 11, 2025
1 parent c52609b commit 084ba19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
14 changes: 4 additions & 10 deletions falkordb-node/node-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ RUN_HEALTH_CHECK_SENTINEL=${RUN_HEALTH_CHECK_SENTINEL:-1}
TLS=${TLS:-false}
NODE_INDEX=${NODE_INDEX:-0}
INSTANCE_TYPE=${INSTANCE_TYPE:-''}
USER_SET_MEMORY=${USER_SET_MEMORY:-''}
PERSISTENCE_RDB_CONFIG_INPUT=${PERSISTENCE_RDB_CONFIG_INPUT:-'low'}
PERSISTENCE_RDB_CONFIG=${PERSISTENCE_RDB_CONFIG:-'86400 1 21600 100 3600 10000'}
PERSISTENCE_AOF_CONFIG=${PERSISTENCE_AOF_CONFIG:-'everysec'}
Expand Down Expand Up @@ -231,15 +230,10 @@ get_memory_limit() {
["c6i.4xlarge"]="30GB"
["c6i.8xlarge"]="62GB"
)

if [[ -z $INSTANCE_TYPE ]]; then
if [[ -n $USER_SET_MEMORY ]];then
echo "Memory is set by user"
MEMORY_LIMIT=$USER_SET_MEMORY
else
echo "INSTANCE_TYPE is not set"
MEMORY_LIMIT=$(get_default_memory_limit)
fi

if [[ -z $INSTANCE_TYPE && -z $MEMORY_LIMIT ]]; then
echo "INSTANCE_TYPE is not set"
MEMORY_LIMIT=$(get_default_memory_limit)
fi

instance_size_in_map=${memory_limit_instance_type_map[$INSTANCE_TYPE]}
Expand Down
2 changes: 1 addition & 1 deletion omnistrate.startup.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ services:
- TLS=$var.enableTLS
- FALKORDB_USER=$var.falkordbUser
- DATA_DIR=/data
- USER_SET_MEMORY=$var.memoryRequestsAndLimits
- MEMORY_LIMIT=$var.memoryRequestsAndLimits
- ROOT_CA_PATH=/etc/ssl/certs/GlobalSign_Root_CA.pem
- PERSISTENCE_RDB_CONFIG_INPUT=$var.RDBPersistenceConfig
- PERSISTENCE_AOF_CONFIG=$var.AOFPersistenceConfig
Expand Down

0 comments on commit 084ba19

Please sign in to comment.