惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

WordPress大学
WordPress大学
A
About on SuperTechFans
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
博客园 - 聂微东
博客园 - Franky
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
量子位
博客园 - 三生石上(FineUI控件)
Recent Announcements
Recent Announcements
The GitHub Blog
The GitHub Blog
B
Blog RSS Feed
T
The Blog of Author Tim Ferriss
GbyAI
GbyAI
云风的 BLOG
云风的 BLOG
Last Week in AI
Last Week in AI
宝玉的分享
宝玉的分享
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Stack Overflow Blog
Stack Overflow Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC

Datadog | The Monitor blog

Introducing our open source AI-native SAST Instrument and monitor Boomi integration flows with OpenTelemetry and Datadog Not all index scans are equal: How we cut query latency by over 99% Platform engineering metrics: What to measure and what to ignore Integrate Recorded Future threat intelligence with Datadog Cloud SIEM CI/CD security: threat modeling using a MITRE-style threat matrix CI/CD security: How to secure your GitHub ecosystem Ingress NGINX is EOL: A practical guide for migrating to Kubernetes Gateway API Operating agentic AI with Amazon Bedrock AgentCore and Datadog LLM Observability: Lessons from NTT DATA Introducing the Datadog Code Security MCP Capture and analyze custom heatmaps in Session Replay Understand session replays faster with AI summaries and smart chapters Monitor ClickHouse query performance with Datadog Database Monitoring How we designed empathetic alert sounds for on-call engineers Search and act across Datadog to resolve issues faster with Bits Assistant Measure the business impact of every product change with Datadog Experiments Analyzing round trip query latency Configuring JavaScript caches for better performance Introducing Bits AI Dev Agent for Code Security Datadog achieves ISO 42001 certification for responsible AI Monitor Nutanix clusters, hosts, and VMs with Datadog Monitor Juniper Mist in Datadog A new Host Map for modern infrastructure Annotate traces to improve LLM quality with Datadog LLM Observability What’s new in Cloud SIEM: AI-powered investigations, enhanced threat intelligence, and scalable security operations Explore Kubernetes with native OpenTelemetry data Monitor Oracle Fusion Cloud Applications with Datadog Announcing the Datadog Terraform provider v4.0.0 Scaling Kubernetes workloads on custom metrics How to design cloud environments for AI-powered threat analysis
Monitor RethinkDB with Datadog
2020-06-08 · via Datadog | The Monitor blog

RethinkDB is a document-oriented database that enables clients to listen for updates in real time using streams called changefeeds. RethinkDB was built for easy sharding and replication, and its query language integrates with popular programming languages, with no need for clients to parse commands from strings. The open source project began in 2012, and joined the Linux Foundation in 2017.

As with any database, RethinkDB is a critical infrastructure component that you’ll want to run at maximum performance and with minimal interruption. We are pleased to announce Datadog’s RethinkDB integration, which gives you granular visibility into your database servers, tables, and shards, helping ensure the health and performance of your RethinkDB deployment.

The out-of-the-box dashboard for RethinkDB.
The out-of-the-box dashboard for RethinkDB.
The out-of-the-box dashboard for RethinkDB.

Understand your database activity

While RethinkDB can support thousands of concurrent connections, you will want to track client activity within your deployment so you can maintain optimal performance. Datadog’s RethinkDB integration automatically queries RethinkDB’s system statistics tables to provide detailed information on the current number of clients and client connections. An out-of-the-box log processing pipeline also enriches all of your RethinkDB logs with useful metadata (e.g., server and table names), helping you get context into connection issues.

You can customize our out-of-the-box dashboard to visualize activity and understand when your database tends to receive high or low traffic—and quickly spot anomalies. If traffic changes unexpectedly, you can identify possible causes and effects by correlating connection counts with resource utilization metrics from your VMs, containers, and major cloud services, as well as metrics from 1,000 other integrations.

And if client connections decline unexpectedly, you can use Datadog to analyze your RethinkDB logs for more insight. If you see connection errors from one database instance in your cluster, for example, you can seamlessly search logs from that instance and point in time to get context.

Datadog's Log Analytics view showing a surge in server disconnections.
Datadog's Log Analytics view showing a surge in server disconnections.
Datadog's Log Analytics view showing a surge in server disconnections.

Beyond client connection activity, you will also want to make sure that your database cluster is scaled appropriately to handle its query throughput. You can track the number of JSON documents read and written per second—at the cluster, server, and table level—to identify high-traffic areas to consider scaling out (these metrics have the name rethinkdb.stats.<cluster|server|table>.query_engine.<read|written>_docs_per_sec).

Dashboard showing RethinkDB client activity.
Dashboard showing RethinkDB client activity.
Dashboard showing RethinkDB client activity.

Replicate wisely

RethinkDB provides two options for scaling deployments. First, shards distribute a single database table across a number of hosts. Second, replicas deploy multiple instances of a single table. When using sharding and replication together, RethinkDB associates each shard with a primary replica. While more instances make for a more fault tolerant cluster that can serve more concurrent queries, it also gives you more hosts to monitor for health and performance.

With Datadog’s RethinkDB integration, you can track the success of your replication operations so you can respond to any issues. If the number of deployed shards (rethinkdb.table_status.shards) or replicas (rethinkdb.table_status.shards.replicas) falls below expectations, you’ll know to investigate problems with your deployment. You can use the rethinkdb.table_status.status.all_replicas_ready service check to confirm that all replicas are available.

Finally, to verify whether changing your replication strategy has increased performance, you can track document read and write throughput for each replica in your cluster by grouping the rethinkdb.stats.table_server.query_engine.read_docs_per_sec and rethinkdb.stats.table_server.query_engine.written_docs_per_sec metrics by the table tag.

Dashboard showing read and write throughput per replica for each of three tables.
Dashboard showing read and write throughput per replica for each of three tables.
Dashboard showing read and write throughput per replica for each of three tables.

Ensure availability

If a RethinkDB instance goes down, you will want to know as soon as possible so you can take action. Datadog tracks server availability with metrics and service checks that you can use to set automated alerts. You can use threshold alerts to notify your team when rethinkdb.config.servers—the count of servers currently known to your RethinkDB cluster—falls below a healthy baseline. You can also use the rethinkdb.can_connect service check to get alerted on losses in availability as soon as they take place.

Once you know there’s an availability issue, you can use the rethinkdb.current_issues.issues metric to track problems RethinkDB has identified within your cluster, such as name collisions, outdated indexes, and connectivity trouble. You can group this metric by the issue_type tag to help prioritize your troubleshooting efforts.

A dashboard showing counts of issues within a RethinkDB deployment.
A dashboard showing counts of issues within a RethinkDB deployment.
A dashboard showing counts of issues within a RethinkDB deployment.

Database monitoring—rethought

With Datadog’s new integration, you can collect RethinkDB metrics and logs to get comprehensive visibility into the health and performance of your database cluster. And with Datadog APM, you can instrument your applications to get even more granular insights into how your clients interact with the database, no matter which language you use for your client drivers. To get started using Datadog, sign up for a free trial.