I have 3 node graylog cluster our kubernetes pod logs tranfer on this by using node ip and port but when node goes down then not getting logs how to create node load balancing for fault tolerance
Hello @omkar
Here is an example of using the loadbalancer service.
input:
tcp:
service:
type: LoadBalancer
externalTrafficPolicy: Local
loadBalancerIP:
ports:
- name: gelf1
port: 12222
- name: gelf2
port: 12223
im using graylog locally & i have multiple inputs but one graylog node down then not getting logs im using nginx load balancing for graylog UI any option for loadbalancing for inputs
You can LB inputs via Nginx, example below
stream {
upstream graylog_beats {
server 192.168.4.100:5044 max_fails=3 fail_timeout=30s;
server 192.168.4.101:5044 max_fails=3 fail_timeout=30s;
server 192.168.4.102:5044 max_fails=3 fail_timeout=30s;
}
server {
listen 5044;
proxy_pass graylog_beats;
proxy_timeout 1s;
error_log /var/log/nginx/graylog_beats.log;
}
}