Skip to content
This repository has been archived by the owner on Mar 13, 2023. It is now read-only.

Cost-tags.sh script does not treat aws tagging API throttling #299

Open
rvencu opened this issue Sep 14, 2022 · 0 comments
Open

Cost-tags.sh script does not treat aws tagging API throttling #299

rvencu opened this issue Sep 14, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@rvencu
Copy link

rvencu commented Sep 14, 2022

I noticed that when we launch large jobs (like 100 nodes) not all instances are getting tagged by the tagging script perhaps because of the throttling on the AWS API endpoint.

I suggest spreading the tagging for a short interval instead (maybe randomize within 2 minutes timeframe) such as

...
if [ ${update} -eq 1 ]; then
sleep $(( $RANDOM % 120 + 1 ))
# Instance ID
...
@tmscarla tmscarla added the bug Something isn't working label Sep 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants