mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-12-01 16:16:14 +01:00
Compare commits
1
Commits
3/dev
...
TOoSmOotH/623
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3743173c88 |
No files matched your search
@@ -19,6 +19,8 @@ so-redis:
|
||||
docker_container.running:
|
||||
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-redis:{{ GLOBALS.so_version }}
|
||||
- restart_policy: unless-stopped
|
||||
- shutdown_timeout: 180
|
||||
- stop_timeout: 180
|
||||
- hostname: so-redis
|
||||
- user: socore
|
||||
- networks:
|
||||
@@ -60,7 +62,7 @@ so-redis:
|
||||
- {{ ULIMIT.name }}={{ ULIMIT.soft }}:{{ ULIMIT.hard }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf"
|
||||
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf --rdb-version-check relaxed"
|
||||
- watch:
|
||||
- cmd: ca_trust_extract
|
||||
- file: trusttheca
|
||||
|
||||
@@ -9,9 +9,9 @@ export REDISCLI_AUTH={{ REDIS_PASS }}
|
||||
# if this script isn't already running
|
||||
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
||||
|
||||
UNPARSED=$(redis-cli llen logstash:unparsed | awk '{print $1}')
|
||||
PARSED=$(redis-cli llen logstash:parsed | awk '{print $1}')
|
||||
MEM_USED=$(redis-cli info memory | grep used_memory_peak_perc | cut -d ":" -f2 | sed "s/%//")
|
||||
UNPARSED=$(valkey-cli llen logstash:unparsed | awk '{print $1}')
|
||||
PARSED=$(valkey-cli llen logstash:parsed | awk '{print $1}')
|
||||
MEM_USED=$(valkey-cli info memory | grep used_memory_peak_perc | cut -d ":" -f2 | sed "s/%//")
|
||||
|
||||
echo "redisqueue unparsed=$UNPARSED,parsed=$PARSED,mem_used=$MEM_USED"
|
||||
|
||||
|
||||
Reference in new issue
Block a user