Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Commit

Permalink
better defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody committed Jun 14, 2016
1 parent da32d66 commit f8d1215
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -107,6 +107,7 @@ Host *.gdistcc
Ciphers aes256-gcm@openssh.com
StrictHostKeyChecking no
UserKnownHostsFile=/dev/null
LogLevel QUIET
```
NOTE: In some cases I've found the ControlMaster mux to be unreliable with multiple streams of simulantious file transfer, but when using g1-small instances doing a single build I'm hoping this will work and greatly speed up the ssh connection.

Expand Down
13 changes: 6 additions & 7 deletions startup-scripts/centos-7.sh
Expand Up @@ -19,23 +19,22 @@
# Disable sshd during setup
service sshd stop

# Increase max ssh sessions from a single host - FOR LARGE CPU INSTANCES ONLY
# sed -i -e 's/#MaxSessions 10/MaxSessions 64/' /etc/ssh/sshd_config
# sed -i -e 's/#MaxStartups 10:30:100/MaxStartups 64:64:100' /etc/ssh/sshd_config
# Increase max ssh sessions from a single host
sed -i -e 's/#MaxSessions 10/MaxSessions 64/' /etc/ssh/sshd_config
sed -i -e 's/#MaxStartups 10:30:100/MaxStartups 64:64:100' /etc/ssh/sshd_config

# Suppress distcc from trying to cork ssh connections
echo "DISTCC_TCP_CORK=0" >> /etc/environment

# Enable EPEL for distcc
# Enable deltrpm for any required package upgrades
# Enable deltrpm for any required package upgrades during next step
yum install -y epel-release deltarpm

###############################################################################
# Install distcc-server and minimum compilers
yum install -y distcc-server gcc gcc-objc gcc-c++
###############################################################################

# Set flag for gdistcc to check
echo "GDISTCC_READY" > /tmp/gdistcc_ready

# Enable sshd with setup complete
# Enable sshd
service sshd start

0 comments on commit f8d1215

Please sign in to comment.