...
Cassandra DB Server needs to be installed as Fiorano API Management uses Cassandra as the data store for all information that is looked up while a request is being processed such as the subscriptions, clients, and distributed quotas. Cassandra Database is an open source database that provides linear scalability and high availability with proven fault-tolerance in storing details that need to be looked up on-the-fly.
Installing Cassandra
- Download Cassandra Version 3.x from the link https://academy.datastax.com/planet-cassandra/cassandra
- Install Cassandra by referring to the directions provided at http://cassandra.apache.org/doc/latest/getting_started/index.html.
- Make the changes mentioned in the subsections below if it is applicable to you; else move to the Running the Cassandra server section.Run
Cassandra in a Windows environment
Before starting Cassandra 3.
...
Linux: Open Command prompt from CASSANDRA_HOME and run the following command:
Code Block |
---|
bin/cassandra -R -f |
Windows: Start Cassandra from Windows Services:
...
8 or 3.9 in Windows environment as a service, perform the following actions to enable the database:
- Go to <CASSANDRA_HOME>/conf.
- Open the cassandra.yaml file.
- Find the cdc_raw_directory parameter.
Un-comment the property and rename the value as below:
Code Block <CASSANDRA_HOME>/data/cdc_raw
Info title Example cdc_raw_directory: "C:/Program Files/DataStax-DDC/data/cdc_raw"
Enabling Connection to a Remote Cassandra Server
If Cassandra Server is running on a different system, the two steps below need to be performed:
Step 1: Enabling Remote Access to Cassandra Server
Since Cassandra server will be hosted in the local system alone by default, cassandra cannot be accessed from any other systems. To enable remote access, perform the following actions:
- Go to the location <CASSANDRA_HOME>/conf.
- Open the cassandra.yaml file.
- Replace the value of the following parameters with the IP address of the system where Cassandra DB would be running:
- rpc_address
- listen_address
Step 2: Configuring AGS and AMS Profiles
Fiorano API Management server profiles are preconfigured to run Cassandra in the local system with default values of Cassandra Data Store URL and Keyspaces as below:
...
Tip |
---|
IP Address has to be changed in eStudio Profile Management. Refer to the Changing Cassandra Data Store URL and Keyspace values section to configure these. |
Cassandra
...
Before starting Cassandra 3.8 or 3.9 in Windows environment as a service, perform the following actions to enable the database:
- Go to <CASSANDRA_HOME>.
- Open the cassandra.yaml file.
- Find the cdc_raw_directory parameter.
Un-comment the property and rename the value as below:
Code Block <CASSANDRA_HOME>/data/cdc_raw
Info title Example cdc_raw_directory: "C:/Program Files/DataStax-DDC/data/cdc_raw"
Cassandra as a Cluster
...
as a Cluster
Warning |
---|
To avoid a single point of failure of Cassandra servers, configure Cassandra as a cluster. |
Running the Cassandra server
Linux: Open Command prompt from CASSANDRA_HOME and run the following command:
Code Block bin/cassandra -R -f
Windows: Start Cassandra from Windows Services:
Tip In the Windows Component Services panel, Cassandra server will be displayed as "DataStax DDC Server <VersionNumber>".
Anchor | ||||
---|---|---|---|---|
|
...