Skip to content

NimTechnology

Trình bày các công nghệ CLOUD một cách dễ hiểu.

  • Kubernetes & Container
    • Docker
    • Kubernetes
      • Ingress
      • Pod
    • Helm Chart
    • OAuth2 Proxy
    • Isito-EnvoyFilter
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Vault
    • Longhorn – Storage
    • VictoriaMetrics
    • MetalLB
    • Kong Gateway
  • CI/CD
    • ArgoCD
    • ArgoWorkflows
    • Argo Events
    • Spinnaker
    • Jenkins
    • Harbor
    • TeamCity
    • Git
      • Bitbucket
  • Coding
    • DevSecOps
    • Terraform
      • GCP – Google Cloud
      • AWS – Amazon Web Service
      • Azure Cloud
    • Golang
    • Laravel
    • Python
    • Jquery & JavaScript
    • Selenium
  • Log, Monitor & Tracing
    • DataDog
    • Prometheus
    • Grafana
    • ELK
      • Kibana
      • Logstash
  • BareMetal
    • NextCloud
  • Toggle search form

Monitoring DocumentDB of AWS.

Posted on October 30, 2024October 30, 2024 By nim No Comments on Monitoring DocumentDB of AWS.

Contents

Toggle
  • Monitoring capabilities
  • Instance level monitoring
  • Instance monitoring
    • DatabaseConnections and DatabaseCursors
  • Cluster level monitoring
  • Storage and backup monitoring

Monitoring capabilities

AWS provides:

  • Built-in monitoring and health checks
  • Native monitoring tools
  • Log collection, publishing, and alarm capabilities

You are responsible for:

  • Enabling features: profiler, Performance Insights (preview), auditing
  • Monitoring/alarming on relevant events
  • Custom metrics
  • Log analysis

Instance level monitoring

Instance monitoring

BufferCacheHitRatio: The percentage of requests that are served by the buffer cache.
– When data is requested, AWS DocumentDB first checks if it is available in the buffer cache (in-memory).
– If the data is available in the cache, the request is served from there, which is much faster. This is considered a “cache hit.”
– If the data is not in the cache, it has to be fetched from disk, which is slower. This is a “cache miss.”
==> High BufferCacheHitRatio (close to 100%): This indicates that most read requests are being served from the cache, which results in better performance.

IndexBufferCacheHitRatio: The percentage of index requests that are served by the buffer cache. You might see a spike greather than 100% for the metric right after you drop an index, collection or database. This will automatically be corrected after 60 seconds. This limitation will be fixed in a future patch update.

DatabaseConnections: The number of connections open on an instance taken at a one-minute frequency.

DatabaseCursors: The number of cursors open on an instance taken at a one-minute frequency.
When you run a query in DocumentDB, the database engine generates a cursor that points to the beginning of the result set. You can then use this cursor to fetch the data incrementally. For example, when dealing with pagination, a cursor can return the first 100 documents, and then you can request the next 100 documents in subsequent batches.

FreeableMemory: The amount of available random access memory, in bytes.

CPUUtilization: The percentage of CPU used by an instance.

DatabaseConnections and DatabaseCursors

trong từng instance type sẽ có suggestion về số lượng Connections cho phép.

Best Practices: Instance Monitoring

Cluster level monitoring

DBClusterReplicaLagMaximum: The maximum amount of lag, in milliseconds, between the primary instance and each Amazon DocumentDB instance in the cluster.
– It shows the delay in time for the replica instances to catch up with the changes made to the primary instance. This is essentially how much time it takes for data written to the primary instance to be available on the replicas.

DatabaseCursorsTimedOut: The number of cursors that timed out in a one-minute period.

VolumeWriteIOPs: The average number of billed write I/O operations from a cluster volume

VolumeReadIOPs: The average number of billed read I/O operations from a cluster volume, reported at 5-minute intervals

Opcounters:
– OpcountersUpdate: Tracks update operations.
– OpcountersCommand: Tracks all commands issued.
– OpcountersDelete: Tracks delete operations.
– OpcountersGetmore: Tracks operations retrieving the next batch of documents.
– OpcountersInsert: Tracks insert operations.
– OpcountersQuery: Tracks query (read) operations.

Volume IOPS and IOPS

WriteIOPS (count/second)
ReadIOPS (count/second)

Best Practices: Cluster Monitoring:

Storage and backup monitoring

