Skip to content

Commit 38178e5

Browse files
authored
docs(rdb): improve read replica documentation (#72)
1 parent c8b0846 commit 38178e5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/clients/src/api/rdb/v1/api.gen.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ export class RdbV1GenAPI extends API {
713713
)
714714

715715
/**
716-
* Create a read replica
716+
* You can only create a maximum of 3 read replicas for one instance.
717717
*
718718
* @param request - The request {@link CreateReadReplicaRequest}
719719
* @returns A Promise of ReadReplica
@@ -777,7 +777,9 @@ export class RdbV1GenAPI extends API {
777777
)
778778

779779
/**
780-
* Reset a read replica
780+
* Resetting a read replica resyncs data from the leader node. This operation
781+
* can take some time, depending on the database's size. During this
782+
* operation, the read replica will not be available. Endpoints will not change.
781783
*
782784
* @param request - The request {@link ResetReadReplicaRequest}
783785
* @returns A Promise of ReadReplica
@@ -800,7 +802,7 @@ export class RdbV1GenAPI extends API {
800802
)
801803

802804
/**
803-
* Create a new endpoint for a given read replica
805+
* A read replica can have at most one direct access and one private network endpoint.
804806
*
805807
* @param request - The request {@link CreateReadReplicaEndpointRequest}
806808
* @returns A Promise of ReadReplica

packages/clients/src/api/rdb/v1/types.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ export type CreateEndpointRequest = {
13011301
export type DeleteEndpointRequest = {
13021302
/** Region to target. If none is passed will use default region from the config */
13031303
region?: Region
1304-
/** UUID of the endpoint you want to delete */
1304+
/** This endpoint can also be used to delete a read replica endpoint. */
13051305
endpointId: string
13061306
}
13071307

0 commit comments

Comments
 (0)