Skip to content

lferran/memcached-stress

Repository files navigation

memcached-stress

Guillotina memcached driver stress-test k8s job.

  • Defines a k8s job that when deployed, will execute a custom guillotina command to start the stress test.

  • The command generates random memcached traffic against a configured set of memcached instances.

The test runs for 1 hour, where traffic is gradually increased (25, 50, 70 and 100%, correspondingly after a few minutes each).

Experiment is ran over a deterministic set of keys, to be able to test hits and missess too. Each memcached operation is either get, set or delete, each having a 0.5, 0.3 and 0.2 probability, correspondingly.

Docker

Start a memcached instance

docker run -p 11211:11211 -d memcached:1.6.7

Build the image

docker build --network host --no-cache -t memcached-test:local .

Run the stress test

docker run --env MEMCACHED_HOSTS="localhost:11211" memcached-test:local g -c config.json stress --time 60 --rate 20

Configuration

Set the following environment variable to configure memcached hosts

export MEMCACHED_HOSTS="host1:11211, host2:11211"

To configure the amount of traffic

Run the command

This will run the experiment up to 20 requests per second for 60 minutes

g -c config.json stress --rate=20 --time=60

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors