Skip to content

Aerospike DB cluster in docker-compose with autodiskovery and scaling

License

Notifications You must be signed in to change notification settings

mopga/aerospike-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Aerospike DB cluster in docker-compose with auto discovery and scaling ability.

INSTALL AND RUN

  1. You need docker and docker-compose installed in your system. Versions:

    • Docker 18.09.6
    • docker-compose 1.21.0
  2. clone the repo

  3. run docker-compose up -d

  4. If you need more then 1 db server use command: docker-compose scale aerospikedb=$number_of_instances

TESTING

To test the succes you can run commands:

docker exec -it <aerospikedb container> asadm -e info

for example:

docker exec -ti aerospike_aerospikedb_1 asadm -e info

if the cluster is up, you can connect and run commands to store\read data:

docker exec -ti <meshworker container name> aql -h <aerospike_db container name>

insert into dev.foo (PK, foo) values ('123','my string') select * from dev.foo

About

Aerospike DB cluster in docker-compose with autodiskovery and scaling

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages