Get in Touch
 Duration 48 hours

Course Outline

Introduction and MongoDB Architecture

Key Concepts:

  • Historical context and the MongoDB ecosystem.
  • Common use cases, along with advantages and limitations.
  • Core architecture: instances, processes, and configuration fundamentals.

Practical Application:

  • Interactive exploration: establishing connections via Mongo Shell/CLI.
  • Creating a sample database and collection.

Installation and Initial Configuration

Key Concepts:

  • Hardware and resource requirements.
  • Installation procedures on Linux (deb/rpm), Windows, and macOS.
  • YAML configuration files (mongod.conf): dataDir, logDir, bindIp, and port settings.
  • Startup options and management via systemd/services.

Practical Application:

  • Deploying instances on local VMs or Docker containers.
  • Tuning configurations for development versus production scenarios.
  • Verifying secure remote connectivity.

Data Modeling and Basic Operations

Key Concepts:

  • BSON documents, collections, and databases.
  • Modeling strategies: embedding vs. referencing; data design patterns.
  • Foundations of basic indexes.
  • Operations using Mongo Shell and scripting examples with drivers.

Practical Application:

  • Modeling a use case: inventory or billing system.
  • Implementing CRUD operations.
  • Applying schema validation using JSON Schema in MongoDB.

Indexes and Performance

Key Concepts:

  • Types of indexes: simple, compound, multikey, text, and geospatial.
  • Utilizing explain() and analyzing performance metrics.
  • The impact of indexes on write performance and memory usage.

Practical Application:

  • Creating collections populated with test data.
  • Testing queries with and without indexes; interpreting explain() output.
  • Refining indexes based on observed access patterns.

Security

Key Concepts:

  • Authentication mechanisms: SCRAM, LDAP/Kerberos (overview).
  • Defining users and custom roles.
  • Implementing TLS/SSL between clients and servers.
  • Encryption at rest: key configuration.
  • Foundations of audit logging.

Practical Application:

  • Creating users with least-privilege access.
  • Configuring TLS on local instances.
  • Testing unauthorized access attempts and reviewing audit logs.

Replication and High Availability

Key Concepts:

  • Replication concepts: Primary, Secondary, and oplog.
  • Replica set configuration: initiation, membership, and arbitration.
  • Monitoring status and election processes.
  • Maintenance tasks: adding/removing members and reassigning priorities.

Practical Application:

  • Deploying a three-node replica set (local or on VMs).
  • Simulating primary failure and observing failover behavior.
  • Rebuilding secondary nodes and recovering replicas.

Sharding and Horizontal Scalability

Key Concepts:

  • Sharding concepts: shard key, config servers, and mongos router.
  • Shard key selection and associated risks.
  • Deploying config servers, shards, and mongos components.
  • Rebalancing processes and chunk migration.

Practical Application:

  • Configuring a simple sharded cluster.
  • Inserting large-scale data and observing distribution patterns.
  • Exploring shard key changes and understanding related limitations.

Backup, Restore, and Disaster Recovery

Key Concepts:

  • Native tools: mongodump/mongorestore and filesystem snapshots.
  • Backup strategies for replica sets and sharded clusters.
  • Using Cloud Manager/Ops Manager for backup management.
  • Disaster Recovery (DR) planning: RTO and RPO considerations.

Practical Application:

  • Performing backup and restore operations on a test database.
  • Simulating failure and executing recovery from backup.
  • Designing a DR plan for a hypothetical scenario.

Monitoring and Alerts

Key Concepts:

  • Tools: mongostat, mongotop, and Cloud Manager/Atlas Monitoring.
  • Integration with Prometheus and Grafana (concepts and examples).
  • Key metrics: CPU, memory, I/O, oplog size, and latencies.
  • Alerting: defining thresholds and notification rules.

Practical Application:

  • Deploying a local or container-based monitoring agent.
  • Setting up basic dashboards with sample metrics.
  • Simulating load and observing alert triggers.

Maintenance, Upgrades, and Best Practices

Key Concepts:

  • Upgrade strategies for replica sets and sharded clusters.
  • Data cleanup, compaction, and integrity checks.
  • Reviewing logs and conducting regular audits.
  • Automating routine tasks (scripts, cronjobs, Ansible, Terraform).
  • Data retention and archiving policies.

Practical Application:

  • Simulating minor and major upgrades in a controlled environment.
  • Creating automation scripts for backup and monitoring.
  • Developing a periodic maintenance checklist.

Requirements

  • A solid understanding of fundamental database concepts and data structures.
  • Proficiency with the Linux command-line interface.
  • Basic knowledge of networking principles and system administration.

Target Audience

  • Database administrators and system engineers working with MongoDB.
  • DevOps and infrastructure teams responsible for deploying and maintaining MongoDB environments.
  • Developers seeking insight into MongoDB internals and deployment best practices.

Number of participants


Price per participant

Testimonials (2)

Upcoming Courses

Related Categories