Ad Widget

Collapse

Zabbix UI Load Balancer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • eduwutzl
    Senior Member
    Zabbix Certified Specialist
    • Jul 2010
    • 314

    #1

    Zabbix UI Load Balancer

    Hello,

    I am with my zabbix frontend (are 3) and today I do loadbalancer with IP_HASH method, which makes my sticky connection on the servers.

    My desire is to change the method for loadbalancer round-robin but when I do this map editing is with a really strange behavior.

    Well, I shared the /var/www/html/ between my servers thinking that this would solve the problem but not solved.

    Does anyone have any idea how to solve this?

    Eduardo Wutzl da Silva
    SRE Engenharia de Monitoração e Observabilidade
  • zalex_ua
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2009
    • 1286

    #2
    I'd take a look to "php shared session between servers" direction, although I'm not sure it could be related to your possible issues.

    Comment

    • jan.garaj
      Senior Member
      Zabbix Certified Specialist
      • Jan 2010
      • 506

      #3
      My experience is that you don't need to share session between servers -
      GKE 3 node cluster / 10 containers - https://www.youtube.com/watch?v=F2dBzuDy0Ns

      Zabbix sessions are saved in Zabbix DB (table sessions) = you don't need sticky sessions, IP_HASH, ... You can use round-robin balancing without any problem. Also you don't need to share /var/www/html/ between servers.

      Which version of Zabbix are you balancing and what is "a really strange behavior"?
      Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
      My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

      Comment

      • kloczek
        Senior Member
        • Jun 2006
        • 1771

        #4
        Before Putina more web frontends behind ŁBY it is good to do as much as it is possible to improve speed of single node. One of those improvements is install zend optimiser. It reduces CPU usage and DS/c by up to 10%.
        http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
        https://kloczek.wordpress.com/
        zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
        My zabbix templates https://github.com/kloczek/zabbix-templates

        Comment

        • eduwutzl
          Senior Member
          Zabbix Certified Specialist
          • Jul 2010
          • 314

          #5
          Hi,

          Well, the behavior is when I'm doing 'editing' map, my icons disappear when I'm using round-robin method.

          All the rest of the environment, functions normally, with the exception editing / creating maps.

          My version is 3.0.2, the frontends are actually docker containers and the balancer is a HAProxy.

          the frontend of the containers do not run apache, they are running nginx and this behavior only happens in this place (editing maps) using the round-robin method.

          With ip-hash operation is normal.

          I appreciate everyone's attention and await...

          Eduardo Wutzl da Silva
          SRE Engenharia de Monitoração e Observabilidade

          Comment

          • jan.garaj
            Senior Member
            Zabbix Certified Specialist
            • Jan 2010
            • 506

            #6
            Which Docker image are you using? I don't see why you have a problem with icons. Did you enable some caching?
            Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
            My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

            Comment

            • eduwutzl
              Senior Member
              Zabbix Certified Specialist
              • Jul 2010
              • 314

              #7
              Image was myself I wrote.
              Yes, I have a reverse proxy in front.
              I'll turn off some caches to do a test ..... post here the result.

              Eduardo Wutzl da Silva
              SRE Engenharia de Monitoração e Observabilidade

              Comment

              • eduwutzl
                Senior Member
                Zabbix Certified Specialist
                • Jul 2010
                • 314

                #8
                Still not solved .. but did the following test to see if it becomes clearer to understand this problem.

                I pulled out a print and also realized that the url of map background image is


                If I open in another tab and give it some F5 several times and gets the image icon not found.




                NGINX BALANCER CONFIGURATION FILE:

                Code:
                upstream zabbix.domain.com {
                
                         server 104.131.144.23:8080;
                         server 104.131.144.23:8081;
                         server 104.131.144.23:8082;
                         server 104.131.144.23:8085;
                         server 104.131.144.23:8086;
                         server 104.131.144.23:8087;
                 }
                
                server {
                     listen 80;
                     server_name zabbix.domain.com;
                     location / {
                
                     proxy_pass [url]http://zabbix.domain.com;[/url]
                     proxy_set_header Host $host;
                     proxy_set_header X-Real-IP $remote_addr;
                     proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                     proxy_set_header X-Forwarded-Proto $scheme;
                     }
                }
                Last edited by eduwutzl; 17-05-2016, 18:52.

                Eduardo Wutzl da Silva
                SRE Engenharia de Monitoração e Observabilidade

                Comment

                • jan.garaj
                  Senior Member
                  Zabbix Certified Specialist
                  • Jan 2010
                  • 506

                  #9
                  It's time to check your web backend logs. Which backend is able and which one is not able to server your map?
                  Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
                  My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

                  Comment

                  Working...