Skip to content

strange "Error. No more retries." problem #5914

Description

@esmq2092

the origin server has round-robin DNS entries which resolve to 4 ip addresses,

i have the following settings
connect_attempts_rr_retries set to 1
connect_attempts_max_retries set to 4

when 3 ips goes down,there is a small chance that ats will return 502,

turn on debug log, it says

[handle_response_from_server] Error. No more retries.

but actually ats only try 2 or 3 of ips, no all of the origins.

the following debug shows that ats only try 3 ips, why not try the fourth?


[Sep 6 16:20:15.803] Server {0x2afd53046700} DEBUG: (http) [196] open connection to test.xx.example.com.cats.foobar.com: 22.33.4.147:80
[Sep 6 16:20:15.803] Server {0x2afd53046700} DEBUG: (http) calling netProcessor.connect_re
[Sep 6 16:20:15.803] Server {0x2afd53046700} DEBUG: (http_ss) [196] max number of connections: 6000
[Sep 6 16:20:15.803] Server {0x2afd53046700} DEBUG: (http_ss) [167] new connection, ip: 22.33.4.147:80, count: 1
[Sep 6 16:20:26.216] Server {0x2afd53046700} DEBUG: (http_ss) [167] connection closed, ip: 22.33.4.147:80, count: 0
[Sep 6 16:20:26.216] Server {0x2afd53046700} DEBUG: (http_trans) [196] [0] failed to connect to 22.33.4.147
[Sep 6 16:20:26.216] Server {0x2afd53046700} DEBUG: (http) [196] open connection to test.xx.example.com.cats.foobar.com: 55.66.158.21:80
[Sep 6 16:20:26.216] Server {0x2afd53046700} DEBUG: (http) calling netProcessor.connect_re
[Sep 6 16:20:26.217] Server {0x2afd53046700} DEBUG: (http_ss) [196] max number of connections: 6000
[Sep 6 16:20:26.217] Server {0x2afd53046700} DEBUG: (http_ss) [169] new connection, ip: 55.66.158.21:80, count: 1
[Sep 6 16:20:37.213] Server {0x2afd53046700} DEBUG: (http_ss) [169] connection closed, ip: 55.66.158.21:80, count: 0
[Sep 6 16:20:37.213] Server {0x2afd53046700} DEBUG: (http_trans) [196] [1] failed to connect to 55.66.158.21
[Sep 6 16:20:37.213] Server {0x2afd53046700} DEBUG: (http) [196] open connection to test.xx.example.com.cats.foobar.com: 55.66.158.20:80
[Sep 6 16:20:37.213] Server {0x2afd53046700} DEBUG: (http) calling netProcessor.connect_re
[Sep 6 16:20:37.214] Server {0x2afd53046700} DEBUG: (http_ss) [196] max number of connections: 6000
[Sep 6 16:20:37.214] Server {0x2afd53046700} DEBUG: (http_ss) [171] new connection, ip: 55.66.158.20:80, count: 1
[Sep 6 16:20:48.202] Server {0x2afd53046700} DEBUG: (http_ss) [171] connection closed, ip: 55.66.158.20:80, count: 0
[Sep 6 16:20:48.202] Server {0x2afd53046700} DEBUG: (http_trans) [196] [handle_response_from_server] Error. No more retries.
[Sep 6 16:20:48.202] Server {0x2afd53046700} DEBUG: (http_trans) [196] [handle_server_connection_not_open] (hscno)
[Sep 6 16:20:48.202] Server {0x2afd53046700} DEBUG: (http_seq) [196] [HttpTransact::handle_server_connection_not_open]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions