-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: add "Architecture and Load Balancers" #2574
Conversation
docs/architecture/lb/nginx-os.md
Outdated
|
||
# Define a common configuration block for all servers | ||
map $server_port $upstream_name { | ||
514 stream_syslog_514; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably we also need tell that we can use port segregation, it will increase performance:
SC4S_LISTEN_DEFAULT_TCP_PORT=514,515,516,517
@mstopa-splunk @rjha-splunk Are we have a plan to create ansible playbook that will bootstrap sc4s instances with LB? |
@ikheifets-splunk not yet |
|
||
proxy_bind $remote_addr:$remote_port transparent; | ||
|
||
health_check udp; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
match server_ok {
send "GET /health HTTP/1.0\r\n\r\n";
expect ~* '"healthy"';
}
# Define connections to each of your upstreams.
# Include `proxy_bind` and `health_check`.
server {
listen 514 udp;
proxy_pass stream_syslog_514;
proxy_bind $remote_addr:$remote_port transparent;
health_check interval=1 match=server_ok port=8080;
}
No description provided.