Pandastack Documentation
  • Welcome
  • Getting Started
    • Quickstart
      • Getting Started
    • Projects
      • Static Website
        • Configure your static website
          • Pre-defined ENV for static websites
      • Conatinered Website
        • How to configure nodejs project
        • How to Configure Python projects
        • How to Configure GO project
        • Docker runtime Projects
        • Private Connection with database.
        • Override default ENV
    • Databases
      • MySQL
      • PostgreSQL
      • Redis
      • MongoDB
      • TimeScaleDB
    • Monitoring
      • Uptime Check
      • SSL monitoring
      • Monitors pricing
    • Analytics
    • SSO
      • Google
      • Azure
    • Managed Apps
      • Wordpres
      • Directus
      • Strapi
      • Consul
      • Jenkins
    • PandaEdge
      • Deploy a nodejs function
      • Deploy a python function
      • Panda Edge pricing
Powered by GitBook
On this page
  • Deployment Steps
  • Instance Types
  • Features
  • Monitoring
  • Backup Management
  • Connection Information
  • Best Practices
  • Use Cases
  • Troubleshooting
  1. Getting Started
  2. Databases

Redis

Redis is an open-source, in-memory data structure store that can be used as a database, cache, message broker, and queue. It supports various data structures and offers high performance.

Deployment Steps

  1. From the dashboard, click "Create New" and select "Redis"

  2. Configure your database:

    • Name: Enter a unique identifier for your Redis instance

    • Description: Add a description to help identify the instance purpose

    • Version: Select your preferred Redis version

    • Username/Password: Set credentials for access (if using Redis 6.0+)

    • Visibility: Choose between public or private access

    • Backup: Enable/disable automated backups

Instance Types

Choose the instance type that best fits your workload:

  • Free Tier

    • Perfect for development and testing

    • Limited resources but no cost

    • Run 1 instance for free

  • Standard

    • Balanced resources for general use

    • Recommended for production workloads

  • C1/C2 Compute

    • Optimized for compute-intensive workloads

    • Ideal for heavy data processing

  • M1/M2 Memory

    • Optimized for memory-intensive workloads

    • Perfect for large datasets and caching

Features

  1. Data Structures

    • Strings

    • Lists

    • Sets

    • Sorted sets

    • Hashes

    • Streams

    • Geospatial indexes

    • Bitmaps

    • HyperLogLog

  2. Functionality

    • Pub/Sub messaging

    • Lua scripting

    • Transactions

    • Key expiration

    • LRU eviction

    • Persistence options

Monitoring

Monitor your Redis instance through:

  1. Logs Tab

    • Real-time log streaming

    • Search functionality

    • Error highlighting

    • Timestamp-based filtering

  2. Metrics

    • Memory usage

    • Connected clients

    • Operations per second

    • Hit/miss ratio

    • Evicted keys

    • Network bandwidth

Backup Management

Manage your Redis instance backups:

  1. Automated Backups

    • Enable/disable automated backups

    • Set backup window

    • Configure retention period

    • RDB snapshots

    • AOF persistence

  2. Backup Tab

    • View backup history

    • Initiate manual backups

    • Restore from backup

    • Download backup files

Connection Information

After deployment, you'll receive:

  • Connection URL

  • Authentication credentials

  • Port information

  • SSL/TLS certificates (if applicable)

Example connection string:

redis://username:password@hostname:port

Best Practices

  1. Security

    • Use private visibility when possible

    • Implement strong passwords

    • Regularly rotate credentials

    • Limit network access

    • Enable SSL/TLS

  2. Performance

    • Monitor memory usage

    • Use appropriate data structures

    • Implement key expiration

    • Configure eviction policies

    • Optimize persistence settings

  3. Memory Management

    • Set maxmemory limit

    • Choose appropriate eviction policy

    • Monitor used memory

    • Handle large keys carefully

    • Use memory analysis tools

Use Cases

  1. Caching

    • Session storage

    • Page caching

    • API response caching

    • Database query results

  2. Real-time Features

    • Leaderboards

    • Real-time analytics

    • Message queues

    • Rate limiting

    • Session management

Troubleshooting

Common issues and solutions:

  1. Connection Issues

    • Verify network access

    • Check credentials

    • Confirm port accessibility

    • Validate SSL/TLS settings

  2. Memory Problems

    • Monitor memory usage

    • Review eviction policies

    • Check large keys

    • Analyze memory fragmentation

    • Verify maxmemory settings

  3. Performance Issues

    • Monitor command latency

    • Check slow operations

    • Review network bandwidth

    • Analyze client connections

    • Verify persistence settings

PreviousPostgreSQLNextMongoDB

Last updated 3 months ago