Skip to content

Add spec for load balancing #1

@etlweather

Description

@etlweather

One thing that I see missing in those spec is defining a load balancing cluster. For example, I would want to do something like this:

{
    "virtualhost": "webapp1.domain.tld",
    "proxy": {
        "protocol": "balancer://",
        "hostname": "webapp1-cluster",
        "alias": "/",
        "backend_alias": "/"
    }
}
{
   "balancer": "webapp1-cluster",
   "members": [
               {
                "protocol": "http://",
                "hostname": "member1",
                "port": "8080",
                "route": "member1",
                "loadfactor": "50",
               }
              ]
}

In Apache HTTPD, this would translated into:

<VirtualHost *:80>
   ServerName webapp1.domain.tld

   ProxyPass / balancer://webapp1-cluster/ stickysession=JSSESSIONID|JSESSIONIDSSO
   ProxyPassReverse / balancer://webapp1-cluster/ stickysession=JSSESSIONID|JSESSIONIDSSO

   <Proxy balancer://webapp1-cluster >
      BalancerMember http://member1:8080
   </Proxy>
</VirtualHost>

I forked the httpd-cfg project - I am looking at spending some time to add the above and I think it could be a nice addition to your projects so I could send you a pull-request instead of just keeping it in my fork. But there would need to be a formalized spec I guess.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions