Hi Jochen,
I would try to override the git wrapper script and use trickle to limit
bandwith.
namspace :my
desc 'Upload the custom git wrapper script'
task :wrapper do
on release_roles :all do
upload! StringIO.new("#!/bin/sh -e\nexec /usr/bin/trickle -u 100
/usr/bin/ssh -o PasswordAuthentication=no -o StrictHostKeyChecking=no \"$@
\"\n"), "#{fetch(:tmp_dir)}/#{fetch(:application)}/git-ssh.sh"
execute :chmod, "+x", "#{fetch(:tmp_dir)}/#{fetch(:application)}
/git-ssh.sh"
end
end
end
after 'git:wrapper', 'my:wrapper'
I think this can work.
regards
dieter
Am Montag, 26. Mai 2014 15:38:49 UTC+2 schrieb Jochen Billen:
>
> Hi Michael
>
> Thanks for the feedback.
>
> I'm afraid that putting in a random sleep will not give the level of
> control I'm looking for. So I'm going to try the fork-approach as suggested
> by Lee in the above post.
>
> Best Regards
> Jochen Billen
>
> Op woensdag 21 mei 2014 14:39:07 UTC+2 schreef Michael Richardson:
>>
>>
>> Jochen Billen <[email protected]> wrote:
>> > I'm looking into Capistrano (v3) to deploy an PHP application to
>> 100+
>> > servers and I'm am concerned that running the 'git update' and
>> > 'composer install' task will put to much strain on the
>> infrastructure
>> > (git server, SAN environment and network)
>>
>> You could also add a command to the process which basically just does
>> sleep $(RANDOM)
>>
>> One thing that I have also done to reduce stress (particularly against
>> github.com), is to take one of the checked out trees, move it, merge the
>> .git/objects directories together, and then add a --reference to that.
>> Not only does it speed things up, but it can significantly reduce the
>> disk
>> space requirement.
>>
>> --
>> ] Never tell me the odds! | ipv6 mesh
>> networks [
>> ] Michael Richardson, Sandelman Software Works | network
>> architect [
>> ] [email protected] http://www.sandelman.ca/ | ruby on
>> rails [
>>
>>
>>
--
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/capistrano/0e907cef-f150-4908-bffc-fc6b1b9d122d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.