-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(cluster): support db import, replication, replicationSlots, volu…
…meSnapshots, multiple poolers, expend monitoring options Signed-off-by: Dmitriy Alekseev <[email protected]>
- Loading branch information
1 parent
9024f04
commit d5fc78e
Showing
57 changed files
with
1,979 additions
and
967 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,5 +1,4 @@ | ||
mode: standalone | ||
|
||
cluster: | ||
instances: 1 | ||
backups: | ||
enabled: false |
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,23 @@ | ||
mode: import | ||
|
||
cluster: | ||
instances: 1 | ||
|
||
import: | ||
type: microservice | ||
typeSettings: | ||
microservice: | ||
database: source-db | ||
|
||
recovery: | ||
method: pgBasebackup | ||
methodSettings: | ||
pgBasebackup: | ||
connectionParameters: | ||
host: source-db.foo.com | ||
user: postgres | ||
sslMode: require | ||
auth: password | ||
authDetails: | ||
password: |- | ||
superuser-password |
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,26 @@ | ||
mode: import | ||
|
||
cluster: | ||
instances: 1 | ||
|
||
import: | ||
type: monolith | ||
typeSettings: | ||
monolith: | ||
databases: | ||
- * | ||
roles: | ||
- * | ||
|
||
recovery: | ||
method: pgBasebackup | ||
methodSettings: | ||
pgBasebackup: | ||
connectionParameters: | ||
host: source-db.foo.com | ||
user: postgres | ||
sslMode: require | ||
auth: password | ||
authDetails: | ||
password: |- | ||
superuser-password |
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,29 @@ | ||
mode: import | ||
|
||
cluster: | ||
instances: 1 | ||
|
||
import: | ||
type: monolith | ||
typeSettings: | ||
monolith: | ||
databases: | ||
- db1 | ||
- db2 | ||
- db3 | ||
roles: | ||
- role1 | ||
- role2 | ||
|
||
recovery: | ||
method: pgBasebackup | ||
methodSettings: | ||
pgBasebackup: | ||
connectionParameters: | ||
host: source-db.foo.com | ||
user: postgres | ||
sslMode: require | ||
auth: password | ||
authDetails: | ||
password: |- | ||
superuser-password |
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
mode: standalone | ||
|
||
cluster: | ||
instances: 1 | ||
backups: | ||
enabled: false | ||
pooler: | ||
enabled: true | ||
instances: 1 | ||
|
||
poolers: | ||
- name: rw | ||
type: rw | ||
instances: 1 | ||
- name: ro | ||
type: ro | ||
instances: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
type: postgis | ||
|
||
mode: standalone | ||
|
||
cluster: | ||
instances: 1 | ||
backups: | ||
enabled: false |
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 |
---|---|---|
@@ -1,22 +1,26 @@ | ||
mode: recovery | ||
|
||
recovery: | ||
method: backup | ||
backupName: "database-clustermarket-database-daily-backup-1683244800" | ||
|
||
cluster: | ||
instances: 1 | ||
|
||
recovery: | ||
method: backup | ||
methodSettings: | ||
backup: | ||
name: database-clustermarket-database-daily-backup-1683244800 | ||
|
||
backups: | ||
provider: s3 | ||
s3: | ||
region: "eu-west-1" | ||
bucket: "db-backups" | ||
path: "/v1-restore" | ||
accessKey: "AWS_S3_ACCESS_KEY" | ||
secretKey: "AWS_S3_SECRET_KEY" | ||
objectStorage: | ||
provider: s3 | ||
providerSettings: | ||
s3: | ||
region: eu-west-1 | ||
bucket: db-backups | ||
path: /v1-restore | ||
accessKey: "AWS_S3_ACCESS_KEY" | ||
secretKey: "AWS_S3_SECRET_KEY" | ||
scheduledBackups: | ||
- name: daily-backup # Daily at midnight | ||
schedule: "0 0 0 * * *" # Daily at midnight | ||
backupOwnerReference: self | ||
retentionPolicy: "30d" | ||
retentionPolicy: 30d |
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,33 @@ | ||
mode: recovery | ||
|
||
cluster: | ||
instances: 1 | ||
|
||
recovery: | ||
method: objectStorage | ||
methodSettings: | ||
objectStorage: | ||
clusterName: cluster-name-to-recover-from | ||
provider: s3 | ||
s3: | ||
region: eu-west-1 | ||
bucket: db-backups | ||
path: /v1-restore | ||
accessKey: "AWS_S3_ACCESS_KEY" | ||
secretKey: "AWS_S3_SECRET_KEY" | ||
|
||
backups: | ||
objectStorage: | ||
provider: s3 | ||
providerSettings: | ||
s3: | ||
region: eu-west-1 | ||
bucket: db-backups | ||
path: /v2-restore | ||
accessKey: "AWS_S3_ACCESS_KEY" | ||
secretKey: "AWS_S3_SECRET_KEY" | ||
scheduledBackups: | ||
- name: daily-backup # Daily at midnight | ||
schedule: "0 0 0 * * *" # Daily at midnight | ||
backupOwnerReference: self | ||
retentionPolicy: 30d |
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,40 @@ | ||
mode: recovery | ||
|
||
cluster: | ||
instances: 1 | ||
|
||
recovery: | ||
method: objectStorage | ||
methodSettings: | ||
objectStorage: | ||
clusterName: standalone-cluster | ||
endpointURL: https://minio.minio.svc.cluster.local | ||
endpointCA: | ||
name: kube-root-ca.crt | ||
key: ca.crt | ||
provider: s3 | ||
s3: | ||
bucket: mybucket | ||
path: /v1 | ||
accessKey: minio | ||
secretKey: minio123 | ||
|
||
backups: | ||
objectStorage: | ||
provider: s3 | ||
providerSettings: | ||
endpointURL: https://minio.minio.svc.cluster.local | ||
endpointCA: | ||
name: kube-root-ca.crt | ||
key: ca.crt | ||
s3: | ||
bucket: mybucket | ||
path: /v1 | ||
accessKey: minio | ||
secretKey: minio123 | ||
wal: | ||
encryption: "" | ||
data: | ||
encryption: "" | ||
scheduledBackups: [] | ||
retentionPolicy: 30d |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.