From 30dc1be577775832d114ebc866a9baac3da4ab5b Mon Sep 17 00:00:00 2001 From: "s.djellali" Date: Wed, 3 Jul 2024 23:12:08 +0200 Subject: [PATCH] add 3 flags smp, memory and cpuset --- .../prebuildfs/usr/sbin/install_packages | 0 .../debian-12/prebuildfs/usr/sbin/run-script | 0 .../opt/bitnami/scripts/java/entrypoint.sh | 0 .../opt/bitnami/scripts/java/postunpack.sh | 0 .../bitnami/scripts/scylladb/entrypoint.sh | 0 .../bitnami/scripts/scylladb/postunpack.sh | 0 .../opt/bitnami/scripts/scylladb/run.sh | 0 .../opt/bitnami/scripts/scylladb/setup.sh | 0 .../prebuildfs/usr/sbin/install_packages | 0 .../debian-12/prebuildfs/usr/sbin/run-script | 0 .../opt/bitnami/scripts/java/entrypoint.sh | 0 .../opt/bitnami/scripts/java/postunpack.sh | 0 .../rootfs/opt/bitnami/scripts/libscylladb.sh | 1 + .../opt/bitnami/scripts/scylladb-env.sh | 15 ++ .../bitnami/scripts/scylladb/entrypoint.sh | 0 .../bitnami/scripts/scylladb/postunpack.sh | 2 +- .../opt/bitnami/scripts/scylladb/run.sh | 15 ++ .../opt/bitnami/scripts/scylladb/setup.sh | 0 bitnami/scylladb/README.md | 176 +++++++++--------- 19 files changed, 123 insertions(+), 86 deletions(-) mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/prebuildfs/usr/sbin/install_packages mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/prebuildfs/usr/sbin/run-script mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/entrypoint.sh mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh mode change 100755 => 100644 bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/setup.sh mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/prebuildfs/usr/sbin/install_packages mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/prebuildfs/usr/sbin/run-script mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/entrypoint.sh mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh mode change 100755 => 100644 bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/setup.sh diff --git a/bitnami/scylladb/5.4/debian-12/prebuildfs/usr/sbin/install_packages b/bitnami/scylladb/5.4/debian-12/prebuildfs/usr/sbin/install_packages old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/5.4/debian-12/prebuildfs/usr/sbin/run-script b/bitnami/scylladb/5.4/debian-12/prebuildfs/usr/sbin/run-script old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh b/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh b/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/entrypoint.sh b/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/entrypoint.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh b/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh b/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/setup.sh b/bitnami/scylladb/5.4/debian-12/rootfs/opt/bitnami/scripts/scylladb/setup.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/6.0/debian-12/prebuildfs/usr/sbin/install_packages b/bitnami/scylladb/6.0/debian-12/prebuildfs/usr/sbin/install_packages old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/6.0/debian-12/prebuildfs/usr/sbin/run-script b/bitnami/scylladb/6.0/debian-12/prebuildfs/usr/sbin/run-script old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/java/entrypoint.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/java/postunpack.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/libscylladb.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/libscylladb.sh index 0469a21adbe43..fd702ef9be2de 100644 --- a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/libscylladb.sh +++ b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/libscylladb.sh @@ -430,6 +430,7 @@ cassandra_validate() { check_positive_value DB_CQL_PORT_NUMBER check_positive_value DB_JMX_PORT_NUMBER check_positive_value DB_TRANSPORT_PORT_NUMBER + check_positive_value DB_SMP check_conflicting_ports DB_CQL_PORT_NUMBER DB_JMX_PORT_NUMBER DB_TRANSPORT_PORT_NUMBER diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb-env.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb-env.sh index ee9709c13f0ec..7b748edc11d83 100644 --- a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb-env.sh +++ b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb-env.sh @@ -76,6 +76,9 @@ scylladb_env_vars=( SCYLLADB_PROMETHEUS_PORT_NUMBER SCYLLADB_DEVELOPER_MODE SCYLLADB_RUN_JMX_PROXY + SCYLLADB_SMP + SCYLLADB_CPUSET + SCYLLADB_MEMORY ) for env_var in "${scylladb_env_vars[@]}"; do file_env_var="${env_var}_FILE" @@ -102,6 +105,12 @@ export SCYLLADB_DATA_DIR="${DB_VOLUME_DIR}/data" export DB_DATA_DIR="$SCYLLADB_DATA_DIR" export SCYLLADB_COMMITLOG_DIR="${DB_DATA_DIR}/commitlog" export DB_COMMITLOG_DIR="$SCYLLADB_COMMITLOG_DIR" +export SCYLLADB_DATA2_DIR="${DB_DATA_DIR}/data" +export DB_DATA2_DIR="$SCYLLADB_DATA2_DIR" +export SCYLLADB_HINTS_DIR="${DB_DATA_DIR}/hints" +export DB_HINTS_DIR="$SCYLLADB_HINTS_DIR" +export SCYLLADB_VIEW_HINTS_DIR="${DB_DATA_DIR}/view_hints" +export DB_VIEW_HINTS_DIR="$SCYLLADB_VIEW_HINTS_DIR" export SCYLLADB_INITSCRIPTS_DIR="/docker-entrypoint-initdb.d" export DB_INITSCRIPTS_DIR="$SCYLLADB_INITSCRIPTS_DIR" export SCYLLADB_LOG_DIR="${DB_BASE_DIR}/logs" @@ -153,6 +162,12 @@ export SCYLLADB_INTERNODE_ENCRYPTION="${SCYLLADB_INTERNODE_ENCRYPTION:-none}" export DB_INTERNODE_ENCRYPTION="$SCYLLADB_INTERNODE_ENCRYPTION" export SCYLLADB_NUM_TOKENS="${SCYLLADB_NUM_TOKENS:-256}" export DB_NUM_TOKENS="$SCYLLADB_NUM_TOKENS" +export SCYLLADB_SMP="${SCYLLADB_SMP:-2}" +export DB_SMP="$SCYLLADB_SMP" +export SCYLLADB_CPUSET="${SCYLLADB_CPUSET:-}" +export DB_CPUSET="$SCYLLADB_CPUSET" +export SCYLLADB_MEMORY="${SCYLLADB_MEMORY:-8G}" +export DB_MEMORY="$SCYLLADB_MEMORY" export SCYLLADB_PASSWORD_SEEDER="${SCYLLADB_PASSWORD_SEEDER:-no}" export DB_PASSWORD_SEEDER="$SCYLLADB_PASSWORD_SEEDER" export SCYLLADB_SEEDS="${SCYLLADB_SEEDS:-$DB_HOST}" diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/entrypoint.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/entrypoint.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh old mode 100755 new mode 100644 index 3428dc60c1ca4..b1b235b4cc43e --- a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh +++ b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/postunpack.sh @@ -12,7 +12,7 @@ . /opt/bitnami/scripts/scylladb-env.sh -for dir in "$DB_INITSCRIPTS_DIR" "$DB_TMP_DIR" "$DB_LOG_DIR" "$DB_CONF_DIR" "$DB_MOUNTED_CONF_DIR" "$DB_VOLUME_DIR" "$DB_DEFAULT_CONF_DIR"; do +for dir in "$DB_INITSCRIPTS_DIR" "$DB_TMP_DIR" "$DB_LOG_DIR" "$DB_CONF_DIR" "$DB_MOUNTED_CONF_DIR" "$DB_VOLUME_DIR" "$DB_DEFAULT_CONF_DIR" "$DB_COMMITLOG_DIR" "$DB_DATA2_DIR" "$DB_HINTS_DIR" "$DB_VIEW_HINTS_DIR"; do ensure_dir_exists "$dir" chmod -R g+rwX "$dir" done diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh old mode 100755 new mode 100644 index 3f9b27d181bfe..0560dabdff876 --- a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh +++ b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/run.sh @@ -24,6 +24,21 @@ if is_boolean_yes "$SCYLLADB_DEVELOPER_MODE"; then flags+=("--developer-mode" "true") fi +# Add DB_SMP flag if the variable is set +if [[ -n "${DB_SMP}" ]]; then + flags+=("--smp" "$DB_SMP") +fi + +# Add DB_CPUSET flag if the variable is set +if [[ -n "${DB_CPUSET}" ]]; then + flags+=("--cpuset" "$DB_CPUSET") +fi + +# Add DB_MEMORY flag if the variable is set +if [[ -n "${DB_MEMORY}" ]]; then + flags+=("--memory" "$DB_MEMORY") +fi + # Add flags passed to this script flags+=("$@") diff --git a/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/setup.sh b/bitnami/scylladb/6.0/debian-12/rootfs/opt/bitnami/scripts/scylladb/setup.sh old mode 100755 new mode 100644 diff --git a/bitnami/scylladb/README.md b/bitnami/scylladb/README.md index 88f8cadf50917..8c8d4a167dafe 100644 --- a/bitnami/scylladb/README.md +++ b/bitnami/scylladb/README.md @@ -164,95 +164,101 @@ docker-compose up -d #### Customizable environment variables -| Name | Description | Default Value | -|---------------------------------------------------|-----------------------------------------------------------------------------------------|---------------------------------------| -| `SCYLLADB_MOUNTED_CONF_DIR` | ScyllaDB directory for mounted configuration files | `${DB_VOLUME_DIR}/conf` | -| `SCYLLADB_CLIENT_ENCRYPTION` | Enable client encryption | `false` | -| `SCYLLADB_CLUSTER_NAME` | ScyllaDB cluster name | `My Cluster` | -| `SCYLLADB_DATACENTER` | ScyllaDB datacenter name | `dc1` | -| `SCYLLADB_ENABLE_REMOTE_CONNECTIONS` | Enable connection from remote locations | `true` | -| `SCYLLADB_ENABLE_RPC` | Enable RPC endpoint in ScyllaDB | `false` | -| `SCYLLADB_ENABLE_USER_DEFINED_FUNCTIONS` | Enable user defined functions | `false` | +| Name | Description | Default Value | +|-------------------------------------------|-----------------------------------------------------------------------------------------|---------------------------------------| +| `SCYLLADB_MOUNTED_CONF_DIR` | ScyllaDB directory for mounted configuration files | `${DB_VOLUME_DIR}/conf` | +| `SCYLLADB_CLIENT_ENCRYPTION` | Enable client encryption | `false` | +| `SCYLLADB_CLUSTER_NAME` | ScyllaDB cluster name | `My Cluster` | +| `SCYLLADB_DATACENTER` | ScyllaDB datacenter name | `dc1` | +| `SCYLLADB_ENABLE_REMOTE_CONNECTIONS` | Enable connection from remote locations | `true` | +| `SCYLLADB_ENABLE_RPC` | Enable RPC endpoint in ScyllaDB | `false` | +| `SCYLLADB_ENABLE_USER_DEFINED_FUNCTIONS` | Enable user defined functions | `false` | | `SCYLLADB_ENABLE_SCRIPTED_USER_DEFINED_FUNCTIONS` | Enable scripted user defined functions | `false` | -| `SCYLLADB_ENDPOINT_SNITCH` | Name of the cluster endpoint snitch | `SimpleSnitch` | -| `SCYLLADB_HOST` | ScyllaDB host name | `nil` | -| `SCYLLADB_INTERNODE_ENCRYPTION` | Internode encryption type | `none` | -| `SCYLLADB_NUM_TOKENS` | Number of tokens in cluster connection | `256` | -| `SCYLLADB_PASSWORD_SEEDER` | Set node as password seeder in the cluster | `no` | -| `SCYLLADB_SEEDS` | List of cluster seeds | `$DB_HOST` | -| `SCYLLADB_PEERS` | List of cluster peers | `$DB_SEEDS` | -| `SCYLLADB_NODES` | List of cluster nodes (seeders and non seeders) | `nil` | -| `SCYLLADB_RACK` | ScyllaDB rack name | `rack1` | -| `SCYLLADB_BROADCAST_ADDRESS` | Node broadcast address | `nil` | -| `SCYLLADB_AUTOMATIC_SSTABLE_UPGRADE` | Automatically upgrade sstables after upgrade | `false` | -| `SCYLLADB_STARTUP_CQL` | Startup CQL commands to run at boot | `nil` | -| `SCYLLADB_IGNORE_INITDB_SCRIPTS` | Ignore the execution of init scripts | `no` | -| `SCYLLADB_CQL_PORT_NUMBER` | CQL port | `9042` | -| `SCYLLADB_JMX_PORT_NUMBER` | JMX port | `7199` | -| `SCYLLADB_TRANSPORT_PORT_NUMBER` | Transport port | `7000` | -| `SCYLLADB_CQL_MAX_RETRIES` | Maximum retries for CQL startup operations | `20` | -| `SCYLLADB_CQL_SLEEP_TIME` | Sleep time for CQL startup operations | `5` | -| `SCYLLADB_INIT_MAX_RETRIES` | Maximum retries for init startup operations | `100` | -| `SCYLLADB_INIT_SLEEP_TIME` | Sleep time for init startup operations | `5` | -| `SCYLLADB_PEER_CQL_MAX_RETRIES` | Maximum retries for peer startup operations | `100` | -| `SCYLLADB_PEER_CQL_SLEEP_TIME` | Sleep time for peer startup operations | `10` | -| `SCYLLADB_DELAY_START_TIME` | Delay ScyllaDB start by the number of provided seconds | `10` | -| `SCYLLADB_AUTO_SNAPSHOT_TTL` | Take an automatic snapshot of the data before truncating a keyspace or dropping a table | `30d` | -| `ALLOW_EMPTY_PASSWORD` | Allow no credentials in the installation. | `no` | -| `SCYLLADB_AUTHORIZER` | ScyllaDB connection authorizer | `CassandraAuthorizer` | -| `SCYLLADB_AUTHENTICATOR` | ScyllaDB connection authenticator | `PasswordAuthenticator` | -| `SCYLLADB_USER` | ScyllaDB username | `cassandra` | -| `SCYLLADB_PASSWORD` | ScyllaDB password | `nil` | -| `SCYLLADB_KEYSTORE_PASSWORD` | ScyllaDB keystore password | `cassandra` | -| `SCYLLADB_TRUSTSTORE_PASSWORD` | ScyllaDB truststore password | `cassandra` | -| `SCYLLADB_KEYSTORE_LOCATION` | ScyllaDB keystore location | `${DB_VOLUME_DIR}/secrets/keystore` | -| `SCYLLADB_TRUSTSTORE_LOCATION` | ScyllaDB truststore location | `${DB_VOLUME_DIR}/secrets/truststore` | -| `SCYLLADB_TMP_P12_FILE` | ScyllaDB truststore location | `${DB_TMP_DIR}/keystore.p12` | -| `SCYLLADB_SSL_CERT_FILE` | ScyllaDB SSL certificate location | `${DB_VOLUME_DIR}/certs/tls.crt` | -| `SCYLLADB_SSL_KEY_FILE` | ScyllaDB SSL keyfile location | `${DB_VOLUME_DIR}/certs/tls.key` | -| `SCYLLADB_SSL_CA_FILE` | ScyllaDB SSL CA location | `nil` | -| `SCYLLADB_SSL_VALIDATE` | Perform SSL validation on the certificates | `false` | -| `SSL_VERSION` | TLS version to use when connecting. | `TLSv1_2` | -| `SCYLLADB_CQL_SHARD_PORT_NUMBER` | CQL (shard aware) port | `19042` | -| `SCYLLADB_API_PORT_NUMBER` | REST API port | `10000` | -| `SCYLLADB_PROMETHEUS_PORT_NUMBER` | Prometheus metrics port | `9180` | -| `SCYLLADB_DEVELOPER_MODE` | Use ScyllaDB developer mode | `yes` | -| `SCYLLADB_RUN_JMX_PROXY` | Launch JMX Proxy as a subprocess | `no` | +| `SCYLLADB_ENDPOINT_SNITCH` | Name of the cluster endpoint snitch | `SimpleSnitch` | +| `SCYLLADB_HOST` | ScyllaDB host name | `nil` | +| `SCYLLADB_INTERNODE_ENCRYPTION` | Internode encryption type | `none` | +| `SCYLLADB_NUM_TOKENS` | Number of tokens in cluster connection | `256` | +| `SCYLLADB_PASSWORD_SEEDER` | Set node as password seeder in the cluster | `no` | +| `SCYLLADB_SEEDS` | List of cluster seeds | `$DB_HOST` | +| `SCYLLADB_PEERS` | List of cluster peers | `$DB_SEEDS` | +| `SCYLLADB_NODES` | List of cluster nodes (seeders and non seeders) | `nil` | +| `SCYLLADB_RACK` | ScyllaDB rack name | `rack1` | +| `SCYLLADB_BROADCAST_ADDRESS` | Node broadcast address | `nil` | +| `SCYLLADB_AUTOMATIC_SSTABLE_UPGRADE` | Automatically upgrade sstables after upgrade | `false` | +| `SCYLLADB_STARTUP_CQL` | Startup CQL commands to run at boot | `nil` | +| `SCYLLADB_IGNORE_INITDB_SCRIPTS` | Ignore the execution of init scripts | `no` | +| `SCYLLADB_CQL_PORT_NUMBER` | CQL port | `9042` | +| `SCYLLADB_JMX_PORT_NUMBER` | JMX port | `7199` | +| `SCYLLADB_TRANSPORT_PORT_NUMBER` | Transport port | `7000` | +| `SCYLLADB_CQL_MAX_RETRIES` | Maximum retries for CQL startup operations | `20` | +| `SCYLLADB_CQL_SLEEP_TIME` | Sleep time for CQL startup operations | `5` | +| `SCYLLADB_INIT_MAX_RETRIES` | Maximum retries for init startup operations | `100` | +| `SCYLLADB_INIT_SLEEP_TIME` | Sleep time for init startup operations | `5` | +| `SCYLLADB_PEER_CQL_MAX_RETRIES` | Maximum retries for peer startup operations | `100` | +| `SCYLLADB_PEER_CQL_SLEEP_TIME` | Sleep time for peer startup operations | `10` | +| `SCYLLADB_DELAY_START_TIME` | Delay ScyllaDB start by the number of provided seconds | `10` | +| `SCYLLADB_AUTO_SNAPSHOT_TTL` | Take an automatic snapshot of the data before truncating a keyspace or dropping a table | `30d` | +| `ALLOW_EMPTY_PASSWORD` | Allow no credentials in the installation. | `no` | +| `SCYLLADB_AUTHORIZER` | ScyllaDB connection authorizer | `CassandraAuthorizer` | +| `SCYLLADB_AUTHENTICATOR` | ScyllaDB connection authenticator | `PasswordAuthenticator` | +| `SCYLLADB_USER` | ScyllaDB username | `cassandra` | +| `SCYLLADB_PASSWORD` | ScyllaDB password | `nil` | +| `SCYLLADB_KEYSTORE_PASSWORD` | ScyllaDB keystore password | `cassandra` | +| `SCYLLADB_TRUSTSTORE_PASSWORD` | ScyllaDB truststore password | `cassandra` | +| `SCYLLADB_KEYSTORE_LOCATION` | ScyllaDB keystore location | `${DB_VOLUME_DIR}/secrets/keystore` | +| `SCYLLADB_TRUSTSTORE_LOCATION` | ScyllaDB truststore location | `${DB_VOLUME_DIR}/secrets/truststore` | +| `SCYLLADB_TMP_P12_FILE` | ScyllaDB truststore location | `${DB_TMP_DIR}/keystore.p12` | +| `SCYLLADB_SSL_CERT_FILE` | ScyllaDB SSL certificate location | `${DB_VOLUME_DIR}/certs/tls.crt` | +| `SCYLLADB_SSL_KEY_FILE` | ScyllaDB SSL keyfile location | `${DB_VOLUME_DIR}/certs/tls.key` | +| `SCYLLADB_SSL_CA_FILE` | ScyllaDB SSL CA location | `nil` | +| `SCYLLADB_SSL_VALIDATE` | Perform SSL validation on the certificates | `false` | +| `SSL_VERSION` | TLS version to use when connecting. | `TLSv1_2` | +| `SCYLLADB_CQL_SHARD_PORT_NUMBER` | CQL (shard aware) port | `19042` | +| `SCYLLADB_API_PORT_NUMBER` | REST API port | `10000` | +| `SCYLLADB_PROMETHEUS_PORT_NUMBER` | Prometheus metrics port | `9180` | +| `SCYLLADB_DEVELOPER_MODE` | Use ScyllaDB developer mode | `yes` | +| `SCYLLADB_RUN_JMX_PROXY` | Launch JMX Proxy as a subprocess | `no` | +| `SCYLLADB_SMP` | Restrict the number of CPU in the cluster. | `2` | +| `SCYLLADB_CPUSET` | Restrict the phyical CPU in the cluster. | `nil` | +| `SCYLLADB_MEMORY` | Restrict the memory in the cluster. | `2G` | #### Read-only environment variables -| Name | Description | Value | -|--------------------------------------|--------------------------------------------------------------------------------|------------------------------------------------------------------| -| `DB_FLAVOR` | Database flavor. Valid values: `cassandra` or `scylladb`. | `scylladb` | -| `SCYLLADB_BASE_DIR` | ScyllaDB installation directory | `/opt/bitnami/scylladb` | -| `SCYLLADB_BIN_DIR` | ScyllaDB executables directory | `${DB_BASE_DIR}/bin` | -| `SCYLLADB_VOLUME_DIR` | Persistence base directory | `/bitnami/scylladb` | -| `SCYLLADB_DATA_DIR` | ScyllaDB data directory | `${DB_VOLUME_DIR}/data` | -| `SCYLLADB_COMMITLOG_DIR` | ScyllaDB commit log directory | `${DB_DATA_DIR}/commitlog` | -| `SCYLLADB_INITSCRIPTS_DIR` | Path to the ScyllaDB container init scripts directory | `/docker-entrypoint-initdb.d` | -| `SCYLLADB_LOG_DIR` | ScyllaDB logs directory | `${DB_BASE_DIR}/logs` | -| `SCYLLADB_TMP_DIR` | ScyllaDB temporary directory | `${DB_BASE_DIR}/tmp` | -| `JAVA_BASE_DIR` | Java base directory | `${BITNAMI_ROOT_DIR}/java` | -| `JAVA_BIN_DIR` | Java binary directory | `${JAVA_BASE_DIR}/bin` | -| `PYTHON_BASE_DIR` | Python base directory | `${BITNAMI_ROOT_DIR}/python` | -| `PYTHON_BIN_DIR` | Python binary directory | `${PYTHON_BASE_DIR}/bin` | -| `SCYLLADB_LOG_FILE` | Path to the ScyllaDB log file | `${DB_LOG_DIR}/scylladb.log` | -| `SCYLLADB_FIRST_BOOT_LOG_FILE` | Path to the ScyllaDB first boot log file | `${DB_LOG_DIR}/scylladb_first_boot.log` | -| `SCYLLADB_INITSCRIPTS_BOOT_LOG_FILE` | Path to the ScyllaDB init scripts log file | `${DB_LOG_DIR}/scylladb_init_scripts_boot.log` | -| `SCYLLADB_PID_FILE` | Path to the ScyllaDB pid file | `${DB_TMP_DIR}/scylladb.pid` | -| `SCYLLADB_DAEMON_USER` | ScyllaDB system user | `scylladb` | -| `SCYLLADB_DAEMON_GROUP` | ScyllaDB system group | `scylladb` | -| `SCYLLADB_CONF_DIR` | ScyllaDB configuration directory | `${DB_BASE_DIR}/etc` | -| `SCYLLADB_DEFAULT_CONF_DIR` | ScyllaDB default configuration directory | `${DB_BASE_DIR}/etc.default` | -| `SCYLLADB_CONF_FILE` | Path to ScyllaDB configuration file | `${DB_CONF_DIR}/scylla/scylla.yaml` | -| `SCYLLADB_RACKDC_FILE` | Path to ScyllaDB cassandra-rackdc.properties file | `${DB_CONF_DIR}/scylla/cassandra-rackdc.properties` | -| `SCYLLADB_LOGBACK_FILE` | Path to ScyllaDB logback.xml file | `${DB_CONF_DIR}/scylla/cassandra/logback.xml` | -| `SCYLLADB_COMMITLOG_ARCHIVING_FILE` | Path to ScyllaDB commitlog_archiving.properties file | `${DB_CONF_DIR}/scylla/cassandra/commitlog_archiving.properties` | -| `SCYLLADB_ENV_FILE` | Path to ScyllaDB cassandra-env.sh file | `${DB_CONF_DIR}/scylla/cassandra/cassandra-env.sh` | -| `SCYLLADB_MOUNTED_CONF_PATH` | Relative path (in mounted volume) to ScyllaDB configuration file | `scylla/scylla.yaml` | -| `SCYLLADB_MOUNTED_RACKDC_PATH` | Relative path (in mounted volume) to ScyllaDB cassandra-rackdc-properties file | `scylla/cassandra-rackdc.properties` | -| `SCYLLADB_MOUNTED_ENV_PATH` | Relative path (in mounted volume) to ScyllaDB cassandra-env.sh file | `scylla/cassandra/cassandra-env.sh` | -| `SCYLLADB_MOUNTED_LOGBACK_PATH` | Path to ScyllaDB logback.xml file | `scylla/cassandra/logback.xml` | +| Name | Description | Value | +|-------------------------------------|-------------------------------------------------------------------------------|------------------------------------------------------------------| +| `DB_FLAVOR` | Database flavor. Valid values: `cassandra` or `scylladb`. | `scylladb` | +| `SCYLLADB_BASE_DIR` | ScyllaDB installation directory | `/opt/bitnami/scylladb` | +| `SCYLLADB_BIN_DIR` | ScyllaDB executables directory | `${DB_BASE_DIR}/bin` | +| `SCYLLADB_VOLUME_DIR` | Persistence base directory | `/bitnami/scylladb` | +| `SCYLLADB_DATA_DIR` | ScyllaDB data directory | `${DB_VOLUME_DIR}/data` | +| `SCYLLADB_COMMITLOG_DIR` | ScyllaDB commit log directory | `${DB_DATA_DIR}/commitlog` | +| `SCYLLADB_DATA2_DIR` | ScyllaDB data/data directory | `${DB_DATA_DIR}/data` | +| `SCYLLADB_HINTS_DIR` | ScyllaDB hints directory | `${DB_DATA_DIR}/hints` | +| `SCYLLADB_VIEW_HINTS_DIR` | ScyllaDB view hints directory | `${DB_DATA_DIR}/view_hints` | +| `SCYLLADB_INITSCRIPTS_DIR` | Path to the ScyllaDB container init scripts directory | `/docker-entrypoint-initdb.d` | +| `SCYLLADB_LOG_DIR` | ScyllaDB logs directory | `${DB_BASE_DIR}/logs` | +| `SCYLLADB_TMP_DIR` | ScyllaDB temporary directory | `${DB_BASE_DIR}/tmp` | +| `JAVA_BASE_DIR` | Java base directory | `${BITNAMI_ROOT_DIR}/java` | +| `JAVA_BIN_DIR` | Java binary directory | `${JAVA_BASE_DIR}/bin` | +| `PYTHON_BASE_DIR` | Python base directory | `${BITNAMI_ROOT_DIR}/python` | +| `PYTHON_BIN_DIR` | Python binary directory | `${PYTHON_BASE_DIR}/bin` | +| `SCYLLADB_LOG_FILE` | Path to the ScyllaDB log file | `${DB_LOG_DIR}/scylladb.log` | +| `SCYLLADB_FIRST_BOOT_LOG_FILE` | Path to the ScyllaDB first boot log file | `${DB_LOG_DIR}/scylladb_first_boot.log` | +| `SCYLLADB_INITSCRIPTS_BOOT_LOG_FILE` | Path to the ScyllaDB init scripts log file | `${DB_LOG_DIR}/scylladb_init_scripts_boot.log` | +| `SCYLLADB_PID_FILE` | Path to the ScyllaDB pid file | `${DB_TMP_DIR}/scylladb.pid` | +| `SCYLLADB_DAEMON_USER` | ScyllaDB system user | `scylladb` | +| `SCYLLADB_DAEMON_GROUP` | ScyllaDB system group | `scylladb` | +| `SCYLLADB_CONF_DIR` | ScyllaDB configuration directory | `${DB_BASE_DIR}/etc` | +| `SCYLLADB_DEFAULT_CONF_DIR` | ScyllaDB default configuration directory | `${DB_BASE_DIR}/etc.default` | +| `SCYLLADB_CONF_FILE` | Path to ScyllaDB configuration file | `${DB_CONF_DIR}/scylla/scylla.yaml` | +| `SCYLLADB_RACKDC_FILE` | Path to ScyllaDB cassandra-rackdc.properties file | `${DB_CONF_DIR}/scylla/cassandra-rackdc.properties` | +| `SCYLLADB_LOGBACK_FILE` | Path to ScyllaDB logback.xml file | `${DB_CONF_DIR}/scylla/cassandra/logback.xml` | +| `SCYLLADB_COMMITLOG_ARCHIVING_FILE` | Path to ScyllaDB commitlog_archiving.properties file | `${DB_CONF_DIR}/scylla/cassandra/commitlog_archiving.properties` | +| `SCYLLADB_ENV_FILE` | Path to ScyllaDB cassandra-env.sh file | `${DB_CONF_DIR}/scylla/cassandra/cassandra-env.sh` | +| `SCYLLADB_MOUNTED_CONF_PATH` | Relative path (in mounted volume) to ScyllaDB configuration file | `scylla/scylla.yaml` | +| `SCYLLADB_MOUNTED_RACKDC_PATH` | Relative path (in mounted volume) to ScyllaDB cassandra-rackdc-properties file | `scylla/cassandra-rackdc.properties` | +| `SCYLLADB_MOUNTED_ENV_PATH` | Relative path (in mounted volume) to ScyllaDB cassandra-env.sh file | `scylla/cassandra/cassandra-env.sh` | +| `SCYLLADB_MOUNTED_LOGBACK_PATH` | Path to ScyllaDB logback.xml file | `scylla/cassandra/logback.xml` | Additionally, any environment variable beginning with the following prefix will be mapped to its corresponding ScyllaDB key in the proper file: