kikocis/falkordb-omnistrate public
Changesets · Branches · Tags · Compare
| Changeset | ec7cc69c0ba42430cc7a6c6f8d4fd33f3ff2b5b6f9ed1386627f9c80194876d5 |
|---|---|
| Author | Dudi <16744955+dudizimber@users.noreply.github.com> · 2024-09-25 12:53 +03:00 |
| Committer | GitHub <noreply@github.com> · 2024-09-25 12:53 +03:00 |
| Parents | 094583c17baa, 3da78c6e2631 |
3 files changed
modified falkordb-cluster/cluster-entrypoint.sh +10 −1
| @@ -69,6 +69,14 @@ | ||
| 69 | 69 | if [[ ! -z $falkordb_pid ]]; then |
| 70 | 70 | kill -TERM $falkordb_pid |
| 71 | 71 | fi |
| 72 | + | |
| 73 | + if [[ $RUN_METRICS -eq 1 && ! -z $redis_exporter_pid ]]; then | |
| 74 | + kill -TERM $redis_exporter_pid | |
| 75 | + fi | |
| 76 | + | |
| 77 | + if [[ $RUN_HEALTH_CHECK -eq 1 && ! -z $healthcheck_pid ]]; then | |
| 78 | + kill -TERM $healthcheck_pid | |
| 79 | + fi | |
| 72 | 80 | } |
| 73 | 81 | |
| 74 | 82 | trap handle_sigterm SIGTERM |
| @@ -293,7 +301,8 @@ | ||
| 293 | 301 | if [[ $RUN_METRICS -eq 1 ]]; then |
| 294 | 302 | echo "Starting Metrics" |
| 295 | 303 | exporter_url=$(if [[ $TLS == "true" ]]; then echo "rediss://$NODE_HOST:$NODE_PORT"; else echo "redis://localhost:$NODE_PORT"; fi) |
| 296 | - redis_exporter -skip-tls-verification -redis.password $ADMIN_PASSWORD -redis.addr $exporter_url -log-format json -is-cluster | awk '{ print "**EXPORTER**: " $0 }' >>$FALKORDB_LOG_FILE_PATH & | |
| 304 | + redis_exporter -skip-tls-verification -redis.password $ADMIN_PASSWORD -redis.addr $exporter_url -log-format json -is-cluster -tls-server-min-version TLS1.3 >>$FALKORDB_LOG_FILE_PATH & | |
| 305 | + redis_exporter_pid=$! | |
| 297 | 306 | fi |
| 298 | 307 | |
| 299 | 308 | while true; do |
modified falkordb-node/node-entrypoint.sh +0 −1
| @@ -473,7 +473,6 @@ | ||
| 473 | 473 | |
| 474 | 474 | if [[ $RUN_METRICS -eq 1 ]]; then |
| 475 | 475 | echo "Starting Metrics" |
| 476 | - export REDIS_EXPORTER_DEBUG=$(if [[ $DEBUG -eq 1 ]]; then echo "true"; else echo "false"; fi) | |
| 477 | 476 | exporter_url=$(if [[ $TLS == "true" ]]; then echo "rediss://$NODE_HOST:$NODE_PORT"; else echo "redis://localhost:$NODE_PORT"; fi) |
| 478 | 477 | redis_exporter -skip-tls-verification -redis.password $ADMIN_PASSWORD -redis.addr $exporter_url -log-format json -tls-server-min-version TLS1.3 & |
| 479 | 478 | redis_exporter_pid=$! |
modified omnistrate.pro.yaml +6 −0
| @@ -1100,6 +1100,7 @@ | ||
| 1100 | 1100 | - RUN_HEALTH_CHECK_SENTINEL=1 |
| 1101 | 1101 | - BROWSER=0 |
| 1102 | 1102 | - DEBUG=0 |
| 1103 | + - REDIS_EXPORTER_DEBUG=false | |
| 1103 | 1104 | - SENTINEL_HOST=$sentinel-sz.sys.network.externalClusterEndpoint |
| 1104 | 1105 | - SENTINEL_PORT=26379 |
| 1105 | 1106 | - MASTER_NAME=master |
| @@ -1193,6 +1194,7 @@ | ||
| 1193 | 1194 | - RUN_HEALTH_CHECK=1 |
| 1194 | 1195 | - RUN_HEALTH_CHECK_SENTINEL=1 |
| 1195 | 1196 | - DEBUG=0 |
| 1197 | + - REDIS_EXPORTER_DEBUG=false | |
| 1196 | 1198 | - SENTINEL_PORT=26379 |
| 1197 | 1199 | - TLS=$var.enableTLS |
| 1198 | 1200 | - DATA_DIR=/data |
| @@ -1626,6 +1628,7 @@ | ||
| 1626 | 1628 | - RUN_HEALTH_CHECK_SENTINEL=1 |
| 1627 | 1629 | - BROWSER=0 |
| 1628 | 1630 | - DEBUG=0 |
| 1631 | + - REDIS_EXPORTER_DEBUG=false | |
| 1629 | 1632 | - IS_MULTI_ZONE=1 |
| 1630 | 1633 | - SENTINEL_HOST=$sentinel-mz.sys.network.externalClusterEndpoint |
| 1631 | 1634 | - SENTINEL_PORT=26379 |
| @@ -1719,6 +1722,7 @@ | ||
| 1719 | 1722 | - RUN_HEALTH_CHECK=1 |
| 1720 | 1723 | - RUN_HEALTH_CHECK_SENTINEL=1 |
| 1721 | 1724 | - DEBUG=0 |
| 1725 | + - REDIS_EXPORTER_DEBUG=false | |
| 1722 | 1726 | - SENTINEL_PORT=26379 |
| 1723 | 1727 | - TLS=$var.enableTLS |
| 1724 | 1728 | - DATA_DIR=/data |
| @@ -2053,6 +2057,7 @@ | ||
| 2053 | 2057 | - CLUSTER_REPLICAS=1 |
| 2054 | 2058 | - NODE_PORT=6379 |
| 2055 | 2059 | - DEBUG=0 |
| 2060 | + - REDIS_EXPORTER_DEBUG=false | |
| 2056 | 2061 | secrets: |
| 2057 | 2062 | - source: adminpasspath |
| 2058 | 2063 | target: /run/secrets/adminpassword |
| @@ -2353,6 +2358,7 @@ | ||
| 2353 | 2358 | - CLUSTER_REPLICAS=1 |
| 2354 | 2359 | - NODE_PORT=6379 |
| 2355 | 2360 | - DEBUG=0 |
| 2361 | + - REDIS_EXPORTER_DEBUG=false | |
| 2356 | 2362 | secrets: |
| 2357 | 2363 | - source: adminpasspath |
| 2358 | 2364 | target: /run/secrets/adminpassword |