Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework haproxy config for stickiness and balance strategy #179

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Commits on Feb 8, 2017

  1. Revert "Fix SSL setup for haproxy 1.4 release"

    We have haproxy 1.5.x now, so we can use persistence for SSL sessions.
    This matters as if we want to allow people to not use "source" as
    balance algorithm, then we need to make sure that sessions keep going to
    the same backend to avoid breakages.
    
    This reverts commit 32323b0.
    vuntz committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    8cf8ddb View commit details
    Browse the repository at this point in the history
  2. haproxy: Do not enforce mode as tcp for ssl twice

    This is done in the LWRP and in the template; let's just do it in the
    LWRP to simplify the template.
    vuntz committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    560b110 View commit details
    Browse the repository at this point in the history
  3. haproxy: Add ability to configure stickiness based on cookies

    This is useful to achieve persistence for web apps which have a session,
    which is important in order to allow using a different algorithm than
    "source" for balancing without breaking sessions.
    vuntz committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    5420a3e View commit details
    Browse the repository at this point in the history
  4. haproxy: Add ability to do stickiness based on more than one cookie

    This allows achieving persistence for a normal session, but also for the
    login form where there's usually a CSRF token (and which is not
    associated to a real session in the web app).
    vuntz committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    1805935 View commit details
    Browse the repository at this point in the history
  5. haproxy: Add balance attribute to haproxy_loadbalancer resource

    This enables customization of the balance strategy for each service.
    vuntz committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    10ee491 View commit details
    Browse the repository at this point in the history
  6. crowbar-pacemaker: Stop changing default haproxy balance strategy

    The default in the haproxy cookbook is roundrobin, and this should
    actually work fine. In cases where this may be troublesome (like web
    apps), we can now configure stickiness to avoid issues.
    
    With roundrobin, we spread the load accross the various backends, which
    results in much improved performance.
    vuntz committed Feb 8, 2017
    Configuration menu
    Copy the full SHA
    d714d87 View commit details
    Browse the repository at this point in the history