Open raghu999 opened 5 years ago
@raghu999 How is the mobile_10166
backend defined?
@paambaati Below are the labels we give to mobile application.
"labels": {
"HAPROXY_0_REDIRECT_TO_HTTPS_WITH_PATH": "true,/mobile",
"HAPROXY_0_REDIRECT_TO_HTTPS": "true",
"HAPROXY_GROUP": "external",
"HAPROXY_0_PORT": "10166",
"HAPROXY_0_PATH": "-i /mobile",
"HAPROXY_0_BACKEND_REDIRECT_HTTP_TO_HTTPS_WITH_PATH": " redirect scheme https code 301 if path_{backend} \n",
"HAPROXY_0_VHOST": "mobile-useast.example.net",
"HAPROXY_0_HTTPS_FRONTEND_ACL_ONLY_WITH_PATH": " acl path_{backend} path_beg {path}\n use_backend {backend} if path_{backend}\n"
}```
Hi We want to use
nbsrv
for few apps to failover the haproxy , We tried adding via label"HAPROXY_0_FRONTEND_HEAD": " \nfrontend {backend}\n acl mobile_fail nbsrv(backend) lt 1/n monitor fail if mobile_fail/n”,
But once we stop the application the acl is also getting removed from the haproxy config(I think this is working as designed) which will not work for our usecase.As we do not want the config to be removed after the app is suspended (or) destroyed we added the same rule in the globalconfig using
HAPROXY_HTTPS_FRONTEND_HEAD
template.The template is working as expected and getting reflected in the haproxy config, But once we stop the mobile app marathon-lb stops working with the following error and is failing to reload the configs for other applications.
Can someone please help us here to understand if this feature is supported by marathon-lb.