Enable one time Cassandra Authentication and Authorization check and cache it forever

后端 未结 1 725
不思量自难忘°
不思量自难忘° 2020-12-20 07:26

I use the authentication and authorization in my single node Cassandra setup, But I frequently get the following error in Cassandra server logs,

ERROR [Share         


        
相关标签:
1条回答
  • 2020-12-20 08:05

    This message is really a signal of something wrong with your setup - machines are overloaded, or something like.

    Instead of disabling these settings completely (changing password or chaning role will require restarting of the nodes), I would suggest to do following instead:

    • Set roles_validity_in_ms, permissions_validity_in_ms & credentials_validity_in_ms to some quite high value, something like month;
    • Configure roles_update_interval_in_ms, credentials_update_interval_in_ms & permissions_update_interval_in_ms to some value, like a minute

    It also makes sense to tune permissions_cache_max_entries if you have big number of users & tables.

    0 讨论(0)
提交回复
热议问题