<?php require_once( dirname(dirname(dirname( __FILE__ ))) . '/wp-load.php' ); ?>
<!-- START of header -->
<?php get_header(); ?>
<!-- END of header -->

<!-- warapper -->

<div class="docs-content">
    <!-- START of page navigation -->
    <?php get_template_part( 'docs_navigation' ); ?>
    <!-- END of page navigation -->
    <!-- START of pusher -->
    <div class="docs-content-body">
        <div id="content" class="docs-content-body__inner">

            <div id="outline-container-1" class="outline-3">
                <h1 id="sec-1"><span class="section-number-3">3.8</span> Replication &amp; Distribution </h1>
                <div class="outline-text-3" id="text-1">


                    <p>
                    Data replicas are created on a partition basis in accordance with the number of replications set by the user.
                    A process can be continued non-stop even when a node failure occurs by maintaining replicas of the data among scattered nodes. In the client API, when a node failure is detected, the client automatically switches access to another node where the replica is maintained.
                    </p>   
                    <p>
                    The default number of replications is 2, allowing data to be replicated twice when operating in a cluster configuration with multiple nodes.
                    When there is an update in a container, the owner node (the node having the master replica) among the replicated partitions is updated.        
                    </p>
                    There are 2 ways of subsequently reflecting the updated details from the owner node in the backup node.
                    <ul>
                    <li>
                    Replication is carried out without synchronizing with the timing of the non-synchronous replication update process. Update performance is better for quasi-synchronous replication but the availability is worse.
                    </li>
                    <li>
                    Although replication is carried out synchronously at the quasi-synchronous replication update process timing, no appointment is made at the end of the replication. Availability is excellent but performance is inferior.

                    </li>
                    </ul>

                    <p>If performance is more important than availability, set the mode to non-synchronous replication and if availability is more important, set it to quasi-synchronous replication.
                    </p>
                    <p>
                    <b>[Memo]</b> 
                    </p>
                    <p>
                    The number of replications is set in the cluster definition file (gs_cluster.json) /cluster/replicationNum. 
                    <br>Synchronous settings of the replication are set in the cluster definition file (gs_cluster.json) /transaction/replicationMode.
                    </p>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- / main -->

<?php get_footer(); ?>
