After the API management installation, the datastore URL is preconfigured for the IP address of the local system (localhost) and the port number as 9042. If the servers are running on a different system, the cassandra datastore url needs to be configured in the server profiles accordingly.
Similarly, the keyspace is preconfigured as "API". This value can be changed if required.
The sections below illustrate steps to configure the Datastore URL as well as the Keyspace in the API Management Server and API Gateway server respectively.
API Management Server (AMS)
Configuring DataStoreURL for AMS
Before starting the AMS Server, perform the following actions to provide the DataStoreURL in the Server profile.
- Go to the eStudio Profile Management.
- Navigate through the server profile <ServerProfile> > APIMANAGER > Fiorano > APIManager > DeveloperApps > DeveloperAppsManager
In the DataStoreURL property, provide the IP address or hostname of the machine where the Cassandra DB is running and the port on which it is listening to.
Configuring Keyspace for AMS
To configure keyspace with the new value, edit the KeyspaceName property below the DataStireURL property configured above. The KeyspaceName default value is "API".
Figure 1: DataStoreURL and Keyspace properties for AMS
Configuring API Trace and keyspace for AMS
API Trace tracks API calls passing through the API management server and stores into the cassandra database. Edit the DataStoreURL at <ServerProfile> > APIMANAGER > Fiorano > APIManager > trace > APITraceManager to configure the database.
To configure the keyspace with the new value, edit the KeyspaceName property below the DataStireURL property configured above. The KeyspaceName default value is "API".
Figure 2: DataStoreURL and Keyspace properties for API Trace in AMS
API Gateway Server (AGS)
This is the server on which the projects are deployed. This server will be the place where clients will connect before their traffic is stored for analysis and from where requests are redirected to the backend target URLs. There can be multiple Gateway servers running on a single network controlled by an API Management Server.
Configuring DataStoreURL for AGS
Before starting the AGS Server, perform the following actions to provide the DataStoreURL in the Server profile.
- Go to the eStudio Profile Management.
- Navigate through the server profile <ServerProfile> > APIGATEWAY > Fiorano > APIGateway > APIGatewayManager
Provide the IP address of the machine where the Cassandra DB is running in DataStoreURL property.
Configuring Keyspace for AGS
To configure the keyspace with the new value, edit the KeyspaceName property. The default value is "API".
Figure 3: DataStoreURL and Keyspace properties for API Trace in AGS