-
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]>
- Loading branch information
1 parent
6d2c479
commit eb4784c
Showing
5 changed files
with
45 additions
and
5 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.