Edge Private Cloud 4.15.07 Cassandra Code With Configuration (CWC)

1 1 573

In 4.15.07, a new feature Code with Configuration (CWC) is introduced to the Cassandra component.

Changing Cassandra configurations requires understanding of the following:

  • What is CWC for? Preserve custom configuration settings between release upgrades, prevent product outage due to overridden configuration, and reduce troubleshooting time.
  • CWC directory hierarchy in 4.15.07: ${APIGEE_ROOT}/apigee4/source contains Cassandra-related files with the configuration names. ${APIGEE_ROOT}/apigee4/token/application/cassandra.properties contains all of the default configuration values for Cassandra.
  • Location of the change: Create/update the file ${APIGEE_ROOT}/apigee4/customer/application/cassandra.properties and add the configuration definition to the file.

How to make the change:

For example, to change authenticator in cassandra.yaml from AllowAllAuthenticator to PasswordAuthenticator.

  1. Find the configuration name by searching for "authenticator" in ${APIGEE_ROOT}/apigee4/source/conf/cassandra/cassandra.yaml and it is authenticator: {T}conf_cassandra_cassandra_authenticator{/T}
  2. Add/edit the file ${APIGEE_ROOT}/apigee4/customer/application/cassandra.properties to include this line: conf_cassandra_cassandra_authenticator=PasswordAuthenticator
  3. Restart the Cassandra component by either:
    • ${APIGEE_ROOT}/apigee4/bin/all-stop.sh, then ${APIGEE_ROOT}/apigee4/bin/all-start.sh
    • or
    • ${APIGEE_ROOT}/apigee4/etc/init.d/apigee-cassandra stop, then ${APIGEE_ROOT}/apigee4/etc/init.d/apigee-cassandra start
  4. Verify the change in ${APIGEE_ROOT}/apigee4/conf/cassandra/cassandra.yaml.

Changes made to ${APIGEE_ROOT}/opt/apigee4/conf/cassandra/cassandra.yaml directly could be overridden after a Cassandra restart.

Please be aware that the CWC feature will be applied to all components in 4.16.01. There are improvements and directory hierarchy changes.The feature will have a complete set of instructions.

Comments
jonesfloyd
Staff

Hey @corinna fu - Sorry for the lag time. This is ready to publish. When you're ready, use the cog icon next to the title to move it to the forum you want. Thanks.

Version history
Last update:
‎01-07-2016 06:14 PM
Updated by: