haproxy | Development repository for the haproxy cookbook | Configuration Management library

 by   sous-chefs Ruby Version: 12.2.18 License: Apache-2.0

kandi X-RAY | haproxy Summary

kandi X-RAY | haproxy Summary

haproxy is a Ruby library typically used in Devops, Configuration Management, Chef applications. haproxy has no bugs, it has a Permissive License and it has low support. However haproxy has 9 vulnerabilities. You can download it from GitHub.

Installs and configures HAProxy.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              haproxy has a low active ecosystem.
              It has 153 star(s) with 252 fork(s). There are 38 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 3 open issues and 108 have been closed. On average issues are closed in 60 days. There are 1 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of haproxy is 12.2.18

            kandi-Quality Quality

              haproxy has no bugs reported.

            kandi-Security Security

              haproxy has 9 vulnerability issues reported (1 critical, 7 high, 1 medium, 0 low).

            kandi-License License

              haproxy is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              haproxy releases are available to install and integrate.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of haproxy
            Get all kandi verified functions for this library.

            haproxy Key Features

            No Key Features are available at this moment for haproxy.

            haproxy Examples and Code Snippets

            No Code Snippets are available at this moment for haproxy.

            Community Discussions

            QUESTION

            Can't parse haproxy logs without IP address in Grok using Filebeat
            Asked 2021-Jun-10 at 14:00

            Grok is parsing successfully when Haproxy gives a log - from var/log/haproxy.log - similar to:

            ...

            ANSWER

            Answered 2021-May-21 at 13:51

            I had a look at your pipeline grok patterns. Taking cue from that, I modified the IP section a bit.

            Source https://stackoverflow.com/questions/67635118

            QUESTION

            ingress with DMZ on on-premise infrastructure
            Asked 2021-Jun-09 at 23:29

            i have a question related to design and architecture needs instead of issue one, we have a kubernetes cluster which handle our production workload, we need to secure external traffic to this cluster so we have designed this approach :

            • make a worker node with ingress controller and without any workload
            • place this worker node in a DMZ zone in order to handle external traffic to our clusterIP services of our applications.

            is that a good idea for securing our workloads ?

            if we place an HAproxy in a DMZ zone (as a L4 just to load balance traffic to workers to be handled by ingress nginx for ex) it'll not give us an other level of security (protocol break)

            note that we don't have a WAF. Any ideas please??

            ...

            ANSWER

            Answered 2021-Jun-09 at 23:29

            Agree to use two dedicated nodes, for high availability, for external traffic entry point.

            I would use the haproxy ingress controller Announcing HAProxy Kubernetes Ingress Controller 1.6 with Evolving Kubernetes networking with the Gateway API

            Source https://stackoverflow.com/questions/67875295

            QUESTION

            Using kubernetes svc without select to access external redis server. How to ensure my pod hits master only?
            Asked 2021-Jun-09 at 11:14

            I am using Kubernetes services with custom endpoints to access external redis cluster.

            But I can't know which one is master and I want to ensure it only forward incoming connections to reach a master.

            Is there anything in Kubernetes I could use for checking nodes and to get master?

            This is piece of code from haproxy that does the job I need

            ...

            ANSWER

            Answered 2021-Jun-09 at 11:14

            If I understand correctly, you are looking for a native k8s solution to detect which of external redis nodes are master nodes and point traffic to them.

            My answer is: There is no way to do it natively.

            You need to use some custom solution (such as your haproxy) to achieve it.

            Source https://stackoverflow.com/questions/67898406

            QUESTION

            How can I retrieve the istio ingress gateway hosts for an HPE Ezmeral Container Platform managed cluster?
            Asked 2021-May-30 at 14:49

            I have configured a K8S cluster with istio-ingressgateway as per the docs.

            Although the HPE Container Platform managed haproxy gateway can route traffic to the istio-ingressgateway, I would like to access the host endpoints directly.

            How can I determine the ingress IP addresses and ports for the hosts avoiding the managed haproxy gateway?

            ...

            ANSWER

            Answered 2021-May-30 at 14:49

            This is how I found the information:

            Source https://stackoverflow.com/questions/67762517

            QUESTION

            How to configure HaProxy to balance read requests to all nodes of a PostgreSQL cluster?
            Asked 2021-May-19 at 18:38

            I have a PostgreSQL cluster on Patroni (Haproxy+Keepalived+etcd) - one primary node and two standby nodes.

            For now, Haproxy is configured in this way:

            • port 5000 to connect to the primary node
            • port 5001 to connect to the standby nodes

            How can I configure Haproxy so that the port 5001 is used to connect to the standby nodes as well as the primary node?

            This is my haproxy.cfg below:

            ...

            ANSWER

            Answered 2021-May-19 at 18:38

            In a patroni documentation I found the /health endpoint patroni rest-api:

            returns HTTP status code 200 only when PostgreSQL is up and running.

            I tried to use that endpoint in haproxy configuration, and it works like expected, patroni give all 3 nodes when all nodes alive, and don't give nodes that aren't in running state

            So, if you want to add all nodes to haproxy balance, create a new backend in haproxy.conf

            Source https://stackoverflow.com/questions/67209042

            QUESTION

            HAProxy Ingress Controller Service Changed IP on GCP
            Asked 2021-May-18 at 11:02

            I am using HAProxy as the ingress-controller in my GKE clusters. And exposing HAProxy service as LoadBalancer service(Internal).

            Recently, I experienced an issue, where the HA-Proxy service changed its EXTERNAL-IP, and traffic stopped routing to HAProxy. This issue occurred multiple times on different days(now it has stopped). I had to manually add that new External-IP to the frontend of that Loadbalancer to allow traffic to HAProxy.
            There were two pods running for HAProxy, and both had been running for days, and there was nothing in their logs. I assume it was something related to Service or GCP LB and not HAProxy itself.
            I am afraid that I don't have any logs related to that.

            I still don't know, what caused the service IP to change. As there were no recent changes, and the cluster and all services were running for many days properly, and suddenly this occurred.

            Has anyone faced a similar issue earlier? Or what can I do to avoid such issue in future?
            What could have caused the IP to change?

            This is how my service is configured:

            ...

            ANSWER

            Answered 2021-May-16 at 00:48

            Unfortunately without logs it's hard to say anything for sure. You should check the audit logs that GKE ships to Cloud Logging as that might give you some idea of what happened. One option is the GCP "oops"'d the GLB and GKE recreated it, thus giving it a new IP. I've never heard of that happening with LBs though (it happens pretty often with nodes, but not LBs). A more common case would be you ran some kubectl command that inadvertently removed the Service object and then it was recreated by some management layer you have set up (Argo, Flux, Helm Operator, whatever) but delete+recreate again means it's a new LB with a new IP. The latter case should be visible in the audit logs so check those out for sure.

            Source https://stackoverflow.com/questions/67551961

            QUESTION

            Openstack Octavia Error: WARNING octavia.amphorae.drivers.haproxy.rest_api_driver [-] Could not connect to instance
            Asked 2021-May-14 at 18:28

            I'm final student who research and implement Openstack Victoria. When I configure Project: Octavia - Loadbalancer on multi-node - CentOS8, I have a issue. Seem like octavia.amphorae.drivers.haproxy.rest_api_driver couldn't connect to Amphora instance and port 9443 didn't run on my Network Node aka Octavia-API. In controller node, the amphora instance still running nornally. I follow https://www.server-world.info/en/note?os=CentOS_8&p=openstack_victoria4&f=11 to configure my lab. This is my cfg file below, pls help me to figure out. Regards!

            I created lb_net in type vxlan and lb-secgroup, when i use command to create lb it still pending-create:

            ...

            ANSWER

            Answered 2021-May-14 at 18:28

            Okay, my problem is fixed. The Octavia-api node can't connect to amphorae-instance because they do not match the same network type (node - LAN and amphorae - VXLAN). So, I create a bridge interface at a node to convert vxlan for lan can connect (You can read here at step 7: create a network).

            Best regard!

            Source https://stackoverflow.com/questions/67406980

            QUESTION

            HAProxy - option forward for except a white-list of networks
            Asked 2021-May-13 at 04:07

            I would like to use the haproxy option forwardfor except network-here for multiple networks, not just a single one.

            I'm looking for something like

            ...

            ANSWER

            Answered 2021-May-13 at 04:07

            I ended up using a somewhat hacky solution, it was not my first choice but it works for my needs. In the haproxy config I am using an acl whitelist that contains all the ips that I do not wish to forwardfor. If the request comes from an ip that exists in the whitelist, haproxy will use a second backend that is identical to the first one, except that it does not forwardfor. I basically moved the forwardfor option to the backend portion instead of the frontend.

            so,

            Source https://stackoverflow.com/questions/66974789

            QUESTION

            If I open a TCP connection and don't send data, idle timeout seems to much longer, why?
            Asked 2021-May-10 at 18:35

            I have two servers, one serves HTTP and the other serves HTTPS.

            I opened a TCP connection to the HTTP server

            ...

            ANSWER

            Answered 2021-May-10 at 18:35

            It is not that unusual to have a fairly long timeout when waiting for a request to start. This is most useful to keep a TCP connection alive between requests to speed the response to subsequent requests. It makes sense to keep a TCP connection around in case you need it soon.

            It is, however, unusual to pause in the middle of a request. That is much more likely to indicate that the connection isn't working correctly. Why would the client start sending a request if they weren't going to send the entire request? Also, the server is using more resources because it has to store the portions of the request that have already been sent. So it makes sense to use a much shorter timeout here.

            In summary, in the case of a new TCP connection, you are getting the "wait for start of request" timeout, which it makes sense to make fairly long. In the case of a partial quest, you are getting the "stopped in the middle of a request" timeout, which it makes sense to keep fairly short.

            Source https://stackoverflow.com/questions/67472726

            QUESTION

            openstack-octavia: failed to create amphora disk-image
            Asked 2021-May-10 at 18:31

            I configure openstack victoria multi-node on CentOS8. When I create amphora-disk-image (option -r rootpassword), I have an issue:

            ...

            ANSWER

            Answered 2021-May-10 at 18:31

            I successfully created amphora-image with my option. I don't know what cause that issue, I just boot all openstack-multi node and let octavia-disk-image-create running until done. Regards !

            Source https://stackoverflow.com/questions/67450359

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install haproxy

            You can download it from GitHub.
            On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/sous-chefs/haproxy.git

          • CLI

            gh repo clone sous-chefs/haproxy

          • sshUrl

            git@github.com:sous-chefs/haproxy.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Consider Popular Configuration Management Libraries

            dotfiles

            by mathiasbynens

            consul

            by hashicorp

            viper

            by spf13

            eureka

            by Netflix

            confd

            by kelseyhightower

            Try Top Libraries by sous-chefs

            docker

            by sous-chefsRuby

            elasticsearch

            by sous-chefsRuby

            aws

            by sous-chefsRuby

            nginx

            by sous-chefsRuby

            rvm

            by sous-chefsRuby