• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Haproxy 100% cpu usage

Cache/Proxy
7
47
4.4k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C
    coreybrett
    last edited by Jun 12, 2024, 3:12 PM

    I upgraded last night.

    Still having same issue.

    login-to-view

    M 1 Reply Last reply Jun 12, 2024, 3:15 PM Reply Quote 0
    • M
      maverick_slo @coreybrett
      last edited by maverick_slo Jun 12, 2024, 3:16 PM Jun 12, 2024, 3:15 PM

      @coreybrett you probably did not restart service after upgrade.
      Please restart service so that new binary can be run...

      C 1 Reply Last reply Jun 12, 2024, 9:02 PM Reply Quote 1
      • C
        coreybrett @maverick_slo
        last edited by Jun 12, 2024, 9:02 PM

        @maverick_slo I am pretty sure I rebooted after running the package update
        will do so again and check it in the morning

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Jun 12, 2024, 9:11 PM

          You should see it in the stats page:

          HAProxy version 2.9.7-5742051, released 2024/04/05
          Statistics Report for pid 81592
          
          L 1 Reply Last reply Jun 13, 2024, 9:13 PM Reply Quote 0
          • L
            Luca De Andreis @stephenw10
            last edited by Jun 13, 2024, 9:13 PM

            @stephenw10

            I can confirm that after this uptime:
            login-to-view

            HAProxy on a normal production load and without workaround applied... works fine:

            login-to-view

            1 Reply Last reply Reply Quote 1
            • C
              coreybrett
              last edited by Jun 23, 2024, 2:18 PM

              Still having trouble with this.

              login-to-view

              Shell Output - /usr/local/sbin/haproxy -v
              HAProxy version 2.9.7-5742051 2024/04/05 - https://haproxy.org/
              Status: stable branch - will stop receiving fixes around Q1 2025.
              Known bugs: http://www.haproxy.org/bugs/bugs-2.9.7.html
              Running on: FreeBSD 15.0-CURRENT FreeBSD 15.0-CURRENT #0 plus-RELENG_24_03-n256311-e71f834dd81: Fri Apr 19 00:28:14 UTC 2024     root@freebsd:/var/jenkins/workspac
              
              L S 2 Replies Last reply Jun 23, 2024, 3:20 PM Reply Quote 0
              • L
                Luca De Andreis @coreybrett
                last edited by Jun 23, 2024, 3:20 PM

                @coreybrett

                strange, for me, on a production system, it works perfectly

                login-to-view

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator @coreybrett
                  last edited by Jun 23, 2024, 3:34 PM

                  @coreybrett said in Haproxy 100% cpu usage:

                  Still having trouble with this.

                  Are you still seeing panics too?

                  L 1 Reply Last reply Jun 23, 2024, 3:37 PM Reply Quote 0
                  • L
                    Luca De Andreis @stephenw10
                    last edited by Jun 23, 2024, 3:37 PM

                    @stephenw10

                    For me the system is absolutely stable, while with HAProxy 2.9.1, it rebooted after 1-2 days of uptime

                    1 Reply Last reply Reply Quote 0
                    • C
                      coreybrett
                      last edited by Jun 23, 2024, 3:50 PM

                      @stephenw10 said in Haproxy 100% cpu usage:

                      panics

                      No panics for me, but it stops serving content and sites go down

                      S 1 Reply Last reply Jun 23, 2024, 4:09 PM Reply Quote 0
                      • S
                        stephenw10 Netgate Administrator @coreybrett
                        last edited by Jun 23, 2024, 4:09 PM

                        @coreybrett said in Haproxy 100% cpu usage:

                        No panics for me

                        Was it panicking in 2.9.1?

                        C L 2 Replies Last reply Jun 23, 2024, 4:10 PM Reply Quote 0
                        • C
                          coreybrett @stephenw10
                          last edited by Jun 23, 2024, 4:10 PM

                          @stephenw10 no, that was never an issue for me

                          C 1 Reply Last reply Jun 23, 2024, 4:11 PM Reply Quote 0
                          • C
                            coreybrett @coreybrett
                            last edited by Jun 23, 2024, 4:11 PM

                            these sites have very little traffic, but they service web hooks that must work when called

                            L 1 Reply Last reply Jun 24, 2024, 7:49 AM Reply Quote 0
                            • L
                              Luca De Andreis @coreybrett
                              last edited by Jun 24, 2024, 7:49 AM

                              @coreybrett

                              Before upgrading HAProxy, then using version 2.9.1, I had problems with instability, PfSense reboots and high CPU load on the system in production (higher network load).
                              On an identical system, but at low load I had only CPU "waste" but no system instability.
                              In my opinion, with version 2.9.1 of HAProxy the crashing problem occurs only if a certain system load is exceeded.
                              With 2.9.7 everything was ok after 11 days of uptime.

                              1 Reply Last reply Reply Quote 0
                              • L
                                Luca De Andreis @stephenw10
                                last edited by Jul 2, 2024, 7:40 AM

                                @stephenw10

                                Hi !

                                This morning my PfSense plus on 24.03 and HAProxy crash.
                                dump.tar.gz

                                1 Reply Last reply Reply Quote 0
                                • S
                                  stephenw10 Netgate Administrator
                                  last edited by Jul 2, 2024, 12:14 PM

                                  Hmm, disappointing. Looks like exactly the same crash.

                                  You didn't see the high CPU loading before it panicked?

                                  L 1 Reply Last reply Jul 2, 2024, 1:05 PM Reply Quote 0
                                  • L
                                    Luca De Andreis @stephenw10
                                    last edited by Jul 2, 2024, 1:05 PM

                                    @stephenw10

                                    No, low or very low rate (on HAProxy 2.9.7) abnormal high CPU usage on 2.9.1
                                    Just a note, PfSense plus run on a VM on more than 40 firewalls, only PfSense using HAProxy has this behavior.

                                    1 Reply Last reply Reply Quote 1
                                    • C
                                      coreybrett
                                      last edited by Sep 1, 2024, 9:56 PM

                                      I was not able to use more that one backend server. With only one backend, it would run without any issues, but if I had more that one backend, it wouldn't last 24 hours before it consumed 100% of CPU and stopped accepting new connections.

                                      The HAP logs did not reveal anything. However, I was looking thru the system logs and noticed that one of my WAN interfaces was glitching, and that coincided with HAP locking up.

                                      The WAN interface was not really necessary (it had a static IP and was connected to a Cradlepoint cellular modem), so I just disabled it to see what would happen. This interface was not used by the HAP config at all. HAP has been solid since and is working fine with my full config that has 4 backends. This also fixed another issue I had with "loading the rules: pfctl: DIOCADDRULENV" errors.

                                      Sergei_ShablovskyS 1 Reply Last reply Sep 9, 2024, 5:16 AM Reply Quote 1
                                      • Sergei_ShablovskyS
                                        Sergei_Shablovsky @Luca De Andreis
                                        last edited by Sergei_Shablovsky Sep 9, 2024, 6:17 AM Sep 9, 2024, 4:14 AM

                                        @Luca-De-Andreis said in Haproxy 100% cpu usage:

                                        @stephenw10
                                        The site in production with a fair number of accesses, stayed UP 3-5 days, then crashed.

                                        ????
                                        That’s VERY BAD idea to MAKE FRESH UPDATE ON A PRODUCTION node!!!

                                        Who stop You to keep balancer (the same HAproxy, for example, or claster of HAproxy’s behind pairs master-slave/slave-slave LVS) above Your’s 30 of pfSenses to having the ability of flawlessly redirect a part of whole traffic on a node which You need to test on a real loading after fresh update ?

                                        Sketch of this structure are on a picture below:

                                        login-to-view

                                        (You may change “Mobile Frontend” on a “pfSense” name, but the sense of structure would be the same: You have HA and balancing above set of Your pfSense’s nodes.)

                                        Or may be this topic also would be helpful for You in building infrastructure.

                                        If You so serious in business and having 30+ firewalls, creating whole architecture to be able flawlessly pull out/put in nodes (for updates, hardware maintenance and upgrades) - only one way not to having headaches.

                                        All PfSense works in VM and we have about 30 of them,

                                        I strongly suggest not to using pfSense on VM on HighLoad in production, and ALWAYS USING BARE METAL servers (no matter this would be Netgate hardware or DIY server from IBM, Dell, Fujitsu, SuperMicro,…), even You have fast-and-costly NICs like Mellanox, Intel…

                                        Using pfSense on VM You make step on a way with a lot of different troubles. Part of them You receive at start, and most of them You achieve only after Your business are in the middle of the way and changing the infrastructure are so much costly (if possible at all).

                                        —
                                        CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                        Help Ukraine to resist, save civilians people’s lives !
                                        (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                                        1 Reply Last reply Reply Quote 0
                                        • Sergei_ShablovskyS
                                          Sergei_Shablovsky @Luca De Andreis
                                          last edited by Sep 9, 2024, 4:31 AM

                                          @Luca-De-Andreis said in Haproxy 100% cpu usage:

                                          @stephenw10

                                          In this regard I had also opened a ticket via "professional" support, which was closed with the response... "HAProxy is a third-party package, its update is managed in best effort" .... closed.

                                          Hm. VERY BAD PAID SUPPORT BEHAVIOR at all!!

                                          Just copy Apple’s strategy: even we are not a developer of this certain software/hardware ANYWAY WE TRY TO SOLVE CUSTOMER’S PROBLEM !

                                          —
                                          CLOSE SKY FOR UKRAINE https://youtu.be/_tU1i8VAdCo !
                                          Help Ukraine to resist, save civilians people’s lives !
                                          (Take an active part in public protests, push on Your country’s politics, congressmans, mass media, leaders of opinion.)

                                          1 Reply Last reply Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.