Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clarify how to monitor Aurora cluster with multiple readers #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions install/amazon_rds/04_configure_the_collector_docker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ Create a new configuration file (e.g. named `pganalyze_collector.replica.env`) a
DB_HOST=mydbcluster.cluster-ro-123456789012.us-east-1.rds.amazonaws.com
```

If you have multiple readers you want to monitor, you either need to add it to
the content of `CONFIG_CONTENTS`, or run one pganalyze collector Docker
container for each instance.
If you have multiple readers with a cluster, you either need to add each instance
endpoint to the content of `CONFIG_CONTENTS` (e.g. add each sections like `[reader_instance1]`, `[reader_instance2]`),
or run one pganalyze collector Docker container for each instance.

## Test snapshot

Expand Down
2 changes: 1 addition & 1 deletion install/amazon_rds/04_configure_the_collector_ec2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ db_host = mydbcluster.cluster-ro-123456789012.us-east-1.rds.amazonaws.com
For writer instances this is supported for any size of cluster, but for
reader instances this is only supported in two-node clusters (i.e. single reader instance).

If you have multiple readers you want to monitor you instead need to specify each instance endpoint separately:
If you have multiple readers with a cluster, you instead need to specify each instance endpoint separately:

```
[instance1]
Expand Down
7 changes: 4 additions & 3 deletions install/amazon_rds/04_configure_the_collector_ecs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ Use the `cluster-ro` endpoint as the `DB_HOST` of the environment variables:
{"name": "DB_HOST", "value": "mydbcluster.cluster-ro-123456789012.us-east-1.rds.amazonaws.com"},
```

If you have multiple readers you want to monitor, you either need to add it to
the content of the `pganalyze_collector.conf` file, then update the `/pganalyze/CONFIG_CONTENTS`
SSM secret, or run one pganalyze collector Docker container for each instance.
If you have multiple readers with a cluster, you either need to add each instance
endpoint to the content of the `pganalyze_collector.conf` file (e.g. add each section like `[reader_instance1]`, `[reader_instance2]`),
then update the `/pganalyze/CONFIG_CONTENTS` SSM secret, or run one pganalyze
collector Docker container for each instance.

## Registering the task and launching it

Expand Down
6 changes: 3 additions & 3 deletions install/amazon_rds/04_configure_the_collector_eks.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ Use the `cluster-ro` endpoint as the `DB_HOST` of the environment variables:
DB_HOST: mydbcluster.cluster-ro-123456789012.us-east-1.rds.amazonaws.com
```

If you have multiple readers you want to monitor, you either need to specify
using `CONFIG_CONTENTS` environment variable, or install one pganalyze collector
Helm chart for each instance.
If you have multiple readers with a cluster, you either need to add each instance
endpoint to the content of `CONFIG_CONTENTS` (e.g. add each sections like `[reader_instance1]`, `[reader_instance2]`),
or install one pganalyze collector Helm chart for each instance.

## Install a Helm chart

Expand Down
2 changes: 1 addition & 1 deletion log-insights/setup/heroku-postgres/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
href: log-insights/setup/heroku-postgres/01_add_log_drain
- name: "Step 2: Verify Log Drain"
href: log-insights/setup/heroku-postgres/02_verify_log_drain
- name: "Step 3: Restar Collector"
- name: "Step 3: Restart Collector"
href: log-insights/setup/heroku-postgres/03_restart_collector