rabbah commented on a change in pull request #3199: One tid for the whole 
system.
URL: 
https://github.com/apache/incubator-openwhisk/pull/3199#discussion_r182921119
 
 

 ##########
 File path: ansible/roles/nginx/templates/nginx.conf.j2
 ##########
 @@ -12,10 +12,17 @@ http {
 {# allow large uploads, need to thread proper limit into here #}
     client_max_body_size 50M;
 
+    map $http_{{ transaction.header | lower | replace('-', '_') }} $ow_tid {
+        # request_id: unique request identifier generated from 16 random 
bytes, in hexadecimal
+        default $request_id;
+        # If the caller has already set a tid into the header in the correct 
format, this one will be taken.
+        "~^(?<tid>{{ transaction.regex }})$" $tid;
 
 Review comment:
   The tid is used in the cache logic - if the id isn’t unique (specified by a 
user, it will affect the cache behavior). 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to