On my local machine (macOS), I ssh into an ec2 instance. Inside the ec2 instance, I am running a python script that uses boto3 to send data to kinesis.
https://gist.github.com/nhammad/1950d68434d754413a798e5a8d1c9f80
When I run the command for a shorter period of time, it works fine. However, it desn't run for more than 2 hours.
python3 poster.py --region eu-central-1 --poster_count 400 --poster_time 14400 --quiet load_testing
After almost 2 hours, it gives this error:
client_loop: send disconnect: Broken pipe
I tried to open my ssh config file within the ec2 terminal and I already have these settings:
nano ~/.ssh/config
Host *
ServerAliveInterval 18000
ServerAliveCountMax 1200
I have the same settings outside the ec2 termainl (in my local ssh config file).
What else can I try in order to run it for more than 2 hours?
Could the size of my Ec2 instance be affecting this?