The error you are getting is not throttling. Throttling would throw a ThrottlingException or Rate Exceeded error not connect timeout. Connect timeout seems network related, Are you using any proxy server or bastion to connect to the SSM endpoint which might be getting overloaded. This also explains why issue only occurs on home network because if it were throttling the ECS tasks would experience the same
Even though I don't believe the issue is throttling you should be doing both the things you have tried to avoid throttling issues in future.
Reducing the number of calls - I additionally evaluate which parameters can be loaded once when the container starts as opposed to being loaded multiple time
Set the retry and backoff parameters which make sense for your application, eg how long do you want retries to occur both an error should be thrown
Relevant questions
How to Pass the version for SSM Parameter while creating on CloudFormation
asked 4 months agoHow to get the data/report of ssm installed in aws instances
Accepted Answerasked 5 months agoHybrid Instances using SSM VPC Endpoints
asked 2 years agoIntermittent ConnectTimeoutError accessing SSM
asked 16 days agoSSM agent failing on Fargate with ecs exec
asked 2 months agoAccessing files and CLI inside of container deployment in lightsail
Accepted Answerasked 3 months agoIs it possible to track reads of SSM Parameter?
asked 5 months agoAccessing Running Container on AWS to my local machine
asked a month agoCreating a SSM Composite Document that pulls Parameters from Parameter Store - AWS
asked a month agoAccessing Elastic Cache Redis from Celery in a docker-compose locally
asked 2 months ago
Thank you for the suggestions! To answer your questions:
The only options I see in the
retries
dictionary aremode
andmax_attempts
, nothing about backoff. Is there another place to configure that?I found this boto3 bug on GitHub that suggested
boto3.set_stream_logger('')
as a way to get verbose logging of what's happening with connections and retries, so I've added that into my application. It really is very verbose, so I'm hoping I don't have to leave it on very long, LOL!