Home
Available on AWS Marketplace

Valkey 8.1

Rocky Linux 10 | Production-Ready | Auto-Tuning

Complete AMI guide for your Valkey 8.1 in-memory data store. Valkey is a high-performance, Redis-compatible key-value store backed by the Linux Foundation.

Valkey 8.1.6 OS Rocky 10 Port 6379

Quick Start Guide

Follow these steps to access your Valkey instance and start using it.

1

SSH to Your Instance

Connect to your EC2 instance using SSH with your key pair.

ssh -i your-key.pem rocky@<your-instance-ip>
2

Find Your Credentials

View the auto-generated Valkey password.

sudo cat /var/lib/valkey/credentials.txt
3

Connect with valkey-cli

Use the Valkey CLI to connect locally.

valkey-cli -a <password>
4

Test Your Connection

Verify Valkey is working with a simple PING command.

# Inside valkey-cli: PING # Response: PONG SET mykey "Hello Valkey" GET mykey

Credentials & Connection Details

All credentials are automatically generated on first boot and stored securely.

Valkey Connection

  • Port: 6379
  • Password: See credentials file
  • Bind: 0.0.0.0 (all interfaces)
  • Persistence: AOF enabled

Auto-Tuning

  • maxmemory: 75% of RAM
  • maxmemory-policy: allkeys-lru
  • tcp-keepalive: 300 seconds
  • Data directory: /valkeydata

Credentials File Location

sudo cat /var/lib/valkey/credentials.txt

Connection String Format

redis://<password>@<your-instance-ip>:6379

Security Reminder

After saving your password, delete the credentials file for security: sudo rm /var/lib/valkey/credentials.txt

Managing Valkey

Common commands for managing your Valkey instance.

Service Management

Control the Valkey service using systemctl.

# Check status sudo systemctl status valkey # Restart service sudo systemctl restart valkey # View logs sudo journalctl -u valkey -f

Configuration File

Edit the Valkey configuration file.

sudo nano /etc/valkey/valkey.conf # After changes, restart: sudo systemctl restart valkey

Check Memory Usage

View memory statistics and configuration.

# Inside valkey-cli: INFO memory CONFIG GET maxmemory

Remote Connection

Connect from another machine.

valkey-cli -h <instance-ip> -a <password> # Or use redis-cli (compatible) redis-cli -h <instance-ip> -a <password>

Security Recommendations

Follow these recommendations to secure your Valkey instance.

Security Groups

Restrict port 6379 to only trusted IPs. Never expose Valkey to the public internet without proper security.

Strong Password

The auto-generated password is secure. If you change it, use a strong, unique password.

Delete Credentials File

After saving your password securely, delete /var/lib/valkey/credentials.txt

Need Help?

Our team is here to assist you with any questions about your Valkey deployment.

info@flowopsconsulting.co.uk