Skip to content

Commit 8b25e8b

Browse files
authored
Merge branch 'dev' into PBM-1547-SPIKE-PoC-for-Control-Collection-RS
2 parents 29798aa + 29437a3 commit 8b25e8b

File tree

2 files changed

+75
-6
lines changed

2 files changed

+75
-6
lines changed

packaging/conf/pbm-conf-reference.yml

Lines changed: 71 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## This file is a full configuration example documenting all
44
## options in comments.
55
##
6-
## You can find the full configuration reference here:
7-
## https://docs.percona.com/percona-backup-mongodb/configuration-options.html
6+
## You can find the full reference for configuration options here:
7+
## https://docs.percona.com/percona-backup-mongodb/reference/configuration-options.html
88

99
#======================Storage Configuration============================
1010

@@ -25,7 +25,7 @@
2525
## When undefined, backups are saved at the root of the bucket.
2626
# prefix:
2727

28-
## The URL to access the bucket for GCS and MinIO
28+
## The URL to access the bucket for MinIO
2929
# endpointURL:
3030

3131
## S3 access credentials.
@@ -48,13 +48,14 @@
4848
## Use it with caution as it might leave a hole for man-in-the-middle attacks.
4949
# insecureSkipTLSVerify:
5050

51-
## Debug level logging configuration for S3 requests.
51+
## Debug level logging configuration for S3 requests.
5252
# debugLogLevels:
5353

5454
## Server-side encryption options.
5555
# serverSideEncryption:
5656
# sseAlgorithm: aws:kms
5757
# kmsKeyID:
58+
5859
## Options for server-side encryption with customer-provided keys stored
5960
## on the client side
6061
# sseCustomerAlgorithm: AES256
@@ -66,6 +67,33 @@
6667
# minRetryDelay: 30
6768
# maxRetryDelay: 5
6869

70+
#--------------------Google Cloud Storage Configuration-----------------
71+
72+
# type:
73+
# gcs:
74+
75+
## The location and name of the bucket that you have configured on the GCS
76+
# bucket: pbm-testing
77+
78+
## The data directory to store backups in.
79+
# prefix:
80+
81+
## The size of data chunks in bytes to be uploaded to the storage bucket in a single request.
82+
# chunkSize: 10MB
83+
84+
## GCS access credentials
85+
# credentials:
86+
# clientEmail:
87+
# privateKey:
88+
# hmacAccessKey
89+
# hmacSecret:
90+
91+
## Retry upload configuration options.
92+
# retryer:
93+
# backoffInitial: 1
94+
# backoffMax: 30
95+
# backoffMultiplier: 2
96+
6997
#--------------------Filesystem Configuration---------------------------
7098
# type:
7199
# filesystem:
@@ -94,7 +122,7 @@
94122
#pitr:
95123
# enabled: false
96124

97-
## Adjust the size op oplog chunks (in minutes).
125+
## Adjust the size of oplog chunks (in minutes).
98126
# oplogSpanMin: 10
99127

100128
## Set a compression method and level
@@ -104,6 +132,11 @@
104132
## Save oplog slicing without the base backup
105133
# oplogOnly: false
106134

135+
## Node priority for saving oplog slices. The highest priority node is used.
136+
## Nodes with the same priority are randomly elected for saving oplog slices.
137+
# priority:
138+
139+
107140
#==========================Backup Configuration============================
108141

109142
## Adjust priority of mongod nodes for making backups. The highest priority
@@ -116,13 +149,31 @@
116149
# compression:
117150
# compressionLevel:
118151

152+
## The wait time (in seconds) for PBM to start backups.
153+
## This timeout controls how long PBM waits for the backup to
154+
## transition from initial state to running status.
155+
# timeouts:
156+
# startingStatus: 33
157+
158+
## Adjust the size of oplog chunks saved within a logical backup snapshot (in minutes).
159+
# oplogSpanMin: 10
160+
161+
## Set the number of parallel collections to process during a logical backup.
162+
## Default value is half of the number of CPU cores.
163+
# numParallelCollections:
164+
165+
119166
#==========================Restore Configuration===========================
120167

121168
## Options to adjust the memory consumption in environments with tight memory bounds.
122169
#restore:
123170
# batchSize: 500
124171
# numInsertionWorkers: 10
125172

173+
## Set the number of parallel collections to process during a logical restore.
174+
## Default value is half of the number of CPU cores.
175+
# numParallelCollections:
176+
126177
## Adjust concurrent download of data chunks from storage for physical restore.
127178
# numDownloadWorkers:
128179
# maxDownloadBufferMb:
@@ -133,3 +184,18 @@
133184
# mongodLocation:
134185
# mongodLocationMap:
135186
# "node-name:port":"path"
187+
188+
#=========================Logging Configuration==============================
189+
190+
## Options to adjust logging configuration for starting pbm-agents
191+
#log:
192+
193+
## The path to the log file. If PBM cannot write logs to the specified path it defaults to '/dev/stderr'
194+
# path: "/var/log/pbm.json"
195+
196+
## The log level. Supported values: debug, info, warn, error, fatal.
197+
# level: info
198+
199+
## Output logs in JSON format.
200+
# json: true
201+

packaging/scripts/mongodb-backup_builder.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,11 @@ install_deps() {
174174

175175
if [ "x$OS" = "xrpm" ]; then
176176
yum clean all
177+
if [ "x$RHEL" = "x10" ]; then
178+
yum -y install oracle-epel-release-el10
179+
fi
177180
INSTALL_LIST="epel-release git wget"
178-
if [ "x$RHEL" = "x2023" ]; then
181+
if [ "x$RHEL" = "x2023" -o "x$RHEL" = "x10" ]; then
179182
INSTALL_LIST="git wget"
180183
fi
181184
yum -y install ${INSTALL_LIST}

0 commit comments

Comments
 (0)