Skip to main content

Minimum Resource Requirements

Every project hosted on the Shard Cloud Platform has specific minimum resource requirements to ensure optimal performance:
  • Normal apps: A minimum of 256MB of RAM is required for hosting
  • Websites: A minimum of 512MB of RAM is required to ensure proper functionality
  • Databases:
    • MongoDB: 1024MB of RAM
    • PostgreSQL: 1024MB of RAM
    • Redis: 512MB of RAM
    • MySQL: 1024MB of RAM
The maximum RAM allocation for any application is 16GB (subject to change in future updates).

Service Limits

Shard Cloud enforces resource boundaries to maintain optimal platform performance and ensure equitable access for all users. These protective measures include:

OUT_OF_RAM

If a project exceeds the allocated RAM limit specified in its .shardcloud file (or defined in the configuration for databases), it will be flagged for violating OUT_OF_RAM and automatically shut down to preserve system stability and protect all users.

CPU Throttling

If a project exceeds its allocated processing capacity, it will be automatically throttled rather than terminated. The application will continue running but receive reduced CPU cycles to maintain system performance.

Network limit

Every project has a network bandwidth limit based on its allocated RAM over 7 days. This generous limit exists solely to prevent abuse from malicious users. If your application reaches this limit, it will be automatically stopped and blocked from restarting for 24 hours.

Bandwidth limit

Every project is limited to an egress/ingress bandwidth limit based on its allocated RAM. The calculation is as follows: 15 + (RAM_MB/256) × 45. This means if an application has 512MB of RAM, it will have 105 Mbps for both egress and ingress traffic.

Storage limit

Applications: All applications have a flat storage limit of 10GB. Databases: Storage limits depend on the allocated RAM using the following formula: 3 + (RAM_MB/512). For example, a database with 2GB of allocated RAM will have 7GB of storage space. Important: All databases use replicas, so your actual storage total size is multiplied by the number of replicas for your database type:
  • PostgreSQL: 2 replicas (storage × 2)
  • MongoDB: 3 replicas (storage × 3)
  • MySQL: 1 replicas (storage x 2)
  • Redis: Uses memory-based storage

Max number of database connections

This limit applies only to databases (not applications). The maximum number of simultaneous connections to a database hosted on Shard Cloud is based on its allocated RAM and follows the formula: RAM_MB/8. For example, a database with 2048MB of RAM would support 256 simultaneous connections.

Http requests limit

This limit applies only to applications (not databases). Like the network limit, its main purpose is to prevent malicious users from making a large number of HTTP requests in a short period, which could result in our IPs being banned by external services. The monitoring window for this limit is 10 minutes, and if exceeded, your application will be stopped and blocked from restarting for one hour.

Vcpu allocation method

The system employs an intelligent CPU allocation mechanism that balances resource efficiency with application requirements. The strategy reduces the standard CPU allocation by dividing it by three, fostering optimal resource distribution across the infrastructure.

Allocation Rules

The CPU allocation follows specific conditional logic based on system characteristics: Base CPU Protection: When the application’s standard CPU allocation equals 1000 mCPU (1 vCPU), the allocation remains at 1000 mCPU unchanged to maintain minimum performance guarantees. Memory-Based Scaling:
  • High Memory Applications (RAM ≥ 2048 MB): CPU allocation stays at full capacity without reduction
  • Low Memory Applications (RAM ≤ 1024 MB): CPU is reduced to one-third of the original allocation, with a floor value of 1000 mCPU to prevent performance degradation
  • Medium Memory Applications (1024 MB < RAM < 2048 MB): CPU allocation is consistently reduced to one-third of the standard allocation
I