tanvipenumudy opened a new pull request, #4433:
URL: https://github.com/apache/ozone/pull/4433

   ## What changes were proposed in this pull request?
   
   Due to the high cost of creating and initializing Mac instances, S3 token 
validation can be a bottleneck in OM latencies for S3 use cases.
   
   ```
   Mac mac = Mac.getInstance(HMAC_SHA256_ALGORITHM);
   mac.init(signingKey); 
   ```
   
   <img width="1711" alt="Screen Shot 2023-03-13 at 11 33 35 AM" 
src="https://user-images.githubusercontent.com/46785609/226329642-35954efd-7052-4ea6-b314-c5971aff51f5.png";>
   
   Caching Mac instances in ThreadLocal (as they are stateful) and reusing them 
eliminates the need to create and initialize these objects from scratch, 
mitigating the high cost of S3 token validation and significantly reducing 
overhead while improving overall performance.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-8154
   
   ## How was this patch tested?
   
   Existing UTs
   


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to