Skip to content

Commit

Permalink
Horizontal scaling done
Browse files Browse the repository at this point in the history
Signed-off-by: Hiranmoy Das Chowdhury <[email protected]>
  • Loading branch information
HiranmoyChowdhury committed Nov 27, 2024
1 parent a6191cb commit 33ccabc
Show file tree
Hide file tree
Showing 6 changed files with 148 additions and 153 deletions.
11 changes: 11 additions & 0 deletions docs/examples/pgbouncer/scaling/horizontal-scaling-down-ops.yaml
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 docs/examples/pgbouncer/scaling/horizontal-scaling-ops.yaml
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
23 changes: 23 additions & 0 deletions docs/examples/pgbouncer/scaling/pb-horizontal.yaml
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
Loading

0 comments on commit 33ccabc

Please sign in to comment.