jmoleiro opened a new issue #8634: URL: https://github.com/apache/trafficserver/issues/8634
HI! I've setup a reverse proxy with the idea of serving from one server and fallback to the seccondary server if the primary goes down. On the *remap.config* file i added this rule ``` map http://myserver.com:80 http://server1.myserver.com:80 @strategy='primary-fallback' ``` and on the *strategies.yml* file i've defined these rules ```yaml groups: - &g1 - host: server1.myserver.com protocol: - scheme: http port: 80 health_check_url: http://server1.myserver.com:80 - scheme: https port: 443 health_check_url: https://server1.myserver.com:443 weight: 0.5 - host: server2.myserver.com protocol: - scheme: http port: 80 health_check_url: http://server2.myserver.com:80 - scheme: https port: 443 health_check_url: https://server2.myserver.com:443 weight: 0.5 strategies: - strategy: 'primary-fallback' policy: latched hash_key: cache_key go_direct: false parent_is_proxy: false groups: - *g1 scheme http failover: ring_mode: exhaust_ring response_codes: - 401 - 403 - 404 - 500 - 501 - 503 health_check: - passive ``` When i test, and stop then httpd service on the Server 1, instead of routing to server 2, y get this error ### Could Not Connect Description: Could not connect to the requested server host. Apparently, it's ignoring the strategies.yaml. i've checked the diags.log and both strateges.yaml and remap.config loads correctly wthout error. Any idea on what is wrong with this configuration? I'm using ATS 9.1.1 compiled from source on Ubuntu 20.04 Thanks J -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
