Skip to content

j-woz/redis-tests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

redis-tests

Prototyping Redis functionality on relevant computing systems for ExaEpi.

Polaris case

The idea here is that the user installs a personal Redis. Then for each run:

  1. Launches the DB server on the login node

  2. Launches the compute jobs (via Merlin?), all of which have access to the DB

  3. When the compute job is completing, one of the jobs will use the Redis client to issue the shutdown command

  4. On an error, the user will have to interactively shutdown the DB

  5. The data will be persisted for future runs or analysis

Installation

$ git clone [email protected]:redis/redis.git
$ cd redis
# Switch to a stable branch tag:
$ git checkout 7.2.0
$ nice make

Run

Get the login node IP address via ip addr. E.g. 10.201.0.56 . (There are many NICs, we could write a script to make this easier.)

$ nice -n 19 redis/src/redis-server redis/redis.conf

For a persistent password:

  1. Edit redis/redis.conf

  2. Change the requirepass field to the password

For a non-persistent password:

Set a password by connecting from localhost.

$ redis/src/redis-cli
> config set requirepass PASSWORD

Terminate with Ctrl-C or issue shutdown from client.

Client access

Start interactive Polaris session with something like:

$ qsub -I -A PROJECT -q debug -l 'select=1:system=polaris' -l 'walltime=00:60:00' -l 'filesystems=home:eagle:grand' -- /usr/bin/env 'SHLVL=0' zsh -l

Run the interactive client with the server IP address and authenticate:

$ redis/src/redis-cli -h 10.201.0.56
> auth PASSWORD
# Now you can issue arbitrary Redis queries
> set x 42
OK
> get x
"42"

Use of Wozniak’s installation on Polaris

  1. Add to PATH: ~wozniak/Public/sfw/redis/bin

  2. Copy redis.conf to an editable location:

    $ cp ~wozniak/Public/sfw/redis/examples/redis.conf /path/to/redis.conf
  3. Edit redis.conf to:

    1. change the value of dir to a writeable directory

    2. change the value of dbfilename to a writable filename in dir

  4. Run redis-server /path/to/redis.conf

  5. When you shutdown the server, the state is saved in your dir/dbfilename location.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages