Skip to content

Commit

Permalink
docs: topology_monitoring_ parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
sophia-bq committed Jan 27, 2025
1 parent 98759cf commit 635e4d5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@ In addition to the parameters that you can configure for the underlying driver,

Please refer to the original [Failover Plugin](./UsingTheFailoverPlugin.md) for more details about error codes, configurations, connection pooling and sample codes.

If you would like to use different parameters for the topology monitoring connections, these can be added with the prefix `topology_monitoring_`. For example, if you wanted to connect with a different user, you could pass in the parameter `user: "admin"` and `topology_monitoring_user: "other_user"`. Within the main program connections will connect with the `admin` user and ignore `other_user`. When monitoring the topology `other_user` will be used to connect, replacing `admin`.

### Sample Code

[PostgreSQL Failover Sample Code](../../../examples/aws_driver_example/aws_failover_postgresql_example.ts)<br>
Expand Down

0 comments on commit 635e4d5

Please sign in to comment.