[ Web Proxy ]
URL:
Viewing: https://cloud.google.com/compute/docs/instances/time-synchronization [Back]  [Original]

Configure time synchronization  |  Compute Engine  |  Google Cloud Documentation Skip to main content
Google Cloud Documentation [Google Cloud Documentation]
Send feedback

Configure time synchronization Stay organized with collections Save and categorize content based on your preferences.

Many software systems that depend on careful sequencing of events rely on a stable, consistent system clock. System logs written by most services include a timestamp, which helps debug issues that occur between various components of your system.

By default, Compute Engine instances are preconfigured to use network time protocol (NTP), which helps keep system clocks in sync with each other. By properly configuring NTP on your virtual machine (VM), you can optimize your VM's time synchronization to account for leap seconds as they occur.

If ensuring accurate time synchronization and monitoring the accuracy of your time synchronization are important goals, then instead of using NTP, you can sync your VM's clock with its host server's clock by using chrony and ptp_kvm (Preview). This configuration is designed to achieve accuracy within 1 ms for supported setups.

Configure network time protocol (NTP) on a VM

Compute Engine instances are preconfigured to use network time protocol (NTP), which helps keep system clocks in sync with each other, and includes the following:

For steps to configure NTP for a VM, see Configure NTP for a VM.

Configure accurate time

Preview

This product or feature is subject to the "Pre-GA Offerings Terms" in the General Service Terms section of the Service Specific Terms. Pre-GA products and features are available "as is" and might have limited support. For more information, see the launch stage descriptions.

For accuracy designed to be within 1 ms with supported setups, you can configure your VM to sync its clock with its host server's clock. For details, see Configure accurate time for Compute Engine VMs.

What's next

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-08-11 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-08-11 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page