Chi-Hsuan Huang created HDDS-17941:
--------------------------------------
Summary: Reduce AWS CLI profile setup overhead in STS acceptance
test
Key: HDDS-17941
URL: https://issues.apache.org/jira/browse/HDDS-17941
Project: Apache Ozone
Issue Type: Sub-task
Components: test
Reporter: Chi-Hsuan Huang
{{ozonesecure-ha/test-sts.sh}} is the longest acceptance split, about 31
minutes in master run
[45578002080|https://github.com/apache/ozone/actions/runs/45578002080].
Most of the time is spent configuring AWS CLI profiles. Each {{Configure AWS
Profile}} call in {{ozone-secure-sts.resource}} runs {{aws configure set}} 4 or
5 times. The STS tests switch profiles more than 300 times, so the robot output
of that run has:
||Command||Calls||Total time||
|{{aws configure set}}|1912|851s|
|{{aws s3api}}|574|363s|
|{{aws sts}}|216|128s|
Total test time is 1479s, so {{aws configure set}} takes 58% of it.
Each call is slow because of AWS CLI startup (about 0.3-0.4s), not the setting
itself: {{aws --version}} takes as long as {{aws configure set}}.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]