VolumeBytesUsed: The amount of storage used by your cluster in bytes. This value affects the cost of the cluster. For pricing information, see the Amazon DocumentDB product page
BackupRetentionPeriodStorageUsed: The total amount of backup storage in GiB used to support the point-in-time restore feature within the Amazon DocumentDB’s retention window. Included in the total reported by the TotalBackupStorageBilled metric. Computed separately for each Amazon DocumentDB cluster.
SnapshotStorageUsed: The total amount of backup storage in GiB consumed by all snapshots for a given Amazon DocumentDB cluster outside its backup retention window. Included in the total reported by the TotalBackupStorageBilled metric. Computed separately for each Amazon DocumentDB cluster.
TotalBackupStorageBilled: The total amount of backup storage in GiB for which you are billed for a given Amazon DocumentDB cluster. Includes the backup storage measured by the BackupRetentionPeriodStorageUsed and SnapshotStorageUsed metrics. Computed separately for each Amazon DocumentDB cluster.

(BackupRetentionPeriodStorageUsed + SnapshotStorageUsed) – VolumeBytesUsed (today)

AWS - Amazon Web Service

Post navigation

Previous Post: [Laravel] Create helper functions and call them as needed.
Next Post: [Laravel] Integrating a Model with a database in Laravel.

More Related Articles

[Terraform] Infrastructure Automation With Terraform – Lesson 1: Setup AWS AWS - Amazon Web Service
[Demo] Instructing configure AssumeRole – IAM on AWS AWS - Amazon Web Service
[Monitoring] How to monitor EBS on AWS via Prometheus AWS - Amazon Web Service
[IP/EKS] Add new subnets into the eks on AWS AWS - Amazon Web Service
[S3] You will naturally see files on S3 being deleted AWS - Amazon Web Service
[Ec2] How to reset the forgotten password on EC2 AWS - Amazon Web Service

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Tham Gia Group DevOps nhé!
Để Nim có nhiều động lực ra nhiều bài viết.
Để nhận được những thông báo mới nhất.

Recent Posts

  • [Laravel] Laravel Helpful June 26, 2025
  • [VScode] Hướng dẫn điều chỉnh font cho terminal June 20, 2025
  • [WordPress] Hướng dấn gửi mail trên WordPress thông qua gmail. June 15, 2025
  • [Bitbucket] Git Clone/Pull/Push with Bitbucket through API Token. June 12, 2025
  • [Teamcity] How to transfer the value from pipeline A to pipeline B June 9, 2025

Archives

  • June 2025
  • May 2025
  • April 2025
  • March 2025
  • February 2025
  • January 2025
  • December 2024
  • November 2024
  • October 2024
  • September 2024
  • August 2024
  • July 2024
  • June 2024
  • May 2024
  • April 2024
  • March 2024
  • February 2024
  • January 2024
  • December 2023
  • November 2023
  • October 2023
  • September 2023
  • August 2023
  • July 2023
  • June 2023
  • May 2023
  • April 2023
  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022
  • August 2022
  • July 2022
  • June 2022
  • May 2022
  • April 2022
  • March 2022
  • February 2022
  • January 2022
  • December 2021
  • November 2021
  • October 2021
  • September 2021
  • August 2021
  • July 2021
  • June 2021

Categories

  • BareMetal
    • NextCloud
  • CI/CD
    • Argo Events
    • ArgoCD
    • ArgoWorkflows
    • Git
      • Bitbucket
    • Harbor
    • Jenkins
    • Spinnaker
    • TeamCity
  • Coding
    • DevSecOps
    • Golang
    • Jquery & JavaScript
    • Laravel
    • NextJS 14 & ReactJS & Type Script
    • Python
    • Selenium
    • Terraform
      • AWS – Amazon Web Service
      • Azure Cloud
      • GCP – Google Cloud
  • Kubernetes & Container
    • Apache Kafka
      • Kafka
      • Kafka Connect
      • Lenses
    • Docker
    • Helm Chart
    • Isito-EnvoyFilter
    • Kong Gateway
    • Kubernetes
      • Ingress
      • Pod
    • Longhorn – Storage
    • MetalLB
    • OAuth2 Proxy
    • Vault
    • VictoriaMetrics
  • Log, Monitor & Tracing
    • DataDog
    • ELK
      • Kibana
      • Logstash
    • Fluent
    • Grafana
    • Prometheus
  • Uncategorized
  • Admin

Copyright © 2025 NimTechnology.