This section describes the deployment procedures for the continuous recovery method and the streaming replication method of the hot standby configuration.
Custom resource definitions for FEPCluster in the production environment do not have parameters that are only used in hot standby configurations. When using the continuous recovery method, define the FEPCluster custom resource in the disaster recovery environment as follows.
apiVersion: fep.fujitsu.io/v2
kind: FEPCluster
metadata:
…
spec:
fep:
standby:
enable: true
method: archive-recovery
pgBackrestConf: |
[global]
log-path=/database/log/backup
repo1-type=azure
repo1-path=< Backup path of primary/ cluster from which data is to be restored>
repo1-azure-account=<my storage account>
repo1-azure-container=fepbackups
repo1-azure-key=<my storage account key >
…When using the streaming replication method, define as follows.
apiVersion: fep.fujitsu.io/v2
kind: FEPCluster
metadata:
...
spec:
fep:
standby:
enable: true
method: streaming
streaming:
host: <LoadBalancer IP>
port: 27500
pgBackrestConf: |
[global]
log-path=/database/log/backup
repo1-type=azure
repo1-path=< Backup path of primary/ cluster from which data is to be restored>
repo1-azure-account=<my storage account>
repo1-azure-container=fepbackups
repo1-azure-key=<my storage account key >
...For streaming replication, FEPClusterCR is defined as above, but a separate LoadBalancer must be deployed.
kind: Service
apiVersion: v1
metadata:
name: my-fep-internal-svc
namespace: sample-namespace
annotations:
service.beta.kubernetes.io/azure-load-balancer-internal: 'true'
spec:
ports:
- protocol: TCP
port: 27500
type: LoadBalancer
selector:
app: <my-fep-cluster>-sts
feprole: masterThe parameters of FEPClusterCR in the disaster recovery environment that are required to realize a hot standby configuration are shown below. For parameter details, refer to "FEPCluster Parameters" in the Reference.
spec.fep.standby.enable
spec.fep.standby.method
spec.fep.standby.pgBackrestConf
spec.fep.standby.streaming.host
spec.fep.standby.streaming.port