aws / aws-sigv4-auth-cassandra-java-driver-plugin

A SigV4 authentication plugin for the open-source DataStax Java Driver for Apache Cassandra. Allows use of AWS IAM users and roles for direct authentication.
Apache License 2.0
13 stars 14 forks source link

DefaultTopologyMonitor and DefaultTokenFactoryRegistry Warning #24

Closed mehmetdreamgames closed 2 years ago

mehmetdreamgames commented 2 years ago

We have moved our cassandra cluster to Amazon Keyspaces, in practice we did not face critical issues so far. But there's an already open discussion for DefaultTopologyMonitor and TokenFactory warnings. We have facing issues related to these warnings when we attempted to use in production.

We have following configuration as it's suggested by AWS experts in the discussion:

metadata { schema { enabled = false } token-map { enabled = false } }

The warnings are appearing after a period like ~24 hours without any action on our side. You can see the below chart, we have ~35k warnings coming from 10 different pods .

image

We are using AWS sigv4 plugin and we implemented as it's suggested in Sample Application

BarisGece commented 2 years ago

https://stackoverflow.com/questions/70877020/amazon-keyspaces-defaulttokenfactoryregistry-and-defaulttopologymonitor-causes

"This is indeed a non-standard, unsupported partitioner: com.amazonaws.cassandra.DefaultPartitioner. Token-aware routing won't work with AWS Keyspaces unless you write your own TopologyMonitor and TokenFactory."

dchenbec commented 2 years ago

Keyspaces now supports the standard RandomPartitioner and can be changed at the account level via either the console or via CQL: https://docs.aws.amazon.com/keyspaces/latest/devguide/working-with-partitioners.html