Skip to content

Commit

Permalink
SingleStore Complete Docs (#663)
Browse files Browse the repository at this point in the history
* add concepts

Signed-off-by: Ashraful Haque Tani <[email protected]>
  • Loading branch information
AshrafulHaqueToni authored Oct 30, 2024
1 parent 5025432 commit b4dde67
Show file tree
Hide file tree
Showing 115 changed files with 11,103 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
apiVersion: autoscaling.kubedb.com/v1alpha1
kind: SinglestoreAutoscaler
metadata:
name: sdb-cluster-autoscaler
namespace: demo
spec:
databaseRef:
name: sdb-sample
compute:
aggregator:
trigger: "On"
podLifeTimeThreshold: 5m
minAllowed:
cpu: 900m
memory: 3Gi
maxAllowed:
cpu: 2000m
memory: 6Gi
controlledResources: ["cpu", "memory"]
containerControlledValues: "RequestsAndLimits"
resourceDiffPercentage: 10
52 changes: 52 additions & 0 deletions docs/examples/singlestore/autoscaling/compute/sdb-compute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: kubedb.com/v1alpha2
kind: Singlestore
metadata:
name: sdb-sample
namespace: demo
spec:
version: 8.7.10
topology:
aggregator:
replicas: 2
podTemplate:
spec:
containers:
- name: singlestore
resources:
limits:
memory: "2Gi"
cpu: "0.7"
requests:
memory: "2Gi"
cpu: "0.7"
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
leaf:
replicas: 3
podTemplate:
spec:
containers:
- name: singlestore
resources:
limits:
memory: "2Gi"
cpu: "0.7"
requests:
memory: "2Gi"
cpu: "0.7"
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
licenseSecret:
name: license-secret
storageType: Durable
deletionPolicy: WipeOut
52 changes: 52 additions & 0 deletions docs/examples/singlestore/autoscaling/storage/sdb-compute.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: kubedb.com/v1alpha2
kind: Singlestore
metadata:
name: sdb-sample
namespace: demo
spec:
version: 8.7.10
topology:
aggregator:
replicas: 2
podTemplate:
spec:
containers:
- name: singlestore
resources:
limits:
memory: "2Gi"
cpu: "0.7"
requests:
memory: "2Gi"
cpu: "0.7"
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
leaf:
replicas: 3
podTemplate:
spec:
containers:
- name: singlestore
resources:
limits:
memory: "2Gi"
cpu: "0.7"
requests:
memory: "2Gi"
cpu: "0.7"
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
licenseSecret:
name: license-secret
storageType: Durable
deletionPolicy: WipeOut
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: autoscaling.kubedb.com/v1alpha1
kind: SinglestoreAutoscaler
metadata:
name: sdb-cluster-autoscaler
namespace: demo
spec:
databaseRef:
name: sdb-sample
storage:
leaf:
trigger: "On"
usageThreshold: 30
scalingThreshold: 50
expansionMode: "Online"
upperBound: "100Gi"
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Application Level Backup & Restore MySQL | KubeStash
description: Application Level Backup and Restore using KubeStash
menu:
docs_{{ .version }}:
identifier: guides-application-level-backup-stashv2
identifier: guides-mysql-application-level-backup-stashv2
name: Application Level Backup
parent: guides-mysql-backup-stashv2
weight: 40
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/mysql/pitr/archiver.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,13 @@ spec:
scheduler:
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
schedule: "/30 * * * *"
schedule: "*/30 * * * *"
sessionHistoryLimit: 2
manifestBackup:
scheduler:
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
schedule: "/30 * * * *"
schedule: "*/30 * * * *"
sessionHistoryLimit: 2
backupStorage:
ref:
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/mysql/pitr/yamls/mysqlarchiver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ spec:
scheduler:
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
schedule: "/30 * * * *"
schedule: "*/30 * * * *"
sessionHistoryLimit: 2
manifestBackup:
scheduler:
successfulJobsHistoryLimit: 1
failedJobsHistoryLimit: 1
schedule: "/30 * * * *"
schedule: "*/30 * * * *"
sessionHistoryLimit: 2
backupStorage:
ref:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Application Level Backup & Restore PostgreSQL | KubeStash
description: Application Level Backup and Restore using KubeStash
menu:
docs_{{ .version }}:
identifier: guides-application-level-backup-stashv2
identifier: guides-pg-application-level-backup-stashv2
name: Application Level Backup
parent: guides-pg-backup-stashv2
weight: 40
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,26 @@ metadata:
namespace: demo
spec:
version: "2.3.2-debian"
replicas: 1
replicas: 3
podTemplate:
spec:
containers:
- name: proxysql
resources:
limits:
cpu: 500m
memory: 128Mi
requests:
cpu: 250m
memory: 64Mi
securityContext:
runAsGroup: 999
runAsNonRoot: true
runAsUser: 999
seccompProfile:
type: RuntimeDefault
podPlacementPolicy:
name: default
syncUsers: true
backend:
name: mysql-server
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Application Level Backup & Restore Redis | KubeStash
description: Application Level Backup and Restore using KubeStash
menu:
docs_{{ .version }}:
identifier: guides-application-level-backup-stashv2
identifier: guides-rd-application-level-backup-stashv2
name: Application Level Backup
parent: guides-rd-backup-stashv2
weight: 40
Expand Down
3 changes: 2 additions & 1 deletion docs/guides/singlestore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ SingleStore, a distributed SQL database for real-time analytics, transactional w

KubeDB supports the following SingleSore Versions.
- `8.1.32`
- `8.5.7`
- `8.5.30`
- `8.7.10`

## Life Cycle of a SingleStore Object

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/singlestore/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ menu:
identifier: guides-singlestore
name: SingleStore
parent: guides
weight: 10
weight: 20
menu_name: docs_{{ .version }}
---
10 changes: 10 additions & 0 deletions docs/guides/singlestore/autoscaler/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Autoscaling
menu:
docs_{{ .version }}:
identifier: sdb-auto-scaling
name: Autoscaling
parent: guides-singlestore
weight: 46
menu_name: docs_{{ .version }}
---
10 changes: 10 additions & 0 deletions docs/guides/singlestore/autoscaler/compute/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: Compute Autoscaling
menu:
docs_{{ .version }}:
identifier: sdb-compute-auto-scaling
name: Compute Autoscaling
parent: sdb-auto-scaling
weight: 46
menu_name: docs_{{ .version }}
---
Loading

0 comments on commit b4dde67

Please sign in to comment.