Skip to content
Snippets Groups Projects
Commit 67e0c4a8 authored by Arne Øslebø's avatar Arne Øslebø
Browse files

use tcp mode for nifi and elastic

parent 876a5d58
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
set -e
# first arg is `-f` or `--some-option`
if [ "${1#-}" != "$1" ]; then
set -- haproxy "$@"
fi
if [ "$1" = 'haproxy' ]; then
shift # "haproxy"
# if the user wants "haproxy", let's add a couple useful flags
# -W -- "master-worker mode" (similar to the old "haproxy-systemd-wrapper"; allows for reload via "SIGUSR2")
# -db -- disables background mode
set -- haproxy -W -db "$@"
fi
exec "$@"
......@@ -21,7 +21,7 @@ listen stats
listen nifiserv
bind *:9443
mode http
mode tcp
maxconn 5000
fullconn 5000
balance source
......@@ -32,7 +32,7 @@ listen nifiserv
listen odfeserv
bind *:9200
mode http
mode tcp
maxconn 5000
fullconn 5000
balance source
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment