Skip to content

Commit

Permalink
enable crdr
Browse files Browse the repository at this point in the history
  • Loading branch information
wojcik-dorota committed Nov 25, 2024
1 parent 293be98 commit 69b0a00
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/products/postgresql/crdr/crdr-overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ Throughout the CRDR cycle, CRDR peer services or service nodes go into the follo

## Limitations

- To set up CRDR, your primary service needs at least a Startup plan. Hobbyist and Free
plans are not supported.
- RRS needs to use the same service plan and cloud provider as the PRS.

## How it works
Expand Down
32 changes: 32 additions & 0 deletions docs/products/postgresql/crdr/enable-crdr.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,45 @@
---
title: Set up cross-region disaster recovery in Aiven for PostgreSQL®
sidebar_label: Set up CRDR
limited: true
keywords: [recovery, primary, outage, failure, failover]
---

import ConsoleLabel from "@site/src/components/ConsoleIcons"

Enable the [cross-region disaster recovery (CRDR)](/docs/products/postgresql/crdr/crdr-overview) feature in in Aiven for PostgreSQL® by creating a recovery service, which takes over from a primary service in case of region outage.

## Prerequisites

- Powered-on Aiven for PostgreSQL service with a Startup plan at minimum

:::tip
If your Aiven for PostgreSQL service uses a Hobbyist plan or a Free plan,
[upgrade your free plan](/docs/platform/concepts/free-plan#upgrading-and-downgrading) or
[change your Hobbyist plan](/docs/platform/howto/scale-services) to at least a Startup
plan.
:::

- Access to the [Aiven Console](https://console.aiven.io/)

## Set up a recovery service

Create a [CRDR setup](/docs/products/postgresql/crdr/crdr-overview#crdr-setup) in the the
[Aiven Console](https://console.aiven.io/):

1. Log in to the the [Aiven Console](https://console.aiven.io/), and go to your primary
Aiven for PostgreSQL service.
1. Click <ConsoleLabel name="disasterrecovery"/> in the sidebar.
1. On the **Cross region disaster recovery** page, click **Create recovery service**.
1. In **Create recovery service** wizard:
1. Select a cloud provider and a cloud region.
1. Click **Create recovery service**.

Througout the process of creating the recovery service, the recovery service is in the
**Rebuilding** state. As soon as the recovery service is ready, its status changes to
**Passive**, which means your CRDR setup is up and running.

## Related pages

- [Aiven for PostgreSQL® CRDR failover to the recovery region](/docs/products/postgresql/crdr/crdr-failover-to-recovery)
- [Aiven for PostgreSQL® CRDR revert to the primary region](/docs/products/postgresql/crdr/crdr-revert-to-primary)
6 changes: 6 additions & 0 deletions src/components/ConsoleIcons/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,12 @@ export default function ConsoleLabel({name}): ReactElement {
<ConsoleIconWrapper icon={ConsoleIcons.queries} /> <b>Query editor</b>
</>
);
case 'disasterrecovery':
return (
<>
<ConsoleIconWrapper icon={ConsoleIcons.disasterRecovery} /> <b>Disaster recovery</b>
</>
);
default:
return (
<span style={{padding: 2, backgroundColor: 'red', color: '#ffffff'}}>
Expand Down

0 comments on commit 69b0a00

Please sign in to comment.