<commit_before><?xml version="1.0" encoding="UTF-8"?>
<section xml:id="installing-ntp"
    xmlns="http://docbook.org/ns/docbook"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
    <title>Installing Network Time Protocol (NTP)</title>
    <para>To keep all the services in sync, you need to install NTP, and if you do a multi-node configuration you will configure one server
    to be the reference server.</para>
    <literallayout class="monospaced">sudo apt-get install -y ntp</literallayout>

    <para>Set up the NTP server on your controller node so that it receives data by modifying the ntp.conf file and restarting the service.</para>
    <literallayout class="monospaced">sudo sed -i 's/server ntp.ubuntu.com/server ntp.ubuntu.com\nserver 127.127.1.0\nfudge 127.127.1.0 stratum 10/g' /etc/ntp.conf  
sudo service ntp restart</literallayout></section><commit_msg>since the ntp service should also be added to compute node, explicit text is needed.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<section xml:id="installing-ntp"
    xmlns="http://docbook.org/ns/docbook"
    xmlns:xi="http://www.w3.org/2001/XInclude"
    xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0">
    <title>Installing Network Time Protocol (NTP)</title>
    <para>To keep all the services in sync, you need to install NTP, and if you do a multi-node configuration you will configure one server
    to be the reference server.</para>
    <literallayout class="monospaced">sudo apt-get install -y ntp</literallayout>

    <para>Set up the NTP server on your controller node so that it receives data by modifying the ntp.conf file and restarting the service.</para>
    <literallayout class="monospaced">sudo sed -i 's/server ntp.ubuntu.com/server ntp.ubuntu.com\nserver 127.127.1.0\nfudge 127.127.1.0 stratum 10/g' /etc/ntp.conf  
sudo service ntp restart</literallayout>
    <para>Set up the NTP client on your compute node so that the time between controller node and compute node is synchronized. do the following as a cron job on compute node</para>
    <literallayout class="monospaced">ntpdate 'controllernode ip'
hwclock -w</literallayout>
    
</section>
{'fraction_non_alphanumeric': 0.11857529305680793, 'fraction_numerical': 0.029756537421100092, 'mean_word_length': 4.19672131147541, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 2, '>': 33, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 10}, 'pii_count': 4, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5101906', 'n_tokens_mistral': 756, 'n_tokens_neox': 699, 'n_words': 227}