-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
Description
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.