Details
-
Improvement
-
Resolution: Fixed
-
Major
-
6.5.1, Cheshire-Cat
-
None
-
1
Description
Indexer has multiple components that query various ns_server endpoints. When such a query from indexer happens, ns_server would log it in ns_server.http_access_internal.log. Below is the format:
127.0.0.1 - @index-cbauth [04/May/2020:05:39:18 -0700] "GET /pools/default/buckets/other-3/collections HTTP/1.1" 200 98 - "Go-http-client/1.1" 1 |
The format of this message is:
Node IP - User_of_the_request [Timestamp] "Request path" Response_status Size_of_response Referer User-agent Response_time |
Currently, the User_agent value mentions "Go-http-client/1.1" which does not convey any valuable information. Instead, each request from indexer can set the appropriate name of the client as User_agent i.e. RetrievePlanFromCluster can set User-agent as "RetrievePlanFromCluster" and it would get logged as below:
127.0.0.1 - @index-cbauth [04/May/2020:05:39:18 -0700] "GET /pools/default/buckets/other-3/collections HTTP/1.1" 200 98 - "RetrievePlanFromCluster" 1 |
This would help us to associate a request with it's client facilitating easy debugging
Attachments
Issue Links
For Gerrit Dashboard: MB-39210 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
127399,6 | MB-39210 Set UserAgent in request headers to ns_server | unstable | indexing | Status: MERGED | +2 | +1 |
128736,2 | MB-39452 Set UserAgent in request headers to ns_server | mad-hatter | indexing | Status: MERGED | +2 | +1 |
142903,2 | MB-43517 Set UserAgent in request headers to ns_server | 6.5.2 | indexing | Status: MERGED | +2 | +1 |