I have a central server and when I need to do a batch task I launch a number of AWS instances simultaneously. During startup they call git pull (master is the central server) to get their version of the codebase up to head, so I often have 20 (or many more) pull requests at once.
Recently the delta between the instance's starting image and head has become fairly large, and now a large percentage of the instances will have the pull fail with:
ssh_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.
I can alleviate the issue by staggering the launching of the instances and keeping their image closer to head, but I would like to solve this issue for good - any ideas?