I need to set GCGraceSeconds to 0, because I have only one node, but I cannot find where I can set value to this. Is it possible to set from astyanax or is it in some settings file?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In more recent versions of cassandra, you actually set
gc_grace_secondson a per column family basis as part of the schema. From what I can tell, Astyanax currently doesn’t support setting that property. There is no corresponding method in theColumnFamilyDefinitionclass.https://github.com/Netflix/astyanax/blob/master/src/main/java/com/netflix/astyanax/ddl/ColumnFamilyDefinition.java
You can use the cassandra-cli tool to set the property on any existing column families if you wish.
Additionally, it doesn’t look like it would be too hard to add support to Astyanax. I’m sure they would accept a pull request.
Update
Astyanax (for a while) now supports this setting. See ColumnFamilyDefinition. This can be set in the astyanax column family creation like so: