Attempting to resolve an issue with an upstream AMI having a low max-open ulimit.
I'm able to fill in the limits files, and if I manually disconnect/reconnect the slave, the new limit applies.
I can also put the ulimit changes into cloud-init, but master connects before cloud-init finishes.
The only thing in cloud-init is write a ulimit file. Not sure how to make it any "faster".
#!/bin/sh echo 'ec2-user hard nofile 65535' > /etc/security/limits.d/20-jenkins-maxfiles.conf
#!/bin/bash echo Cloud-init status: cloud-init status echo Setting max-open soft to hard limit. ulimit -S -n hard echo Current limits: ulimit -a
Is there a way to trigger a disconnect/reconnect in ec2-plugin's "Init script" or delay connection to allow cloud-init to finish?