-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
192 changed files
with
13,642 additions
and
3,103 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Autoscaling | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: guides-mysql-autoscaling | ||
name: Autoscaling | ||
parent: guides-mysql | ||
weight: 47 | ||
menu_name: docs_{{ .version }} | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: Compute Autoscaling | ||
menu: | ||
docs_{{ .version }}: | ||
identifier: guides-mysql-autoscaling-compute | ||
name: Compute Autoscaling | ||
parent: guides-mysql-autoscaling | ||
weight: 46 | ||
menu_name: docs_{{ .version }} | ||
--- |
24 changes: 24 additions & 0 deletions
24
docs/guides/mysql/autoscaler/compute/cluster/examples/my-as-compute.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: MySQLAutoscaler | ||
metadata: | ||
name: my-as-compute | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: sample-mysql | ||
opsRequestOptions: | ||
timeout: 3m | ||
apply: IfReady | ||
compute: | ||
mysql: | ||
trigger: "On" | ||
podLifeTimeThreshold: 5m | ||
resourceDiffPercentage: 20 | ||
minAllowed: | ||
cpu: 250m | ||
memory: 400Mi | ||
maxAllowed: | ||
cpu: 1 | ||
memory: 1Gi | ||
containerControlledValues: "RequestsAndLimits" | ||
controlledResources: ["cpu", "memory"] |
28 changes: 28 additions & 0 deletions
28
docs/guides/mysql/autoscaler/compute/cluster/examples/sample-mysql.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
apiVersion: kubedb.com/v1alpha2 | ||
kind: MySQL | ||
metadata: | ||
name: sample-mysql | ||
namespace: demo | ||
spec: | ||
version: "8.0.31" | ||
replicas: 3 | ||
topology: | ||
mode: GroupReplication | ||
storageType: Durable | ||
storage: | ||
storageClassName: "standard" | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
podTemplate: | ||
spec: | ||
resources: | ||
requests: | ||
cpu: "200m" | ||
memory: "300Mi" | ||
limits: | ||
cpu: "200m" | ||
memory: "300Mi" | ||
terminationPolicy: WipeOut |
Oops, something went wrong.