# AWS App Runner Scaling Calculator AI Agent Connect

> Calculate deterministic AWS App Runner resource allocations and scaling plans.

## Overview
- **Category:** cloud-infrastructure
- **Price:** Free
- **Endpoint:** https://edge.vinkius.com/vk_preview_Yp4QYFp1QR8Lmy1YH3zjpOBJCWTSNAjUHDrJlY33/ai-agent-connect
- **Tags:** aws, app-runner, scaling, infrastructure, devops

## Description

This MCP server provides precise tools for planning AWS App Runner deployments. Use `calculate_resource_configuration` to validate vCPU and memory pairings against AWS tier constraints. Use `calculate_scaling_plan` to determine instance counts based on expected request volume and concurrency. Finally, use `generate_service_defaults` to establish operational parameters like health check intervals and ephemeral storage requirements.

## Tools

### calculate_resource_configuration
Determines if a specific vCPU and Memory request is valid within AWS App Runner tier constraints

### calculate_scaling_plan
Calculates the required number of instances and identifies if the workload is pushing beyond recommended concurrency limits

### generate_service_defaults
Provides a complete set of operational parameters based on provided capacity requirements

## Prompt Examples

**Prompt:** 
```
Is a 0.5 vCPU and 4096 MB memory configuration valid for App Runner?
```

**Response:** 
```
Yes, a 0.5 vCPU configuration supports memory ranges from 2048 MB to 8192 MB, so 4096 MB is a valid pairing.
```

**Prompt:** 
```
Calculate a scaling plan for 500 total requests with 50 requests per instance, minimum 1 and maximum 10 instances.
```

**Response:** 
```
The plan requires 10 instances to handle 500 requests at 50 requests per instance.
```

**Prompt:** 
```
What are the default service settings for a 5GB container image and 20GB ephemeral storage?
```

**Response:** 
```
The default settings include a 60s warm-up time, 5s health check interval, 2s timeout, and 80% CPU utilization target.
```

## Frequently Asked Questions

**How do I know if my vCPU and memory selection is valid?**
You can use the `calculate_resource_configuration` tool to check if your requested vCPU and memory combination adheres to AWS App Runner's specific resource tiers.

**Can I scale my App Runner service to zero?**
Yes, by using `calculate_scaling_plan` and setting the minimum instances to 0, you can plan for a scale-to-zero configuration.

**What are the recommended concurrency limits?**
While there is no hard limit, it is recommended to keep concurrency per instance at or below 100 requests to maintain optimal performance.
