Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.
This repository was 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

Description

@rvencu

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions