Skip to main content
Version: Previous

Database technology - Aerospike

Genesis supports Aerospike. To connect to Aerospike, use the system definition items listed below.

SettingDescription
DbNamespaceThis value must contain the Aerospike namespace you want to use.
DbModeThis can be one of two values: VANILLA for an Aerospike Community installation and DURABLE_DELETE if you are using Aerospike Enterprise.
DbHostThis accepts a host value for the Aerospike server host to connect to.
DbPortThis sets a port value for the Aerospike server host to connect to.
DbUsernameThis must be the db username. Supports encrypted values.
DbPasswordThis must be the db password. Supports encrypted values.

Sample configurations

Connection configuration with plain text credentials

systemDefinition {
global {
...
item(name = "DbLayer", value = "AEROSPIKE")
item(name = "DbHost", value = "192.168.10.10")
item(name = "DbPort", value = "4333")
item(name = "DbMode", value = "VANILLA")
item(name = "DbUsername", value = "aerospike_user")
item(name = "DbPassword", value = "aerospike_password")
...
}
systems {
system(name = "DEV") {
...
item(name = "DbNamespace", value = "trades")
...
}
}
...
}

Connection configuration with encrypted credentials

systemDefinition {
global {
...
item(name = "DbLayer", value = "AEROSPIKE")
item(name = "DbHost", value = "192.168.10.10")
item(name = "DbPort", value = "4333")
item(name = "DbMode", value = "VANILLA")
item(name = "DbUsername", value = System.getenv("AEROSPIKE_USERNAME"), encrypted = true)
item(name = "DbPassword", value = value = System.getenv("AEROSPIKE_PASSWORD"), encrypted = true)
...
}
systems {
system(name = "DEV") {
...
item(name = "DbNamespace", value = "trades")
...
}
}
...
}