Skip to main content

Automata Redis

Project description

Automata Redis

both for conventional key-value (including hashset) data.

Packaging

python3 -m build

LXD Container

Create LXD container

  1. cd ~/projects/scripts/bash-scripts/lxc/
  2. ./lxc-create-basic-ubuntu-container.sh automata-all 10.104.71.60 /projects/code/automata-projects/automata-deploy
  3. lxc.list

Add these aliases to vi ~/bash/bash-profile-aliases/aliases/bash-projects

# automata all
alias automata-all.lxc.start="lxc.start-container automata-all"
alias automata-all.lxc.stop="lxc.stop-container automata-all"
alias automata-all.lxc.run-in="lxc.run-in.container automata-all"
alias automata-all.project="cd ~/projects/code/automata-projects/automata-deploy"

Remember to run source ~/.bashrc

Container Info

  • lxc image list images: ubuntu/22.04 amd64

Container Manipulation

  • lxc stop automata-all
  • lxc delete automata-all

Accessing Container

  • automata-all.lxc.run-in

Redis (Container)

Redis Install

  1. sudo apt update
  2. sudo apt install redis

Redis Config

  1. sudo vi /etc/redis/redis.conf
  2. Change to bind 10.104.71.60 127.0.0.1 (allow second IP for accessing on host by default)
  3. sudo systemctl restart redis-server

Redis Port (outside container)

  • nc -zv 10.104.71.60 6379

Stop and start the container to ensure redis, has installed correctly.

Backup (Redis)

  1. CONFIG get dir (in redis-cli) Tells where the dump file is located
  2. SAVE
  3. /var/lib/redis (should be dump.rdb)
  4. sudo systemctl status redis-server
  5. sudo systemctl stop redis-server
  6. sudo cp /var/lib/redis/dump.rdb BACKUP-DIR

Restore (Redis)

  1. sudo systemctl stop redis-server
  2. sudo cp BACKUP-DIR /var/lib/redis/dump.rdb
  3. sudo systemctl start redis-server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Built Distribution

File details

Details for the file persuader-technology-automata-redis-0.3.7.tar.gz.

File metadata

File hashes

Hashes for persuader-technology-automata-redis-0.3.7.tar.gz
Algorithm Hash digest
SHA256 6963132c8600d411c9d68fe81bf69dc65ae8794ed525c5532c47a2a354290155
MD5 c529b767e416d7275062914bfa3c065e
BLAKE2b-256 14e5ac760cc0bb833d27c7f7b1c71a35d3e868df199e31a255cd70ca8ff6c9a3

See more details on using hashes here.

File details

Details for the file persuader_technology_automata_redis-0.3.7-py3-none-any.whl.

File metadata

File hashes

Hashes for persuader_technology_automata_redis-0.3.7-py3-none-any.whl
Algorithm Hash digest
SHA256 284709cc536683f42dffef47b28efab99729f22a3280d1fbfcbdd2c786776ea8
MD5 f94746dc6a1eb7b1c911a9af839d9733
BLAKE2b-256 c49aa57f9a734915bc50efee7b13ce55385c42b05b96794df37eb35d9b1f2515

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page