mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2026-12-02 08:36:08 +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:
|
docker_container.running:
|
||||||
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-redis:{{ GLOBALS.so_version }}
|
- image: {{ GLOBALS.registry_host }}:5000/{{ GLOBALS.image_repo }}/so-redis:{{ GLOBALS.so_version }}
|
||||||
- restart_policy: unless-stopped
|
- restart_policy: unless-stopped
|
||||||
|
- shutdown_timeout: 180
|
||||||
|
- stop_timeout: 180
|
||||||
- hostname: so-redis
|
- hostname: so-redis
|
||||||
- user: socore
|
- user: socore
|
||||||
- networks:
|
- networks:
|
||||||
@@ -60,7 +62,7 @@ so-redis:
|
|||||||
- {{ ULIMIT.name }}={{ ULIMIT.soft }}:{{ ULIMIT.hard }}
|
- {{ ULIMIT.name }}={{ ULIMIT.soft }}:{{ ULIMIT.hard }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf"
|
- entrypoint: "redis-server /usr/local/etc/redis/redis.conf --rdb-version-check relaxed"
|
||||||
- watch:
|
- watch:
|
||||||
- cmd: ca_trust_extract
|
- cmd: ca_trust_extract
|
||||||
- file: trusttheca
|
- file: trusttheca
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ export REDISCLI_AUTH={{ REDIS_PASS }}
|
|||||||
# if this script isn't already running
|
# if this script isn't already running
|
||||||
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
if [[ ! "`pidof -x $(basename $0) -o %PPID`" ]]; then
|
||||||
|
|
||||||
UNPARSED=$(redis-cli llen logstash:unparsed | awk '{print $1}')
|
UNPARSED=$(valkey-cli llen logstash:unparsed | awk '{print $1}')
|
||||||
PARSED=$(redis-cli llen logstash:parsed | awk '{print $1}')
|
PARSED=$(valkey-cli llen logstash:parsed | awk '{print $1}')
|
||||||
MEM_USED=$(redis-cli info memory | grep used_memory_peak_perc | cut -d ":" -f2 | sed "s/%//")
|
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"
|
echo "redisqueue unparsed=$UNPARSED,parsed=$PARSED,mem_used=$MEM_USED"
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user