nginx development guide
vl at nginx.com
Wed Jun 7 16:42:06 UTC 2017
07.06.2017 17:00, 胡聪 (hucc) пишет:
> There are two possible errors in
>> init(r, us) — initializes per-request ngx_http_upstream_peer_t.peer (not to be confused with the
>> ngx_http_upstream_srv_conf_t.peer described above which is per-upstream) structure that is used
>> for load balancing. It will be passed as data argument to all callbacks that deal with server selection.
> Maybe is "initializes some fields (data, get, free, etc.) of per-request ngx_http_upstream_t.peer (...) "
this details are described below in the text
>> When nginx has to pass a request to another host for processing, it uses a configured load balancing method
>> to obtain an address to connect to. The method is taken from the ngx_http_upstream_peer_t.peer object of
>> type ngx_peer_connection_t:
> It should be "The method is taken from the ngx_http_upstream_t.peer object of type ngx_peer_connection_t:"
More information about the nginx-devel