Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cybozu-neco committed Aug 24, 2023
1 parent 9cc7b9e commit 97401e8
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 54 deletions.
14 changes: 1 addition & 13 deletions crd_mysqlcluster_v1beta1.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ <h3 id="custom-resources"><a class="header" href="#custom-resources">Custom Reso
<h3 id="sub-resources"><a class="header" href="#sub-resources">Sub Resources</a></h3>
<ul>
<li><a href="#backupstatus">BackupStatus</a></li>
<li><a href="#mysqlclustercondition">MySQLClusterCondition</a></li>
<li><a href="#mysqlclusterlist">MySQLClusterList</a></li>
<li><a href="#mysqlclusterspec">MySQLClusterSpec</a></li>
<li><a href="#mysqlclusterstatus">MySQLClusterStatus</a></li>
Expand Down Expand Up @@ -185,17 +184,6 @@ <h4 id="mysqlcluster"><a class="header" href="#mysqlcluster">MySQLCluster</a></h
</tbody></table>
</div>
<p><a href="#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclustercondition"><a class="header" href="#mysqlclustercondition">MySQLClusterCondition</a></h4>
<p>MySQLClusterCondition defines the condition of MySQLCluster.</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>type</td><td>Type is the type of the condition.</td><td><a href="https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta1#MySQLClusterConditionType">MySQLClusterConditionType</a></td><td>true</td></tr>
<tr><td>status</td><td>Status is the status of the condition.</td><td><a href="https://pkg.go.dev/k8s.io/api/core/v1#ConditionStatus">corev1.ConditionStatus</a></td><td>true</td></tr>
<tr><td>reason</td><td>Reason is a one-word CamelCase reason for the condition's last transition.</td><td>string</td><td>false</td></tr>
<tr><td>message</td><td>Message is a human-readable message indicating details about last transition.</td><td>string</td><td>false</td></tr>
<tr><td>lastTransitionTime</td><td>LastTransitionTime is the last time the condition transits from one status to another.</td><td><a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time">metav1.Time</a></td><td>true</td></tr>
</tbody></table>
</div>
<p><a href="#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclusterlist"><a class="header" href="#mysqlclusterlist">MySQLClusterList</a></h4>
<p>MySQLClusterList contains a list of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
Expand Down Expand Up @@ -227,7 +215,7 @@ <h4 id="mysqlclusterspec"><a class="header" href="#mysqlclusterspec">MySQLCluste
<h4 id="mysqlclusterstatus"><a class="header" href="#mysqlclusterstatus">MySQLClusterStatus</a></h4>
<p>MySQLClusterStatus defines the observed state of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="#mysqlclustercondition">MySQLClusterCondition</a></td><td>false</td></tr>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition">metav1.Condition</a></td><td>false</td></tr>
<tr><td>currentPrimaryIndex</td><td>CurrentPrimaryIndex is the index of the current primary Pod in StatefulSet. Initially, this is zero.</td><td>int</td><td>true</td></tr>
<tr><td>syncedReplicas</td><td>SyncedReplicas is the number of synced instances including the primary.</td><td>int</td><td>false</td></tr>
<tr><td>errantReplicas</td><td>ErrantReplicas is the number of instances that have errant transactions.</td><td>int</td><td>false</td></tr>
Expand Down
14 changes: 1 addition & 13 deletions crd_mysqlcluster_v1beta2.html
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,6 @@ <h3 id="custom-resources"><a class="header" href="#custom-resources">Custom Reso
<h3 id="sub-resources"><a class="header" href="#sub-resources">Sub Resources</a></h3>
<ul>
<li><a href="#backupstatus">BackupStatus</a></li>
<li><a href="#mysqlclustercondition">MySQLClusterCondition</a></li>
<li><a href="#mysqlclusterlist">MySQLClusterList</a></li>
<li><a href="#mysqlclusterspec">MySQLClusterSpec</a></li>
<li><a href="#mysqlclusterstatus">MySQLClusterStatus</a></li>
Expand Down Expand Up @@ -186,17 +185,6 @@ <h4 id="mysqlcluster"><a class="header" href="#mysqlcluster">MySQLCluster</a></h
</tbody></table>
</div>
<p><a href="#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclustercondition"><a class="header" href="#mysqlclustercondition">MySQLClusterCondition</a></h4>
<p>MySQLClusterCondition defines the condition of MySQLCluster.</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>type</td><td>Type is the type of the condition.</td><td><a href="https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta1#MySQLClusterConditionType">MySQLClusterConditionType</a></td><td>true</td></tr>
<tr><td>status</td><td>Status is the status of the condition.</td><td><a href="https://pkg.go.dev/k8s.io/api/core/v1#ConditionStatus">corev1.ConditionStatus</a></td><td>true</td></tr>
<tr><td>reason</td><td>Reason is a one-word CamelCase reason for the condition's last transition.</td><td>string</td><td>false</td></tr>
<tr><td>message</td><td>Message is a human-readable message indicating details about last transition.</td><td>string</td><td>false</td></tr>
<tr><td>lastTransitionTime</td><td>LastTransitionTime is the last time the condition transits from one status to another.</td><td><a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time">metav1.Time</a></td><td>true</td></tr>
</tbody></table>
</div>
<p><a href="#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclusterlist"><a class="header" href="#mysqlclusterlist">MySQLClusterList</a></h4>
<p>MySQLClusterList contains a list of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
Expand Down Expand Up @@ -229,7 +217,7 @@ <h4 id="mysqlclusterspec"><a class="header" href="#mysqlclusterspec">MySQLCluste
<h4 id="mysqlclusterstatus"><a class="header" href="#mysqlclusterstatus">MySQLClusterStatus</a></h4>
<p>MySQLClusterStatus defines the observed state of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="#mysqlclustercondition">MySQLClusterCondition</a></td><td>false</td></tr>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition">metav1.Condition</a></td><td>false</td></tr>
<tr><td>currentPrimaryIndex</td><td>CurrentPrimaryIndex is the index of the current primary Pod in StatefulSet. Initially, this is zero.</td><td>int</td><td>true</td></tr>
<tr><td>syncedReplicas</td><td>SyncedReplicas is the number of synced instances including the primary.</td><td>int</td><td>false</td></tr>
<tr><td>errantReplicas</td><td>ErrantReplicas is the number of instances that have errant transactions.</td><td>int</td><td>false</td></tr>
Expand Down
1 change: 1 addition & 0 deletions links.csv
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ corev1.PodSpec,https://pkg.go.dev/k8s.io/api/core/v1#PodSpec
corev1.ServiceSpec,https://pkg.go.dev/k8s.io/api/core/v1#ServiceSpec
corev1.VolumeSource,https://pkg.go.dev/k8s.io/api/core/v1#VolumeSource
metav1.Duration,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Duration
metav1.Condition,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition
metav1.ListMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ListMeta
metav1.ObjectMeta,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#ObjectMeta
metav1.Time,https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time
Expand Down
40 changes: 14 additions & 26 deletions print.html
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,6 @@ <h2 id="multi-threaded-replication"><a class="header" href="#multi-threaded-repl
<h3 id="sub-resources"><a class="header" href="#sub-resources">Sub Resources</a></h3>
<ul>
<li><a href="crd_mysqlcluster_v1beta1.html#backupstatus">BackupStatus</a></li>
<li><a href="crd_mysqlcluster_v1beta1.html#mysqlclustercondition">MySQLClusterCondition</a></li>
<li><a href="crd_mysqlcluster_v1beta1.html#mysqlclusterlist">MySQLClusterList</a></li>
<li><a href="crd_mysqlcluster_v1beta1.html#mysqlclusterspec">MySQLClusterSpec</a></li>
<li><a href="crd_mysqlcluster_v1beta1.html#mysqlclusterstatus">MySQLClusterStatus</a></li>
Expand Down Expand Up @@ -1099,17 +1098,6 @@ <h4 id="mysqlcluster"><a class="header" href="#mysqlcluster">MySQLCluster</a></h
</tbody></table>
</div>
<p><a href="crd_mysqlcluster_v1beta1.html#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclustercondition"><a class="header" href="#mysqlclustercondition">MySQLClusterCondition</a></h4>
<p>MySQLClusterCondition defines the condition of MySQLCluster.</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>type</td><td>Type is the type of the condition.</td><td><a href="https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta1#MySQLClusterConditionType">MySQLClusterConditionType</a></td><td>true</td></tr>
<tr><td>status</td><td>Status is the status of the condition.</td><td><a href="https://pkg.go.dev/k8s.io/api/core/v1#ConditionStatus">corev1.ConditionStatus</a></td><td>true</td></tr>
<tr><td>reason</td><td>Reason is a one-word CamelCase reason for the condition's last transition.</td><td>string</td><td>false</td></tr>
<tr><td>message</td><td>Message is a human-readable message indicating details about last transition.</td><td>string</td><td>false</td></tr>
<tr><td>lastTransitionTime</td><td>LastTransitionTime is the last time the condition transits from one status to another.</td><td><a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time">metav1.Time</a></td><td>true</td></tr>
</tbody></table>
</div>
<p><a href="crd_mysqlcluster_v1beta1.html#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclusterlist"><a class="header" href="#mysqlclusterlist">MySQLClusterList</a></h4>
<p>MySQLClusterList contains a list of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
Expand Down Expand Up @@ -1141,7 +1129,7 @@ <h4 id="mysqlclusterspec"><a class="header" href="#mysqlclusterspec">MySQLCluste
<h4 id="mysqlclusterstatus"><a class="header" href="#mysqlclusterstatus">MySQLClusterStatus</a></h4>
<p>MySQLClusterStatus defines the observed state of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="crd_mysqlcluster_v1beta1.html#mysqlclustercondition">MySQLClusterCondition</a></td><td>false</td></tr>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition">metav1.Condition</a></td><td>false</td></tr>
<tr><td>currentPrimaryIndex</td><td>CurrentPrimaryIndex is the index of the current primary Pod in StatefulSet. Initially, this is zero.</td><td>int</td><td>true</td></tr>
<tr><td>syncedReplicas</td><td>SyncedReplicas is the number of synced instances including the primary.</td><td>int</td><td>false</td></tr>
<tr><td>errantReplicas</td><td>ErrantReplicas is the number of instances that have errant transactions.</td><td>int</td><td>false</td></tr>
Expand Down Expand Up @@ -1239,7 +1227,6 @@ <h4 id="jobconfig"><a class="header" href="#jobconfig">JobConfig</a></h4>
<h3 id="sub-resources-1"><a class="header" href="#sub-resources-1">Sub Resources</a></h3>
<ul>
<li><a href="crd_mysqlcluster_v1beta2.html#backupstatus">BackupStatus</a></li>
<li><a href="crd_mysqlcluster_v1beta2.html#mysqlclustercondition">MySQLClusterCondition</a></li>
<li><a href="crd_mysqlcluster_v1beta2.html#mysqlclusterlist">MySQLClusterList</a></li>
<li><a href="crd_mysqlcluster_v1beta2.html#mysqlclusterspec">MySQLClusterSpec</a></li>
<li><a href="crd_mysqlcluster_v1beta2.html#mysqlclusterstatus">MySQLClusterStatus</a></li>
Expand Down Expand Up @@ -1278,17 +1265,6 @@ <h4 id="mysqlcluster-1"><a class="header" href="#mysqlcluster-1">MySQLCluster</a
</tbody></table>
</div>
<p><a href="crd_mysqlcluster_v1beta2.html#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclustercondition-1"><a class="header" href="#mysqlclustercondition-1">MySQLClusterCondition</a></h4>
<p>MySQLClusterCondition defines the condition of MySQLCluster.</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>type</td><td>Type is the type of the condition.</td><td><a href="https://pkg.go.dev/github.com/cybozu-go/moco/api/v1beta1#MySQLClusterConditionType">MySQLClusterConditionType</a></td><td>true</td></tr>
<tr><td>status</td><td>Status is the status of the condition.</td><td><a href="https://pkg.go.dev/k8s.io/api/core/v1#ConditionStatus">corev1.ConditionStatus</a></td><td>true</td></tr>
<tr><td>reason</td><td>Reason is a one-word CamelCase reason for the condition's last transition.</td><td>string</td><td>false</td></tr>
<tr><td>message</td><td>Message is a human-readable message indicating details about last transition.</td><td>string</td><td>false</td></tr>
<tr><td>lastTransitionTime</td><td>LastTransitionTime is the last time the condition transits from one status to another.</td><td><a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Time">metav1.Time</a></td><td>true</td></tr>
</tbody></table>
</div>
<p><a href="crd_mysqlcluster_v1beta2.html#custom-resources">Back to Custom Resources</a></p>
<h4 id="mysqlclusterlist-1"><a class="header" href="#mysqlclusterlist-1">MySQLClusterList</a></h4>
<p>MySQLClusterList contains a list of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
Expand Down Expand Up @@ -1321,7 +1297,7 @@ <h4 id="mysqlclusterspec-1"><a class="header" href="#mysqlclusterspec-1">MySQLCl
<h4 id="mysqlclusterstatus-1"><a class="header" href="#mysqlclusterstatus-1">MySQLClusterStatus</a></h4>
<p>MySQLClusterStatus defines the observed state of MySQLCluster</p>
<div class="table-wrapper"><table><thead><tr><th>Field</th><th>Description</th><th>Scheme</th><th>Required</th></tr></thead><tbody>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="crd_mysqlcluster_v1beta2.html#mysqlclustercondition">MySQLClusterCondition</a></td><td>false</td></tr>
<tr><td>conditions</td><td>Conditions is an array of conditions.</td><td>[]<a href="https://pkg.go.dev/k8s.io/apimachinery/pkg/apis/meta/v1#Condition">metav1.Condition</a></td><td>false</td></tr>
<tr><td>currentPrimaryIndex</td><td>CurrentPrimaryIndex is the index of the current primary Pod in StatefulSet. Initially, this is zero.</td><td>int</td><td>true</td></tr>
<tr><td>syncedReplicas</td><td>SyncedReplicas is the number of synced instances including the primary.</td><td>int</td><td>false</td></tr>
<tr><td>errantReplicas</td><td>ErrantReplicas is the number of instances that have errant transactions.</td><td>int</td><td>false</td></tr>
Expand Down Expand Up @@ -1896,6 +1872,12 @@ <h3 id="when-the-statefulset-is-not-updated"><a class="header" href="#when-the-s
</li>
</ul>
<p>The fluent-bit sidecar container is updated only when some fields under <code>spec</code> of MySQLCluster are modified.</p>
<h3 id="status-about-statefulset"><a class="header" href="#status-about-statefulset">Status about StatefulSet</a></h3>
<ul>
<li>In <code>MySQLCluster.Status.Condition</code>, there is a condition named <code>StatefulSetReady</code>.</li>
<li>This indicates the readieness of StatefulSet.</li>
<li>The condition will be <code>True</code> when the rolling update of StatefulSet completely finishes.</li>
</ul>
<h3 id="secrets"><a class="header" href="#secrets">Secrets</a></h3>
<p>MOCO generates random passwords for users that MOCO uses to access MySQL.</p>
<p>The generated passwords are stored in two Secrets.
Expand Down Expand Up @@ -1944,6 +1926,12 @@ <h3 id="job"><a class="header" href="#job">Job</a></h3>
<p>To restore data from a backup, MOCO creates a Job.
MOCO deletes the Job after the Job finishes successfully.</p>
<p>If the Job fails, MOCO leaves the Job.</p>
<h2 id="status-of-reconcliation"><a class="header" href="#status-of-reconcliation">Status of Reconcliation</a></h2>
<ul>
<li>In <code>MySQLCluster.Status.Condition</code>, there is a condition named <code>ReconcileSuccess</code>.</li>
<li>This indicates the status of reconcilation.</li>
<li>The condition will be <code>True</code> when the reconcile function successfully finishes.</li>
</ul>
<div style="break-before: page; page-break-before: always;"></div><h1 id="how-moco-maintains-mysql-clusters"><a class="header" href="#how-moco-maintains-mysql-clusters">How MOCO maintains MySQL clusters</a></h1>
<p>For each <a href="crd_mysqlcluster.html">MySQLCluster</a>, MOCO creates and maintains a set of <code>mysqld</code> instances.
The set contains one <em>primary</em> instance and may contain <em>multiple</em> replica instances depending on the <code>spec.replicas</code> value of MySQLCluster.</p>
Expand Down
12 changes: 12 additions & 0 deletions reconcile.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ <h3 id="when-the-statefulset-is-not-updated"><a class="header" href="#when-the-s
</li>
</ul>
<p>The fluent-bit sidecar container is updated only when some fields under <code>spec</code> of MySQLCluster are modified.</p>
<h3 id="status-about-statefulset"><a class="header" href="#status-about-statefulset">Status about StatefulSet</a></h3>
<ul>
<li>In <code>MySQLCluster.Status.Condition</code>, there is a condition named <code>StatefulSetReady</code>.</li>
<li>This indicates the readieness of StatefulSet.</li>
<li>The condition will be <code>True</code> when the rolling update of StatefulSet completely finishes.</li>
</ul>
<h3 id="secrets"><a class="header" href="#secrets">Secrets</a></h3>
<p>MOCO generates random passwords for users that MOCO uses to access MySQL.</p>
<p>The generated passwords are stored in two Secrets.
Expand Down Expand Up @@ -246,6 +252,12 @@ <h3 id="job"><a class="header" href="#job">Job</a></h3>
<p>To restore data from a backup, MOCO creates a Job.
MOCO deletes the Job after the Job finishes successfully.</p>
<p>If the Job fails, MOCO leaves the Job.</p>
<h2 id="status-of-reconcliation"><a class="header" href="#status-of-reconcliation">Status of Reconcliation</a></h2>
<ul>
<li>In <code>MySQLCluster.Status.Condition</code>, there is a condition named <code>ReconcileSuccess</code>.</li>
<li>This indicates the status of reconcilation.</li>
<li>The condition will be <code>True</code> when the reconcile function successfully finishes.</li>
</ul>

</main>

Expand Down
2 changes: 1 addition & 1 deletion searchindex.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion searchindex.json

Large diffs are not rendered by default.

0 comments on commit 97401e8

Please sign in to comment.