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

[Docs] Include a code example for rack-awareness #394

Open
GeoffMontee opened this issue Feb 19, 2025 · 1 comment
Open

[Docs] Include a code example for rack-awareness #394

GeoffMontee opened this issue Feb 19, 2025 · 1 comment

Comments

@GeoffMontee
Copy link

Starting with 1.8.0, our release of GoCQL supports rack-awareness.

We have some limited documentation about this feature here:

gocql/doc.go

Line 131 in b2d210a

// # Rack-level awareness

Perhaps we could include a more complete example in the documentation. For example:

cluster := gocql.NewCluster("192.168.1.1", "192.168.1.2", "192.168.1.3")
cluster.PoolConfig.HostSelectionPolicy = gocql.RackAwareRoundRobinPolicy("AWS_US_EAST_1", "us-east-1a")

We might also want to include a disclaimer about AWS specifically, where AZs do not have consistent names between different AWS accounts. Maybe the documentation can provide more detailed guidance about this or refer to the AWS documentation that mentions how to obtain the internal AZ IDs.

@GeoffMontee
Copy link
Author

We might also want to include a disclaimer about AWS specifically, where AZs do not have consistent names between different AWS accounts. Maybe the documentation can provide more detailed guidance about this or refer to the AWS documentation that mentions how to obtain the internal AZ IDs.

Here's the corresponding AWS Documentation page: Availability Zone IDs for your AWS resources

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant