-
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.
* Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * update-version Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * scaling done Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * autoScaler Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * reconfiguration Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * restart Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * monitoring Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * all completed until custom version Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * update version svg Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * completed till update-version Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * Horizontal scaling done Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * vertical scaling done fully Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * autoscaling all done Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * all done for reconfiguration Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * restart done Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * duplication removed Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * build fixed Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * remove reconfigure tls Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * image added for monitoring Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * pgbouncer wiki change Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * autoscaling issue fixed Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * test Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * test 2 Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * test 3 Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * update version camel case removed Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * monitoring part is done Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * image changes for monitoring Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> * camecase solved Signed-off-by: Hiranmoy Das Chowdhury <[email protected]> --------- Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
- Loading branch information
1 parent
0440c8f
commit 6d67a6e
Showing
56 changed files
with
3,850 additions
and
348 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
docs/examples/pgbouncer/autoscaling/compute/pgbouncer-autoscale.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,23 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: PgBouncer | ||
metadata: | ||
name: pgbouncer-autoscale | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.18.0" | ||
database: | ||
syncUsers: true | ||
databaseName: "postgres" | ||
databaseRef: | ||
name: "ha-postgres" | ||
namespace: demo | ||
connectionPool: | ||
poolMode: session | ||
port: 5432 | ||
reservePoolSize: 5 | ||
maxClientConnections: 87 | ||
defaultPoolSize: 2 | ||
minPoolSize: 1 | ||
authType: md5 | ||
deletionPolicy: WipeOut |
21 changes: 21 additions & 0 deletions
21
docs/examples/pgbouncer/autoscaling/compute/pgbouncer-autoscaler.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,21 @@ | ||
apiVersion: autoscaling.kubedb.com/v1alpha1 | ||
kind: PgBouncerAutoscaler | ||
metadata: | ||
name: pgbouncer-autoscale-ops | ||
namespace: demo | ||
spec: | ||
databaseRef: | ||
name: pgbouncer-autoscale | ||
compute: | ||
pgbouncer: | ||
trigger: "On" | ||
podLifeTimeThreshold: 5m | ||
resourceDiffPercentage: 20 | ||
minAllowed: | ||
cpu: 400m | ||
memory: 400Mi | ||
maxAllowed: | ||
cpu: 1 | ||
memory: 1Gi | ||
controlledResources: ["cpu", "memory"] | ||
containerControlledValues: "RequestsAndLimits" |
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,22 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: PgBouncer | ||
metadata: | ||
name: pb-custom | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.18.0" | ||
database: | ||
syncUsers: true | ||
databaseName: "postgres" | ||
databaseRef: | ||
name: "ha-postgres" | ||
namespace: demo | ||
connectionPool: | ||
poolMode: session | ||
port: 5432 | ||
reservePoolSize: 5 | ||
maxClientConnections: 87 | ||
defaultPoolSize: 2 | ||
minPoolSize: 1 | ||
deletionPolicy: WipeOut |
17 changes: 17 additions & 0 deletions
17
docs/examples/pgbouncer/reconfigure/pbops-reconfigure-apply.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,17 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: PgBouncerOpsRequest | ||
metadata: | ||
name: pbops-reconfigure-apply | ||
namespace: demo | ||
spec: | ||
type: Reconfigure | ||
databaseRef: | ||
name: pb-custom | ||
configuration: | ||
pgbouncer: | ||
applyConfig: | ||
pgbouncer.ini: |- | ||
[pgbouncer] | ||
auth_type=scram-sha-256 | ||
timeout: 5m | ||
apply: IfReady |
15 changes: 15 additions & 0 deletions
15
docs/examples/pgbouncer/reconfigure/pbops-reconfigure.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,15 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: PgBouncerOpsRequest | ||
metadata: | ||
name: pbops-reconfigure | ||
namespace: demo | ||
spec: | ||
type: Reconfigure | ||
databaseRef: | ||
name: pb-custom | ||
configuration: | ||
pgbouncer: | ||
configSecret: | ||
name: new-custom-config | ||
timeout: 5m | ||
apply: IfReady |
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,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: PgBouncerOpsRequest | ||
metadata: | ||
name: restart-pgbouncer | ||
namespace: demo | ||
spec: | ||
type: Restart | ||
databaseRef: | ||
name: pgbouncer | ||
timeout: 3m | ||
apply: Always |
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,23 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: PgBouncer | ||
metadata: | ||
name: pgbouncer | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.18.0" | ||
database: | ||
syncUsers: true | ||
databaseName: "postgres" | ||
databaseRef: | ||
name: "ha-postgres" | ||
namespace: demo | ||
connectionPool: | ||
poolMode: session | ||
port: 5432 | ||
reservePoolSize: 5 | ||
maxClientConnections: 87 | ||
defaultPoolSize: 2 | ||
minPoolSize: 1 | ||
authType: md5 | ||
deletionPolicy: WipeOut |
11 changes: 11 additions & 0 deletions
11
docs/examples/pgbouncer/scaling/horizontal-scaling-down-ops.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,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: PgBouncerOpsRequest | ||
metadata: | ||
name: pgbouncer-horizontal-scale-down | ||
namespace: demo | ||
spec: | ||
type: HorizontalScaling | ||
databaseRef: | ||
name: pb-horizontal | ||
horizontalScaling: | ||
replicas: 2 |
11 changes: 11 additions & 0 deletions
11
docs/examples/pgbouncer/scaling/horizontal-scaling-ops.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,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: PgBouncerOpsRequest | ||
metadata: | ||
name: pgbouncer-horizontal-scale-up | ||
namespace: demo | ||
spec: | ||
type: HorizontalScaling | ||
databaseRef: | ||
name: pb-horizontal | ||
horizontalScaling: | ||
replicas: 3 |
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,23 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: PgBouncer | ||
metadata: | ||
name: pb-horizontal | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.18.0" | ||
database: | ||
syncUsers: true | ||
databaseName: "postgres" | ||
databaseRef: | ||
name: "ha-postgres" | ||
namespace: demo | ||
connectionPool: | ||
poolMode: session | ||
port: 5432 | ||
reservePoolSize: 5 | ||
maxClientConnections: 87 | ||
defaultPoolSize: 2 | ||
minPoolSize: 1 | ||
authType: md5 | ||
deletionPolicy: WipeOut |
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,20 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: PgBouncerOpsRequest | ||
metadata: | ||
name: pgbouncer-scale-vertical | ||
namespace: demo | ||
spec: | ||
type: VerticalScaling | ||
databaseRef: | ||
name: pb-vertical | ||
verticalScaling: | ||
pgbouncer: | ||
resources: | ||
requests: | ||
memory: "2Gi" | ||
cpu: "1" | ||
limits: | ||
memory: "2Gi" | ||
cpu: "1" | ||
timeout: 5m | ||
apply: IfReady |
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,23 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: PgBouncer | ||
metadata: | ||
name: pb-vertical | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.18.0" | ||
database: | ||
syncUsers: true | ||
databaseName: "postgres" | ||
databaseRef: | ||
name: "ha-postgres" | ||
namespace: demo | ||
connectionPool: | ||
poolMode: session | ||
port: 5432 | ||
reservePoolSize: 5 | ||
maxClientConnections: 87 | ||
defaultPoolSize: 2 | ||
minPoolSize: 1 | ||
authType: md5 | ||
deletionPolicy: WipeOut |
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,15 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: PgBouncer | ||
metadata: | ||
name: pgbouncer-sync | ||
namespace: demo | ||
spec: | ||
version: "1.23.1" | ||
replicas: 1 | ||
database: | ||
syncUsers: true | ||
databaseName: "postgres" | ||
databaseRef: | ||
name: "ha-postgres" | ||
namespace: demo | ||
deletionPolicy: WipeOut |
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,11 @@ | ||
apiVersion: v1 | ||
kind: Secret | ||
metadata: | ||
labels: | ||
app.kubernetes.io/instance: ha-postgres | ||
app.kubernetes.io/name: postgreses.kubedb.com | ||
name: sync-secret | ||
namespace: demo | ||
stringData: | ||
password: "12345" | ||
username: "john" |
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,23 @@ | ||
apiVersion: kubedb.com/v1 | ||
kind: PgBouncer | ||
metadata: | ||
name: pb-update | ||
namespace: demo | ||
spec: | ||
replicas: 1 | ||
version: "1.18.0" | ||
database: | ||
syncUsers: true | ||
databaseName: "postgres" | ||
databaseRef: | ||
name: "ha-postgres" | ||
namespace: demo | ||
connectionPool: | ||
poolMode: session | ||
port: 5432 | ||
reservePoolSize: 5 | ||
maxClientConnections: 87 | ||
defaultPoolSize: 2 | ||
minPoolSize: 1 | ||
authType: md5 | ||
deletionPolicy: WipeOut |
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,11 @@ | ||
apiVersion: ops.kubedb.com/v1alpha1 | ||
kind: PgBouncerOpsRequest | ||
metadata: | ||
name: pgbouncer-version-update | ||
namespace: demo | ||
spec: | ||
type: UpdateVersion | ||
databaseRef: | ||
name: pb-update | ||
updateVersion: | ||
targetVersion: 1.23.1 |
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: pb-auto-scaling | ||
name: Autoscaling | ||
parent: pb-pgbouncer-guides | ||
weight: 46 | ||
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: pb-compute-auto-scaling | ||
name: Compute Autoscaling | ||
parent: pb-auto-scaling | ||
weight: 10 | ||
menu_name: docs_{{ .version }} | ||
--- |
Oops, something went wrong.