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
  • Monitoring
  • Backup Management
  • Connection Information
  • Best Practices
  • Troubleshooting
  1. Getting Started
  2. Databases

MongoDB

MongoDB is a source-available NoSQL database that uses JSON-like documents with optional schemas. It's ideal for applications that need flexible data models and scalable performance.

Deployment Steps

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

  2. Configure your database:

    • Name: Enter a unique identifier for your database

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

    • Version: Select your preferred MongoDB version

    • Username/Password: Set credentials for database access

    • Visibility: Choose between public or private access

    • DB Name: Specify the name for your primary database

    • 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 database 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

Monitoring

Monitor your MongoDB instance through:

  1. Logs Tab

    • Real-time log streaming

    • Search functionality

    • Error highlighting

    • Timestamp-based filtering

  2. Metrics

    • CPU usage

    • Memory utilization

    • Disk usage

    • Network transfer

Backup Management

Manage your database backups:

  1. Automated Backups

    • Enable/disable automated backups

    • Set backup window

    • Configure retention period

  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:

mongodb://username:password@hostname:port/database

Best Practices

  1. Security

    • Use private visibility when possible

    • Implement strong passwords

    • Regularly rotate credentials

    • Limit network access

  2. Performance

    • Monitor resource utilization

    • Choose appropriate instance type

    • Index frequently queried fields

    • Regular maintenance

  3. Backup

    • Enable automated backups

    • Test restore procedures

    • Keep backup window during low-traffic periods

    • Maintain backup copies

Troubleshooting

Common issues and solutions:

  1. Connection Issues

    • Verify network access

    • Check credentials

    • Confirm port accessibility

    • Validate SSL/TLS settings

  2. Performance Problems

    • Monitor resource metrics

    • Check slow queries

    • Review index usage

    • Analyze connection pooling

  3. Backup Failures

    • Verify storage space

    • Check backup user permissions

    • Review backup logs

    • Validate backup configuration

PreviousRedisNextTimeScaleDB

Last updated 3 months ago