mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 12:50:43 +01:00
Changing server parameter to accept an array of servers/uris and port to defaultPort if not specified on a given uri. Adding dedicated curl handle for checkConn and refactoring the curl setup a bit, using ES health check with timeout. Added checkConnFailure stat counting and HA test
18 lines
808 B
Bash
Executable File
18 lines
808 B
Bash
Executable File
#!/bin/bash
|
|
# This file is part of the rsyslog project, released under ASL 2.0
|
|
echo ===============================================================================
|
|
echo \[es-basic-ha.sh\]: basic test for elasticsearch high availability functionality
|
|
. $srcdir/diag.sh init
|
|
. $srcdir/diag.sh es-init
|
|
. $srcdir/diag.sh startup es-basic-ha.conf
|
|
. $srcdir/diag.sh injectmsg 0 100
|
|
. $srcdir/diag.sh wait-queueempty
|
|
. $srcdir/diag.sh wait-for-stats-flush 'rsyslog.out.stats.log'
|
|
. $srcdir/diag.sh shutdown-when-empty
|
|
. $srcdir/diag.sh wait-shutdown
|
|
. $srcdir/diag.sh es-getdata 100
|
|
. $srcdir/diag.sh seq-check 0 99
|
|
# The configuration makes every other request from message #3 fail checkConn (N/2-1)
|
|
. $srcdir/diag.sh custom-content-check '"failed.checkConn": 49' 'rsyslog.out.stats.log'
|
|
. $srcdir/diag.sh exit
|