Advanced steps for installing Maps API
Creating and connecting the Cassandra keyspace
To store data about tiles, the service uses Cassandra keyspaces.
If Cassandra's security settings allow automatic creation of keyspaces, the keyspace for storing tiles data will be automatically recreated when installing or updating the map service.
The name of the keyspace is constructed based on:
- the data type (
web
,raster
ornative
); - the value of the
cassandra.environment
parameter; - the Cassandra cluster name;
- the Unix time when the manifest was generated.
Keyspace name example: dgis_tileserver_web_test_1653477379
.
If Cassandra's security settings do not allow automatic creation of keyspaces, perform the following actions.
On initial installation:
- Create a keyspace manually.
- Specify the name of this keyspace in the
cassandra.types[0].keyspace
setting of thevalues-tiles.yaml
configuration file:
cassandra:
hosts:
- tiles-cassandra-1.storage.example.local
- tiles-cassandra-2.storage.example.local
- tiles-cassandra-3.storage.example.local
replicaFactor: 3
consistencyLevelRead: LOCAL_QUORUM
consistencyLevelWrite: LOCAL_QUORUM
types:
- kind: web
- kind: raster
keyspace: TILES-KEYSPACE-NAME
credentials:
user: cassandrauser
password: CASSANDRAPASSWORD-DWTYB05URKZJEDDN
jmxUser: jmxuser
jmxPassword: JMXPASSWORD-MNZLQTFH0MDDHIX8
On subsequent updates:
- Disable automatic import and clean up of tile data by specifying the
cassandra.types[0].importAndCleanerDisabled: true
parameter in thevalues-tiles.yaml
configuration file:
cassandra:
hosts:
- tiles-cassandra-1.storage.example.local
- tiles-cassandra-2.storage.example.local
- tiles-cassandra-3.storage.example.local
replicaFactor: 3
consistencyLevelRead: LOCAL_QUORUM
consistencyLevelWrite: LOCAL_QUORUM
types:
- kind: web
- kind: raster
keyspace: TILES-KEYSPACE-NAME
importAndCleanerDisabled: true
credentials:
user: cassandrauser
password: CASSANDRAPASSWORD-DWTYB05URKZJEDDN
jmxUser: jmxuser
jmxPassword: JMXPASSWORD-MNZLQTFH0MDDHIX8