diff --git a/apps/docs/content/alpine/how-to/controls.mdx b/apps/docs/content/alpine/how-to/controls.mdx index 974b276e..cb1a3ea0 100644 --- a/apps/docs/content/alpine/how-to/controls.mdx +++ b/apps/docs/content/alpine/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Alpine service -description: Learn how you can stop and start your Alpine service on Zerops. +title: Stop, start and delete Alpine service +description: Learn how you can stop, start and delete your Alpine service on Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/alpine/how-to/delete.mdx b/apps/docs/content/alpine/how-to/delete.mdx deleted file mode 100644 index 4c0eb80f..00000000 --- a/apps/docs/content/alpine/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Alpine service -description: Learn how you can delete your Alpine service on Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/bun/how-to/controls.mdx b/apps/docs/content/bun/how-to/controls.mdx index 855775ee..ff030cda 100644 --- a/apps/docs/content/bun/how-to/controls.mdx +++ b/apps/docs/content/bun/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Bun service -description: Learn how you can stop and start your bun service in Zerops. +title: Stop, start and delete Bun service +description: Learn how you can stop, start and delete your bun service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/bun/how-to/delete.mdx b/apps/docs/content/bun/how-to/delete.mdx deleted file mode 100644 index 6cb032a7..00000000 --- a/apps/docs/content/bun/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Bun service -description: Learn how you can delete your node.js service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/deno/how-to/controls.mdx b/apps/docs/content/deno/how-to/controls.mdx index 7accc1f7..76feaedf 100644 --- a/apps/docs/content/deno/how-to/controls.mdx +++ b/apps/docs/content/deno/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Deno service -description: Learn how you can stop and start your deno service in Zerops. +title: Stop, start and delete Deno service +description: Learn how you can stop, start and delete your deno service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/deno/how-to/delete.mdx b/apps/docs/content/deno/how-to/delete.mdx deleted file mode 100644 index 58c52cf2..00000000 --- a/apps/docs/content/deno/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Deno service -description: Learn how you can delete your deno service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/dotnet/how-to/controls.mdx b/apps/docs/content/dotnet/how-to/controls.mdx index e0f4b323..12ca5f5a 100644 --- a/apps/docs/content/dotnet/how-to/controls.mdx +++ b/apps/docs/content/dotnet/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start .NET service -description: Learn how you can stop and start your dotnet service in Zerops. +title: Stop, start and delete .NET service +description: Learn how you can stop, start and delete your dotnet service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/dotnet/how-to/delete.mdx b/apps/docs/content/dotnet/how-to/delete.mdx deleted file mode 100644 index 49242c5b..00000000 --- a/apps/docs/content/dotnet/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete .NET service -description: Learn how you can delete your dotnet service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/elixir/how-to/controls.mdx b/apps/docs/content/elixir/how-to/controls.mdx index 3120c46f..c9dbd90e 100644 --- a/apps/docs/content/elixir/how-to/controls.mdx +++ b/apps/docs/content/elixir/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Elixir service -description: Learn how you can stop and start your Elixir service in Zerops. +title: Stop, start and delete Elixir service +description: Learn how you can stop, start and delete your Elixir service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/elixir/how-to/delete.mdx b/apps/docs/content/elixir/how-to/delete.mdx deleted file mode 100644 index 32cafe13..00000000 --- a/apps/docs/content/elixir/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Elixir service -description: Learn how you can delete your Elixir service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/features/scaling-ha.mdx b/apps/docs/content/features/scaling-ha.mdx index 1a69c64b..ad0a9620 100644 --- a/apps/docs/content/features/scaling-ha.mdx +++ b/apps/docs/content/features/scaling-ha.mdx @@ -96,15 +96,27 @@ This flexibility lets you plan scaling strategies upfront or adapt them as requi Resource management in Zerops focuses on efficiently allocating and adjusting CPU, RAM, and disk resources within individual containers based on actual usage patterns. -### CPU Options +These resource management capabilities apply to **runtime** services, **databases**, **shared storage**, and **Linux containers** (Alpine and Ubuntu). + +:::note +Docker services do not support automatic vertical scaling. Resources for Docker services are fixed at the values set manually and do not automatically adjust based on usage. +::: + +:::tip Disable Scaling for Specific Resources +To prevent automatic scaling of specific resources, simply set identical minimum and maximum values for CPU, RAM, or Disk. +::: + +### CPU Settings + +#### CPU Mode Two CPU allocation modes are available for any service: -#### Shared CPU +**Shared CPU** Shared CPU provides a physical CPU core shared with up to 10 other applications. Performance varies depending on neighbors, ranging from 1/10 to 10/10 power. This option is cost-effective for non-critical workloads, development, and testing environments. -#### Dedicated CPU +**Dedicated CPU** Dedicated CPU gives exclusive access to a full physical CPU core(s), ensuring consistent and predictable performance. This option is ideal for production environments and CPU-intensive applications. @@ -114,39 +126,42 @@ CPU mode can be changed (once per hour) as needed. See the [pricing](/company/pricing#resource-pricing) for the difference between CPU modes. -### Vertical Scaling +#### Minimum and Maximum CPU Cores -Vertical scaling adjusts individual resources (CPU, RAM, Disk) within existing containers. When a container needs more/less power, allocated resources are increased/decreased instead of creating a new/removing container. +Set boundaries for CPU core allocation. Zerops will scale CPU resources within these limits based on actual usage. -This is the preferred scaling method and is attempted first before horizontal scaling. +#### Start CPU Core Count -These resource management capabilities apply to **runtime** services, **databases**, **shared storage**, and **Linux containers** (Alpine and Ubuntu). - -:::note -Docker services do not support vertical scaling. Resources for Docker services are fixed at the values set manually and do not automatically adjust based on usage. -::: +Determines how many CPU cores are allocated when containers start: +- Default: 2 cores +- Applies to both dedicated and shared CPU modes +- Higher values provide more processing power during application initialization +- After startup, resources are automatically adjusted based on actual usage and limits -### Fine-Tuning Resource Allocation +#### CPU Scaling Thresholds -Resource allocation can be configured through basic and advanced settings: +For services using [dedicated CPU](#cpu-mode) only, CPU scaling is controlled by: -#### Minimum and Maximum Resources (Basic) +**Min. Free CPU Cores (%)** +- Scale-up is triggered when free capacity drops below a fixed fraction of a single CPU core +- Default: 10% +- Set as a percentage of a single core's capacity +- Example: Setting to 20% means that with one core, at least 20% of that core should remain free -Boundaries for CPU cores, RAM, and disk space can be established. +**Dynamic Min. Free Total Core Percent** +- Scale-up is triggered when total free capacity across all cores falls below a percentage of total capacity +- Default: 0% (disabled) +- Dynamically adjusts as the number of cores changes +- Ideal for accommodating varying load distributions +- Example: 20% setting ensures at least 20% of the combined capacity of all cores remains free -:::tip Resource Scaling Control -To prevent scaling of specific resources, simply set identical minimum and maximum values for CPU, RAM, or Disk. -::: +### RAM Settings -#### Start CPU Core Count (Advanced) +#### Minimum and Maximum RAM -How many CPU cores should be allocated when containers start to ensure reliable and fast startup: -- Default: 2 cores -- Applies to both dedicated and shared CPU modes -- Higher values provide more processing power during application initialization -- After startup, resources are automatically adjusted based on actual usage and limits +Set boundaries for RAM allocation. Zerops will scale RAM within these limits based on actual usage. -#### RAM Scaling Thresholds (Advanced) +#### RAM Scaling Thresholds RAM usage is monitored every 10 seconds to ensure optimal performance. The minimum free RAM settings serve multiple important purposes: they prevent Out of Memory (OOM) errors, provide space for kernel disk caching (which improves application performance), and maintain a buffer for sudden memory demands. @@ -154,17 +169,17 @@ Swap is enabled for all containers to help prevent OOM errors, but proper minimu Two threshold types determine RAM scaling: -1. **Minimum Free RAM (absolute value in GB)** - - Specifies an absolute threshold for free RAM - - Additional memory is triggered when available RAM falls below this fixed amount - - Default: 0.0625 GB (64 MB) for most services - - Ideal for maintaining system stability and responsiveness +**Minimum Free RAM (absolute value in GB)** +- Specifies an absolute threshold for free RAM +- Additional memory is triggered when available RAM falls below this fixed amount +- Default: 0.0625 GB (64 MB) for most services +- Ideal for maintaining system stability and responsiveness -2. **Minimum Free RAM (% of Granted)** - - Establishes a dynamic threshold based on a percentage of total granted memory - - Default: 0% (disabled) - - The buffer scales proportionally as total memory increases - - Particularly useful for handling varying loads +**Minimum Free RAM (% of Granted)** +- Establishes a dynamic threshold based on a percentage of total granted memory +- Default: 0% (disabled) +- The buffer scales proportionally as total memory increases +- Particularly useful for handling varying loads :::note Whichever setting provides more free memory is used. @@ -180,22 +195,11 @@ Whichever setting provides more free memory is used. plays-inline="true" /> -#### CPU Scaling Thresholds (Advanced) - -For services using [dedicated CPU](#dedicated-cpu) cores only, CPU scaling is controlled by: +### Disk Settings -1. **Min. Free CPU Cores (%)** - - Scale-up is triggered when free capacity drops below a fixed fraction of a single CPU core - - Default: 10% - - Set as a percentage of a single core's capacity - - Example: Setting to 20% means that with one core, at least 20% of that core should remain free +#### Minimum and Maximum Disk -2. **Dynamic Min. Free Total Core Percent** - - Scale-up is triggered when total free capacity across all cores falls below a percentage of total capacity - - Default: 0% (disabled) - - Dynamically adjusts as the number of cores changes - - Ideal for accommodating varying load distributions - - Example: 20% setting ensures at least 20% of the combined capacity of all cores remains free +Set boundaries for disk space allocation. Zerops will scale disk space within these limits based on actual usage. ### Resource Scaling Behavior diff --git a/apps/docs/content/gleam/how-to/controls.mdx b/apps/docs/content/gleam/how-to/controls.mdx index 045200a4..7f282702 100644 --- a/apps/docs/content/gleam/how-to/controls.mdx +++ b/apps/docs/content/gleam/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Gleam service -description: Learn how you can stop and start your Gleam service in Zerops. +title: Stop, start and delete Gleam service +description: Learn how you can stop, start and delete your Gleam service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/gleam/how-to/delete.mdx b/apps/docs/content/gleam/how-to/delete.mdx deleted file mode 100644 index feb2cf4b..00000000 --- a/apps/docs/content/gleam/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Gleam service -description: Learn how you can delete your Gleam service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/go/how-to/controls.mdx b/apps/docs/content/go/how-to/controls.mdx index 7a6390d3..0b5f24d3 100644 --- a/apps/docs/content/go/how-to/controls.mdx +++ b/apps/docs/content/go/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Go service -description: Learn how you can stop and start your go service in Zerops. +title: Stop, start and delete Go service +description: Learn how you can stop, start and delete your go service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/go/how-to/delete.mdx b/apps/docs/content/go/how-to/delete.mdx deleted file mode 100644 index ed468bf0..00000000 --- a/apps/docs/content/go/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Go service -description: Learn how you can delete your go service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/java/how-to/controls.mdx b/apps/docs/content/java/how-to/controls.mdx index fe26b06e..a96582b8 100644 --- a/apps/docs/content/java/how-to/controls.mdx +++ b/apps/docs/content/java/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Java service -description: Learn how you can stop and start your java service in Zerops. +title: Stop, start and delete Java service +description: Learn how you can stop, start and delete your java service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/java/how-to/delete.mdx b/apps/docs/content/java/how-to/delete.mdx deleted file mode 100644 index 56b642de..00000000 --- a/apps/docs/content/java/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Java service -description: Learn how you can delete your java service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/keydb/how-to/control.mdx b/apps/docs/content/keydb/how-to/control.mdx index b48bafc9..6593970d 100644 --- a/apps/docs/content/keydb/how-to/control.mdx +++ b/apps/docs/content/keydb/how-to/control.mdx @@ -1,57 +1,12 @@ --- -title: Stop and start KeyDB service -description: Learn how you can stop and start your keydb service in Zerops. +title: Stop, start and delete KeyDB service +description: Learn how you can stop, start and delete your KeyDB service in Zerops. --- -Zerops allows you to stop any service. Stopped services only consume disk. +import { SetVar } from '/src/components/content/var'; +import ServiceContent from '/src/components/content/manage.mdx'; -## Stop, start and restart KeyDB service in Zerops GUI + + -To stop the KeyDB service in Zerops GUI go to the project dashboard and select the **Stop** menu item in the top right corner. - -{/*TODO screenshot (show menu with the start and stop items on a service)*/} - -To start the stopped KeyDB service choose the **Start** item from the same menu. - -To restart the KeyDB service choose the **Restart** item from the same menu. - -## Stop and start KeyDB using zCLI - -zCLI is the Zerops command-line tool. To stop and start the KeyDB service via the command-line, follow these steps: - -1. [Install & setup zCLI](/references/cli) -2. Run the `zcli service stop` command - -```sh -Usage: - zcli service stop [service-id-or-name] [flags] - -Flags: - -h, --help the enable Zerops subdomain command. - --project-id string If you have access to more than one project, you must specify the project ID for which the - command is to be executed. - --service-id string If you have access to more than one service, you must specify the service ID for which the - command is to be executed. -``` - -:::info -zCLI commands are interactive, when you press enter after `zcli service stop`, you will be given a list of your projects and services to choose from. -::: - -3. Run the `zcli service start` command - -```sh -Usage: - zcli service start [{serviceName | serviceId}] [flags] - -Flags: - -h, --help the service start command. - --project-id string If you have access to more than one project, you must specify the project ID for which the - command is to be executed. - --service-id string If you have access to more than one service, you must specify the service ID for which the - command is to be executed. -``` - -:::info -zCLI commands are interactive, when you press enter after `zcli service start`, you will be given a list of your projects and its services to choose from. -::: + \ No newline at end of file diff --git a/apps/docs/content/keydb/how-to/delete.mdx b/apps/docs/content/keydb/how-to/delete.mdx deleted file mode 100644 index fb7e6452..00000000 --- a/apps/docs/content/keydb/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete KeyDB service -description: Learn how you can delete your keydb service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/mariadb/how-to/control.mdx b/apps/docs/content/mariadb/how-to/control.mdx index 0213aefe..257ab4b1 100644 --- a/apps/docs/content/mariadb/how-to/control.mdx +++ b/apps/docs/content/mariadb/how-to/control.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start MariaDB service -description: Learn how you can stop and start your mariadb service in Zerops. +title: Stop, start and delete MariaDB service +description: Learn how you can stop, start and delete your mariadb service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/mariadb/how-to/delete.mdx b/apps/docs/content/mariadb/how-to/delete.mdx deleted file mode 100644 index 6897aa37..00000000 --- a/apps/docs/content/mariadb/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete MariaDB service -description: Learn how you can delete your mariadb service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/nginx/how-to/controls.mdx b/apps/docs/content/nginx/how-to/controls.mdx index 9263fa68..d2a5764f 100644 --- a/apps/docs/content/nginx/how-to/controls.mdx +++ b/apps/docs/content/nginx/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Nginx static service -description: Learn how you can stop and start your nginx static service in Zerops. +title: Stop, start and delete Nginx static service +description: Learn how you can stop, start and delete your nginx static service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/nginx/how-to/delete.mdx b/apps/docs/content/nginx/how-to/delete.mdx deleted file mode 100644 index 75fba1ed..00000000 --- a/apps/docs/content/nginx/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Nginx static service -description: Learn how you can delete your nginx static service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/nodejs/how-to/controls.mdx b/apps/docs/content/nodejs/how-to/controls.mdx index 2d16e81b..967c7ffd 100644 --- a/apps/docs/content/nodejs/how-to/controls.mdx +++ b/apps/docs/content/nodejs/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Node.js service -description: Learn how you can stop and start your node.js service in Zerops. +title: Stop, start and delete Node.js service +description: Learn how you can stop, start and delete your node.js service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/nodejs/how-to/delete.mdx b/apps/docs/content/nodejs/how-to/delete.mdx deleted file mode 100644 index 9429b6c1..00000000 --- a/apps/docs/content/nodejs/how-to/delete.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Delete Node.js service -description: Learn how you can delete your node.js service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - - \ No newline at end of file diff --git a/apps/docs/content/object-storage/how-to/controls.mdx b/apps/docs/content/object-storage/how-to/controls.mdx new file mode 100644 index 00000000..e6984d66 --- /dev/null +++ b/apps/docs/content/object-storage/how-to/controls.mdx @@ -0,0 +1,12 @@ +--- +title: Stop, start and delete Object storage service +description: Learn how you can stop, start and delete your object storage service in Zerops. +--- + +import { SetVar } from '/src/components/content/var'; +import ServiceContent from '/src/components/content/manage.mdx'; + + + + + \ No newline at end of file diff --git a/apps/docs/content/object-storage/how-to/delete.mdx b/apps/docs/content/object-storage/how-to/delete.mdx deleted file mode 100644 index 6ba7befb..00000000 --- a/apps/docs/content/object-storage/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Object storage service -description: Learn how you can delete your object storage service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/php/how-to/controls.mdx b/apps/docs/content/php/how-to/controls.mdx index 6f643ec1..7a873fae 100644 --- a/apps/docs/content/php/how-to/controls.mdx +++ b/apps/docs/content/php/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start PHP service -description: Learn how you can stop and start your php service in Zerops. +title: Stop, start and delete PHP service +description: Learn how you can stop, start and delete your php service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/php/how-to/delete.mdx b/apps/docs/content/php/how-to/delete.mdx deleted file mode 100644 index a9ac9000..00000000 --- a/apps/docs/content/php/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete PHP service -description: Learn how you can delete your php service in Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/postgresql/how-to/control.mdx b/apps/docs/content/postgresql/how-to/control.mdx index a941a554..b3096e4e 100644 --- a/apps/docs/content/postgresql/how-to/control.mdx +++ b/apps/docs/content/postgresql/how-to/control.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start PostgreSQL service -description: Learn how you can stop and start your postgresql service in Zerops. +title: Stop, start and delete PostgreSQL service +description: Learn how you can stop, start and delete your postgresql service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/postgresql/how-to/delete.mdx b/apps/docs/content/postgresql/how-to/delete.mdx deleted file mode 100644 index 4ed633b8..00000000 --- a/apps/docs/content/postgresql/how-to/delete.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Delete PostgreSQL service -description: Learn how you can delete your postgresql service in Zerops. ---- - - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/python/how-to/controls.mdx b/apps/docs/content/python/how-to/controls.mdx index 19541643..0480ab92 100644 --- a/apps/docs/content/python/how-to/controls.mdx +++ b/apps/docs/content/python/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Python service -description: Learn how you can stop and start your python service in Zerops. +title: Stop, start and delete Python service +description: Learn how you can stop, start and delete your python service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/python/how-to/delete.mdx b/apps/docs/content/python/how-to/delete.mdx deleted file mode 100644 index e0c0e6ed..00000000 --- a/apps/docs/content/python/how-to/delete.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Delete Python service -description: Learn how you can delete your python service in Zerops. ---- - - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/rust/how-to/controls.mdx b/apps/docs/content/rust/how-to/controls.mdx index 9aba5ad3..6ddfed6e 100644 --- a/apps/docs/content/rust/how-to/controls.mdx +++ b/apps/docs/content/rust/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start your Rust service -description: Learn how you can stop and start your rust service in Zerops. +title: Stop, start and delete your Rust service +description: Learn how you can stop, start and delete your rust service in Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/rust/how-to/delete.mdx b/apps/docs/content/rust/how-to/delete.mdx deleted file mode 100644 index 75572ba4..00000000 --- a/apps/docs/content/rust/how-to/delete.mdx +++ /dev/null @@ -1,12 +0,0 @@ ---- -title: Delete Rust service -description: Learn how you can delete your rust service in Zerops. ---- - - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/content/ubuntu/how-to/controls.mdx b/apps/docs/content/ubuntu/how-to/controls.mdx index 4a237e1b..216b4e69 100644 --- a/apps/docs/content/ubuntu/how-to/controls.mdx +++ b/apps/docs/content/ubuntu/how-to/controls.mdx @@ -1,10 +1,10 @@ --- -title: Stop and start Ubuntu service -description: Learn how you can stop and start your Ubuntu service on Zerops. +title: Stop, start and delete Ubuntu service +description: Learn how you can stop, start and delete your Ubuntu service on Zerops. --- import { SetVar } from '/src/components/content/var'; -import ServiceContent from '/src/components/content/start-stop.mdx'; +import ServiceContent from '/src/components/content/manage.mdx'; diff --git a/apps/docs/content/ubuntu/how-to/delete.mdx b/apps/docs/content/ubuntu/how-to/delete.mdx deleted file mode 100644 index d00df961..00000000 --- a/apps/docs/content/ubuntu/how-to/delete.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -title: Delete Ubuntu service -description: Learn how you can delete your Ubuntu service on Zerops. ---- - -import { SetVar } from '/src/components/content/var'; -import DeleteContent from '/src/components/content/delete.mdx'; - - - - \ No newline at end of file diff --git a/apps/docs/sidebars.js b/apps/docs/sidebars.js index aac998a0..7faa8ffa 100644 --- a/apps/docs/sidebars.js +++ b/apps/docs/sidebars.js @@ -857,15 +857,10 @@ module.exports = { id: 'nodejs/how-to/upgrade', label: 'Upgrade Node.js service', }, - { - type: 'doc', - id: 'nodejs/how-to/delete', - label: 'Delete Node.js service', - }, { type: 'doc', id: 'nodejs/how-to/controls', - label: 'Stop & start Node.js runtime service', + label: 'Stop, start & delete Node.js runtime service', }, ], }, @@ -996,15 +991,10 @@ module.exports = { id: 'php/how-to/upgrade', label: 'Upgrade PHP service', }, - { - type: 'doc', - id: 'php/how-to/delete', - label: 'Delete PHP service', - }, { type: 'doc', id: 'php/how-to/controls', - label: 'Stop & start PHP runtime service', + label: 'Stop, start & delete PHP runtime service', }, ], }, @@ -1131,15 +1121,10 @@ module.exports = { id: 'python/how-to/upgrade', label: 'Upgrade Python service', }, - { - type: 'doc', - id: 'python/how-to/delete', - label: 'Delete Python service', - }, { type: 'doc', id: 'python/how-to/controls', - label: 'Stop & start Python runtime service', + label: 'Stop, start & delete Python runtime service', }, ], }, @@ -1261,15 +1246,10 @@ module.exports = { id: 'go/how-to/upgrade', label: 'Upgrade Go service', }, - { - type: 'doc', - id: 'go/how-to/delete', - label: 'Delete Go service', - }, { type: 'doc', id: 'go/how-to/controls', - label: 'Stop & start Go runtime service', + label: 'Stop, start & delete Go runtime service', }, ], }, @@ -1391,15 +1371,10 @@ module.exports = { id: 'rust/how-to/upgrade', label: 'Upgrade Rust service', }, - { - type: 'doc', - id: 'rust/how-to/delete', - label: 'Delete Rust service', - }, { type: 'doc', id: 'rust/how-to/controls', - label: 'Stop & start Rust runtime service', + label: 'Stop, start & delete Rust runtime service', }, ], }, @@ -1521,15 +1496,10 @@ module.exports = { id: 'dotnet/how-to/upgrade', label: 'Upgrade .NET service', }, - { - type: 'doc', - id: 'dotnet/how-to/delete', - label: 'Delete .NET service', - }, { type: 'doc', id: 'dotnet/how-to/controls', - label: 'Stop & start .NET runtime service', + label: 'Stop, start & delete .NET runtime service', }, ], }, @@ -1651,15 +1621,10 @@ module.exports = { id: 'java/how-to/upgrade', label: 'Upgrade Java service', }, - { - type: 'doc', - id: 'java/how-to/delete', - label: 'Delete Java service', - }, { type: 'doc', id: 'java/how-to/controls', - label: 'Stop & start Java runtime service', + label: 'Stop, start & delete Java runtime service', }, ], }, @@ -1781,15 +1746,10 @@ module.exports = { id: 'nginx/how-to/upgrade', label: 'Upgrade Nginx service', }, - { - type: 'doc', - id: 'nginx/how-to/delete', - label: 'Delete Nginx static service', - }, { type: 'doc', id: 'nginx/how-to/controls', - label: 'Stop & start Nginx static service', + label: 'Stop, start & delete Nginx static service', }, ], }, @@ -1940,15 +1900,10 @@ module.exports = { id: 'ubuntu/how-to/upgrade', label: 'Upgrade Ubuntu service', }, - { - type: 'doc', - id: 'ubuntu/how-to/delete', - label: 'Delete Ubuntu service', - }, { type: 'doc', id: 'ubuntu/how-to/controls', - label: 'Stop & start Ubuntu runtime service', + label: 'Stop, start & delete Ubuntu runtime service', }, ], }, @@ -2070,15 +2025,10 @@ module.exports = { id: 'alpine/how-to/upgrade', label: 'Upgrade Alpine service', }, - { - type: 'doc', - id: 'alpine/how-to/delete', - label: 'Delete Alpine service', - }, { type: 'doc', id: 'alpine/how-to/controls', - label: 'Stop & start Alpine runtime service', + label: 'Stop, start & delete Alpine runtime service', }, ], }, @@ -2243,12 +2193,7 @@ module.exports = { { type: 'doc', id: 'mariadb/how-to/control', - label: 'Stop and start MariaDB service', - }, - { - type: 'doc', - id: 'mariadb/how-to/delete', - label: 'Delete MariaDB service', + label: 'Stop, start and delete MariaDB service', }, ], }, @@ -2342,12 +2287,7 @@ module.exports = { { type: 'doc', id: 'postgresql/how-to/control', - label: 'Stop and start PostgreSQL service', - }, - { - type: 'doc', - id: 'postgresql/how-to/delete', - label: 'Delete PostgreSQL service', + label: 'Stop, start and delete PostgreSQL service', }, ], }, @@ -2451,12 +2391,7 @@ module.exports = { { type: 'doc', id: 'keydb/how-to/control', - label: 'Stop and start KeyDB service', - }, - { - type: 'doc', - id: 'keydb/how-to/delete', - label: 'Delete KeyDB service', + label: 'Stop, start and delete KeyDB service', }, ], }, @@ -2720,8 +2655,8 @@ module.exports = { }, { type: 'doc', - id: 'object-storage/how-to/delete', - label: 'Delete object storage service', + id: 'object-storage/how-to/controls', + label: 'Stop, start & delete object storage service', }, { type: 'doc', @@ -2768,15 +2703,10 @@ module.exports = { id: 'deno/how-to/upgrade', label: 'Upgrade Deno service', }, - { - type: 'doc', - id: 'deno/how-to/delete', - label: 'Delete Deno service', - }, { type: 'doc', id: 'deno/how-to/controls', - label: 'Stop & start Deno runtime service', + label: 'Stop, start & delete Deno runtime service', }, ], }, @@ -2898,15 +2828,10 @@ module.exports = { id: 'bun/how-to/upgrade', label: 'Upgrade Bun service', }, - { - type: 'doc', - id: 'bun/how-to/delete', - label: 'Delete Bun service', - }, { type: 'doc', id: 'bun/how-to/controls', - label: 'Stop & start Bun runtime service', + label: 'Stop, start & delete Bun runtime service', }, ], }, @@ -3028,15 +2953,10 @@ module.exports = { id: 'gleam/how-to/upgrade', label: 'Upgrade Gleam service', }, - { - type: 'doc', - id: 'gleam/how-to/delete', - label: 'Delete Gleam service', - }, { type: 'doc', id: 'gleam/how-to/controls', - label: 'Stop & start Gleam runtime service', + label: 'Stop, start & delete Gleam runtime service', }, ], }, @@ -3158,15 +3078,10 @@ module.exports = { id: 'elixir/how-to/upgrade', label: 'Upgrade Elixir service', }, - { - type: 'doc', - id: 'elixir/how-to/delete', - label: 'Delete Elixir service', - }, { type: 'doc', id: 'elixir/how-to/controls', - label: 'Stop & start Elixir runtime service', + label: 'Stop, start & delete Elixir runtime service', }, ], }, diff --git a/apps/docs/content/frameworks/laravel.mdx b/apps/docs/src/components/backup/frameworks/laravel.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel.mdx rename to apps/docs/src/components/backup/frameworks/laravel.mdx diff --git a/apps/docs/content/frameworks/laravel/cron.mdx b/apps/docs/src/components/backup/frameworks/laravel/cron.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/cron.mdx rename to apps/docs/src/components/backup/frameworks/laravel/cron.mdx diff --git a/apps/docs/content/frameworks/laravel/env-variables.mdx b/apps/docs/src/components/backup/frameworks/laravel/env-variables.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/env-variables.mdx rename to apps/docs/src/components/backup/frameworks/laravel/env-variables.mdx diff --git a/apps/docs/content/frameworks/laravel/faq.mdx b/apps/docs/src/components/backup/frameworks/laravel/faq.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/faq.mdx rename to apps/docs/src/components/backup/frameworks/laravel/faq.mdx diff --git a/apps/docs/content/frameworks/laravel/introduction.mdx b/apps/docs/src/components/backup/frameworks/laravel/introduction.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/introduction.mdx rename to apps/docs/src/components/backup/frameworks/laravel/introduction.mdx diff --git a/apps/docs/content/frameworks/laravel/logs.mdx b/apps/docs/src/components/backup/frameworks/laravel/logs.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/logs.mdx rename to apps/docs/src/components/backup/frameworks/laravel/logs.mdx diff --git a/apps/docs/content/frameworks/laravel/migrations.mdx b/apps/docs/src/components/backup/frameworks/laravel/migrations.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/migrations.mdx rename to apps/docs/src/components/backup/frameworks/laravel/migrations.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/filament-devel.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/filament-devel.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/filament-devel.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/filament-devel.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/filament-local.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/filament-local.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/filament-local.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/filament-local.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/filament-prod.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/filament-prod.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/filament-prod.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/filament-prod.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/jetstream-devel.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/jetstream-devel.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/jetstream-devel.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/jetstream-devel.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/jetstream-local.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/jetstream-local.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/jetstream-local.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/jetstream-local.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/jetstream-prod.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/jetstream-prod.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/jetstream-prod.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/jetstream-prod.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/minimal-devel.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/minimal-devel.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/minimal-devel.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/minimal-devel.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/minimal-local.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/minimal-local.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/minimal-local.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/minimal-local.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/minimal-prod.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/minimal-prod.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/minimal-prod.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/minimal-prod.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/twill-devel.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/twill-devel.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/twill-devel.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/twill-devel.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/twill-local.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/twill-local.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/twill-local.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/twill-local.mdx diff --git a/apps/docs/content/frameworks/laravel/recipes/twill-prod.mdx b/apps/docs/src/components/backup/frameworks/laravel/recipes/twill-prod.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/recipes/twill-prod.mdx rename to apps/docs/src/components/backup/frameworks/laravel/recipes/twill-prod.mdx diff --git a/apps/docs/content/frameworks/laravel/redis.mdx b/apps/docs/src/components/backup/frameworks/laravel/redis.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/redis.mdx rename to apps/docs/src/components/backup/frameworks/laravel/redis.mdx diff --git a/apps/docs/content/frameworks/laravel/smtp.mdx b/apps/docs/src/components/backup/frameworks/laravel/smtp.mdx similarity index 100% rename from apps/docs/content/frameworks/laravel/smtp.mdx rename to apps/docs/src/components/backup/frameworks/laravel/smtp.mdx diff --git a/apps/docs/src/components/content/delete.mdx b/apps/docs/src/components/content/delete.mdx deleted file mode 100644 index 4220e09e..00000000 --- a/apps/docs/src/components/content/delete.mdx +++ /dev/null @@ -1,27 +0,0 @@ -import { Var } from '/src/components/content/var'; - -## Delete service in Zerops GUI - -Go to the project dashboard and select the **delete service** menu item in the top right corner. - -## Delete using zCLI - -zCLI is the Zerops command-line tool. To delete the service via the command-line, follow these steps: - -1. [Install & setup zCLI](/references/cli) -2. Run the `zcli service delete` command - -```sh -Usage: - zcli service delete [service-id-or-name] [flags] - -Flags: - --confirm Skip confirmation prompts for destructive operations. - -h, --help Help for the service delete command. - -P, --project-id string If you have access to more than one project, you must specify the project ID for which the - command is to be executed. - -S, --service-id string If you have access to more than one service, you must specify the service ID for which the - command is to be executed. -``` - -zCLI commands are interactive, when you press enter after `zcli service delete`, you will be given a list of your projects and its services to choose from. \ No newline at end of file diff --git a/apps/docs/src/components/content/manage.mdx b/apps/docs/src/components/content/manage.mdx new file mode 100644 index 00000000..9232e452 --- /dev/null +++ b/apps/docs/src/components/content/manage.mdx @@ -0,0 +1,57 @@ +import { Var } from '/src/components/content/var'; + +Learn how to stop, start, restart, and delete your service in Zerops. + +## Using Zerops GUI + +Go to the project dashboard and select the appropriate action from the menu in the top right corner: + +- **Stop** - Stops the service (only disk resources are consumed while stopped) +- **Start** - Starts a stopped service +- **Restart** - Restarts a running service +- **Delete service** - Permanently deletes the service and all associated data + +{/*TODO screenshot (show menu with the start and stop items on a service)*/} + +:::warning +Deleting a service is permanent and cannot be undone. All data associated with the service will be lost. +::: + +## Using zCLI + +zCLI is the Zerops command-line tool. To manage your service via the command-line: + +1. [Install & setup zCLI](/references/cli) +2. Run the appropriate command: + +```sh +# Stop a service +zcli service stop [service-id-or-name] + +# Start a service +zcli service start [service-id-or-name] + +# Delete a service +zcli service delete [service-id-or-name] +``` + +:::info +All zCLI commands are interactive. When you press enter, you will be given a list of your projects and services to choose from. +::: + +### Available flags + +All service management commands support these flags: + +``` + -h, --help Help for the command. + -P, --project-id string If you have access to more than one project, you must specify the project ID for which the + command is to be executed. + -S, --service-id string If you have access to more than one service, you must specify the service ID for which the + command is to be executed. +``` + +The `delete` command also supports: +``` + --confirm Skip confirmation prompts for destructive operations. +``` \ No newline at end of file diff --git a/apps/docs/src/components/content/scaling.mdx b/apps/docs/src/components/content/scaling.mdx index 880c4b66..9fa85e41 100644 --- a/apps/docs/src/components/content/scaling.mdx +++ b/apps/docs/src/components/content/scaling.mdx @@ -29,8 +29,6 @@ You can configure scaling settings at different stages: - **After service creation** - Navigate to your service and select **Automatic scaling configuration** from the menu to modify settings. -### Basic settings -

