Skip to content

Commit

Permalink
Merge #62108
Browse files Browse the repository at this point in the history
62108: roachprod: Install and configure chrony on GCE clusters r=rail a=rail

Fixes #62063

In #31577 we switched to `chrony` for AWS, but not for CGE. By default
they GCE clusters based on Ubuntu 16.04 use `ntp`.

This patch installs `chrony` (and automatically removes `ntp`) on GCE
and configures `chrony` to use Google's time server.

Release note: None

Co-authored-by: Rail Aliiev <rail@iqchoice.com>
  • Loading branch information
craig[bot] and rail committed Mar 22, 2021
2 parents ec08282 + df7b3cf commit c568739
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/cmd/roachprod/vm/gce/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,13 @@ echo "kernel.core_pattern=$CORE_PATTERN" >> /etc/sysctl.conf
sysctl --system # reload sysctl settings
sudo apt-get update -q
sudo apt-get install -qy chrony
echo -e "\nserver metadata.google.internal prefer iburst" | sudo tee -a /etc/chrony/chrony.conf
echo -e "\nmakestep 0.1 3" | sudo tee -a /etc/chrony/chrony.conf
sudo /etc/init.d/chrony restart
sudo chronyc -a waitsync 30 0.01 | sudo tee -a /root/chrony.log
sudo touch /mnt/data1/.roachprod-initialized
`

Expand Down

0 comments on commit c568739

Please sign in to comment.