Step To Configure HA (High Availability) For Grafana On Linux

Step To Configure HA (High Availability) For Grafana

Step To Configure HA (High Availability) is a group of the computer that ensures the availability of backup servers with no down-time. We can set up and configuration HA for the Grafana for database high availability as a load balancer. so

It can reduce the load on a single server which means lots of hits are coming on a single server to access any application, website, and other applications on the server. so

This will handle all the incoming traffic from the internet and then will distribute the traffic equally on the backend Grafana server. so

Check Out: Configure HaProxy Server Log In Rsyslog

We can reduce the load on a server by configuring HA to act as a load balancer. It can be configured using Nginx or HA Proxy Server. so

We’ve 3 servers for testing purposes.  so

a. HAProxy Server – 10.1.11.11 so

b. Application 1 IP – 10.1.11.12 so 

c. Application 2 IP – 10.1.11.13

There are two methods of Haproxy with the help of we can set up load balancing.

  1. Frontend
  2. Backend

Check Out: Install and Configure S3CMD Tool For Data Sync On S3 Bucket

Step 1: Install haproxy package

yum install haproxy* -y

Step 2: start and enable the service

systemctl start/enable haproxy

Step 3 : Configuration file location at /etc/haproxy/haproxy.conf

By Default, Grafana HTTP Port is 3000

Check Out: Error NOAUTH Authentication required while Accessing Redis

Step 4: Frontend Configuration For Haproxy

Put these line shown below

Frontend main
Bind :*80
Option http-server-close
Option forwarder
Default_backend app-main

Backend Configuration as Balance Algorithm 

Backend app-main
Balance roundrobin              # Algorithm method
server test1   10.1.11.12:80  check       # application 1
Server   test1     10.1.11.13:80  check     # application 2

Step 5: Now Restart the Service Again

systemctl restart haproxy

Go to the browser and type 10.1.11.11 and enter You will see Ha-proxy will take you on one of application available. You do not need to worry about which server you’re logged in.

You’re done. grafana configuration for database load balancer high availability ha 

Share on:

I'm the founder of Curious Viral. I hope this blog will provide you complete information about Linux Technology & I would like to share my technical knowledge with you which I have learned during this period.

Other Posts You May Like...

4 thoughts on “Step To Configure HA (High Availability) For Grafana On Linux”

    • Hi ,

      This is post about Grafana application. We have configure load balancer for this application

      thanks

      Reply
  1. I a getting this error
    If you’re seeing this Grafana has failed to load its application files

    1. This could be caused by your reverse proxy settings.

    2. If you host grafana under subpath make sure your grafana.ini root_url setting includes subpath

    3. If you have a local dev build make sure you build frontend using: yarn start, yarn start:hot, or yarn build

    4. Sometimes restarting grafana-server can help

    Reply

Leave a comment