Choosing your server size
When deploying your stack, you are asked to specify a server size for the deployment. If you’re testing Cloud 66, you may be inclined to do so on as small a server as possible. We recommend that you do not do this, as this will come at a detriment to your experience with the service.
When your stack is built for the first time, a number of packages are built from source, along with other memory intensive operations. Though we create a swap file on small servers by default, to avoid it running out of memory, running on low resources will cause your build to take longer than normal.
Under-powered server sizes (not recommended)
Amazon Web Services
- 512 MB - General Purpose
- 512MB - 1 CPU
Google Compute Engine
- 512MB Standard Instance
- 512MB Standard Instance (HVM)
We suggest using a server with at least 1GB of memory and 4 cores
In particular, Elasticsearch on a standalone under-powered server will not start up. This is because we configure Elasticsearch to lock its memory and prevent swapping on standalone servers as per the official recommendation, and there is simply not enough memory for it to run it successfully.
Depending on whether or not you have deployed your application elsewhere, it may be hard to gauge the amount of resources that you need. On a PaaS like Heroku for example, you can choose between 1X (512 MB), 2X (1 GB) and PX (6 GB) server sizes. This makes it easy to calculate your server requirements, and we recommend that you use similar server resources when deploying your stack with Cloud 66. We also recommend that you have a seperate server for your database in production environments.
If you have yet to deploy your application in a production environment, you can deploy to a reasonably sized server and use load testing to determine your exact needs.