10,000 items stored in cache via gRPC calls in 0.588 seconds when running 4 cache servers on localhost with capacity of 100 items each, when all serve

GitHub - malwaredllc/minicache: Distributed cache with client-side consistent hashing, distributed leader-elections, arbitrary cluster sizes, support for both HTTP/gRPC interfaces, secured with mTLS.

submited by
Style Pass
2022-05-15 03:30:05

10,000 items stored in cache via gRPC calls in 0.588 seconds when running 4 cache servers on localhost with capacity of 100 items each, when all servers stay online throughout the test

10,000 items stored in cache via gRPC calls in 8.69 seconds when running 4 cache servers on localhost with capacity of 100 items each, when all servers stay online throughout the test

A useful test is to to manually stop/restart arbitrary nodes in the cluster and observe the test log output to see the consistent hashing ring update in real time.

Run docker-compose up to spin up all of the containers defined in the docker-compose.yml file. By default the config file defines 4 cache server instances, 3 of which are the initial nodes defined in the configs/nodes-docker.json config file, and 1 of which is an extra server node which dynamically adds itself to the cluster, in order to demonstrate this functionality.

Run docker build -t cacheclient -f Dockerfile.client . from the project root directory to build a Docker image for the client.

Leave a Comment