121downloads
MongoDB connection pools and timeout tuning skill
Review MongoDB client connections, pool sizing and timeouts for your workload. Diagnose connection failures before choosing driver configuration changes.
When it runs
Your agent reads this description from SKILL.md to decide when to load the skill:
Optimize MongoDB client connection configuration (pools, timeouts, patterns) for any supported driver language. Use this skill when working/updating/reviewing on functions that instantiate or configure a MongoDB client (eg, when calling `connect()`), configuring connection pools, troubleshooting connection errors (ECONNREFUSED, timeouts, pool exhaustion), optimizing performance issues related to connections. This includes scenarios like building serverless functions with MongoDB, creating API endpoints that use MongoDB, optimizing high-traffic MongoDB applications, creating long-running tasks and concurrency, or debugging connection-related failures.
What SKILL.md covers
- Core Principle: Context Before Configuration
- Understanding How Connection Pools Work
- Configuration Design
- Troubleshooting Connection Issues
- Environmental Context (MANDATORY)
- Advising on Monitoring & Iteration
- When creating code
Files in the ZIP
Related skills
MongoDB Atlas Stream Processing workflow skill
Build and operate MongoDB Atlas Stream Processing pipelines. Configure workspaces and connections, manage processors and diagnose streaming data failures.
MongoDB MCP Server setup and connection skill
Configure MongoDB MCP Server and check its connection to your database. Follow the setup workflow before using agent tools for MongoDB operations.
Write MongoDB queries from natural language
Translate data questions into MongoDB filters and aggregation pipelines. Use this skill for query syntax and document operations rather than Atlas Search.