• 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.
  • M
    maverick_slo
    last edited by maverick_slo Apr 26, 2024, 5:27 PM Apr 26, 2024, 5:22 PM

    Hi.

    After I upgraded to pfsense plus 24.03-RELEASE (amd64) I have problems with HAPROXY.
    After some random time it just starts to use 100% CPU even though there are virtuallly NO requests and no traffic at all...
    In previous versions this did not happen.
    Haprox is 2.9.1 can you please upgrade to latest binary which will probably solve the issue?

    Bug:
    https://github.com/replicatedhq/ekco/pull/214

    Workaround:
    https://github.com/haproxy/haproxy/issues/2402#issuecomment-1875104101

    login-to-view

    Thanks!

    D 1 Reply Last reply May 3, 2024, 2:11 PM Reply Quote 3
    • D
      DaniloZ Administrator @maverick_slo
      last edited by stephenw10 Jun 6, 2024, 3:35 PM May 3, 2024, 2:11 PM

      @maverick_slo

      I have submitted a bug report. Thank you!

      https://redmine.pfsense.org/issues/15457

      M 1 Reply Last reply May 28, 2024, 3:33 PM Reply Quote 1
      • M
        maverick_slo
        last edited by May 13, 2024, 12:06 PM

        Anyone?

        Is updating binary really so hard?

        1 Reply Last reply Reply Quote 0
        • M
          maverick_slo @DaniloZ
          last edited by May 28, 2024, 3:33 PM

          Can someone pretty please update binary to latest?
          There are many things fixed in latest version.

          1 Reply Last reply Reply Quote 0
          • R
            rootbg
            last edited by May 29, 2024, 2:34 PM

            Hi,

            I'm having the same problem like @maverick_slo after the latest pfSense upgrade I have 100% CPU from haproxy after working couple of days. @DaniloZ is there any news about this issue?

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

              Pleeease? :)

              1 Reply Last reply Reply Quote 0
              • C
                coreybrett
                last edited by Jun 5, 2024, 7:19 PM

                I have this issue also. Is there a work-around ?

                M 1 Reply Last reply Jun 6, 2024, 2:34 PM Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Jun 6, 2024, 2:29 PM

                  Looks like we lost the screenshot from the first post.

                  Does this actually cause a kernel panic when you hit it or just uses all the available CPU time?

                  Steve

                  M L 2 Replies Last reply Jun 6, 2024, 2:33 PM Reply Quote 0
                  • M
                    maverick_slo @stephenw10
                    last edited by Jun 6, 2024, 2:33 PM

                    @stephenw10
                    Just cpu usage.
                    Updated versions resolve the issue
                    Also workaround is working and if applied cpu is ok.

                    1 Reply Last reply Reply Quote 0
                    • M
                      maverick_slo @coreybrett
                      last edited by Jun 6, 2024, 2:34 PM

                      @coreybrett
                      Come on dude, read a little it is in the first post I made.

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

                        Adding...

                        tune.disable-zero-copy-forwarding
                        

                        did not fix for me.

                        M 1 Reply Last reply Jun 6, 2024, 5:33 PM Reply Quote 0
                        • M
                          maverick_slo @coreybrett
                          last edited by maverick_slo Jun 6, 2024, 5:33 PM Jun 6, 2024, 5:33 PM

                          @coreybrett
                          Did you entered it in correct settings tab?

                          1 Reply Last reply Reply Quote 0
                          • C
                            coreybrett
                            last edited by Jun 6, 2024, 7:04 PM

                            login-to-view

                            login-to-view

                            1 Reply Last reply Reply Quote 0
                            • C
                              coreybrett
                              last edited by Jun 6, 2024, 7:07 PM

                              login-to-view

                              After a stop/start, the HAP process hit 100% and stops responding to inbound requests.

                              1 Reply Last reply Reply Quote 0
                              • L
                                Luca De Andreis @stephenw10
                                last edited by Jun 10, 2024, 4:43 AM

                                @stephenw10

                                I can confirm. in my case haproxy generates a kernel panic (occasionally). pfsense 24.03 is stable (more than 30 installations in my case) only with the use of haproxy do kernel panics occur. in this case I went back to the previous version.

                                Luca

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

                                  Do you also see the high CPU usage?

                                  L M 2 Replies Last reply Jun 10, 2024, 12:41 PM Reply Quote 0
                                  • L
                                    Luca De Andreis @stephenw10
                                    last edited by Jun 10, 2024, 12:41 PM

                                    @stephenw10

                                    We have two PfSense with HAProxy (dedicated) in 24.03, on the site with the most traffic (a while ago now), we noticed that the VM would reboot going the crash.
                                    Both VMs were experiencing abnormal CPU load (not 100%).
                                    On the third crash I rolled back to 23.09.1 and it has been working perfectly ever since.
                                    The site with less load at the HAProxy level (I left it only for testing in 24.03) never crashed but still has abnormal CPU load (30-40% without doing practically anything).
                                    The site in production with a fair number of accesses, stayed UP 3-5 days, then crashed. After downgrade to version 23.09.1.... perfect.

                                    All PfSense works in VM and we have about 30 of them, only those with HAProxy gave this problem with 24.03.

                                    Sergei_ShablovskyS 1 Reply Last reply Sep 9, 2024, 4:14 AM Reply Quote 1
                                    • M
                                      maverick_slo @stephenw10
                                      last edited by Jun 10, 2024, 5:32 PM

                                      @stephenw10 why are we discussing this when solution is crystal clear?
                                      Binary has to be updated, end of story.

                                      1 Reply Last reply Reply Quote 1
                                      • S
                                        stephenw10 Netgate Administrator
                                        last edited by Jun 10, 2024, 5:53 PM

                                        Yup, raised it internally. But trying to determine if the reported kernel panic is actually related.

                                        L 1 Reply Last reply Jun 10, 2024, 6:02 PM Reply Quote 2
                                        • L
                                          Luca De Andreis @stephenw10
                                          last edited by Jun 10, 2024, 6:02 PM

                                          @stephenw10

                                          For me, yes, it's related.

                                          In my case a PfSense 24.03 VM (with HA Proxy 2.9.1) crashed (and therefore auto rebooted) every 3-5 days.
                                          With a usage load... typical of a reverse proxy in production.

                                          The same VM but with almost no workload, it never crashed apart from an anomalous CPU load.

                                          In my opinion yes, the events are correlated, but only when the reverse proxy is used above a certain threshold.

                                          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.

                                          Sergei_ShablovskyS 1 Reply Last reply Sep 9, 2024, 4:31 AM Reply Quote 0
                                          • First post
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.