-**CPU mode**: Choose between shared (cost-effective, variable performance) or dedicated (consistent performance, higher cost). You can change CPU mode once per hour. See [pricing](https://zerops.io/#pricing) for costs or read more about [CPU options](/features/scaling-ha#cpu-options). - -**Resource limits**: Configure minimum and maximum resources for your service: - - +### CPU Settings -- **Lower the maximum** to control costs and prevent over-scaling -- **Raise the minimum** when you need guaranteed baseline performance -- **Set minimum = maximum** to disable automatic scaling for that specific resource +**CPU mode**: Choose between shared (cost-effective, variable performance) or dedicated (consistent performance, higher cost). You can change CPU mode once per hour. See [pricing](https://zerops.io/#pricing) for costs or read more about [CPU mode](/features/scaling-ha#cpu-mode). -:::info Read More -More details on [fine-tuning resource allocation](/features/scaling-ha#fine-tuning-resource-allocation). -::: - -**Container limits**: Set how many containers your service can scale to: +**Minimum and Maximum CPU**: Configure the boundaries for CPU core allocation. Zerops will scale CPU resources within these limits based on actual usage. - + - - + +
Minimum containersMinimum CPU cores 1
Maximum containers10Maximum CPU cores8
-**Single container** (maximum = 1): More cost-effective, but your application will experience downtime if the container fails. This mode is suitable for development and testing environments. - -**Multiple containers** (maximum > 1): Can provide high availability for production environments, but only if your application is properly designed for it. Each container runs on a different physical server for redundancy. Your application must be stateless and avoid storing data in local files to work properly across multiple containers. - -:::info Read More -More details on [horizontal scaling](/features/scaling-ha#horizontal-scaling-runtime-services-linux-containers-and-docker). +:::tip +Set minimum = maximum to disable automatic CPU scaling. ::: -### Advanced settings - **Start CPU cores**: Determines how many CPU cores are allocated during application startup. Increase this value if your application starts slowly or requires more processing power during initialization. +- Default: 2 cores -For dedicated CPU mode, you can also configure: +**CPU Scaling Thresholds** (for dedicated CPU mode only): - **Min free CPU %**: Triggers scaling when free CPU drops below this percentage of a single core - **Dynamic free total %**: Triggers scaling when total free CPU across all cores drops below this percentage :::info Read More -More details on [CPU Scaling Thresholds](/features/scaling-ha#cpu-scaling-thresholds-advanced). +More details on [CPU Settings](/features/scaling-ha#cpu-settings). ::: -**RAM thresholds**: Help prevent out-of-memory crashes by maintaining buffer space: +### RAM Settings + +**Minimum and Maximum RAM**: Configure the boundaries for RAM allocation. Zerops will scale RAM within these limits based on actual usage. + + + + + + + + + + + +
Minimum RAM0.125 GB
Maximum RAM48 GB
+ +:::tip +Set minimum = maximum to disable automatic RAM scaling. +::: + +**RAM Scaling Thresholds**: Help prevent out-of-memory crashes by maintaining buffer space: - **Absolute (GB)**: Maintains this amount of free RAM at all times - **Percentage**: Keeps this percentage of total RAM free Consider increasing these values if your application experiences memory-related crashes. :::info Read More -More details on [RAM Scaling Thresholds](/features/scaling-ha#ram-scaling-thresholds-advanced). +More details on [RAM Settings](/features/scaling-ha#ram-settings). :::