Know everything about Artifakt platforms and how to set the right infrastructure sizing for your applications' needs.
Depending of your needs and the criticality of your web applications, Artifakt offers two types of platform: Starter and Scalable.
Starter platforms are best suited for development environments, simple websites or small web projects. They are made up of 1 instance hosting your web application and all your additional services such as MySQL, Redis, etc.
Scalable platforms are the go-to standard for the most critical apps (global availability, requiring high resiliency and efficient scalability). They are made up of at least 2 instances allowing resiliency in case of an outage (failover mechanism) for web applications and additional services (critical mode only).
Using Scalable platforms, you will be able to manually scale horizontally and vertically, while avoiding downtime. You will also be able to define rules to automatically scale horizontally, based on memory or CPU usage.
The Scalable platforms are highly available:
- Compute: Scalable platforms benefits from load balancing, auto-scaling and provisioning across a maximum of 3 different geographical zones within a Region. When deploying an instance, it will deploy automatically on the least used zone, or a random one if there is no least used zone, ensuring maximum availability. The instances are all load balanced and work in an active/active mode.
- Additionnal services: we automatically deploy services with one standby replica in a different zone. They function in the Active/Passive mode, and a failover happens automatically when the Active component is failing.
- Storage: we automatically store all data across different zones in an active/passive mode.
By locating cloud resources in different zones, we eliminate the chance that a failure such as a power outage, fire or flood in one zone will cause a component and therefore your website to fail.
One of the specificities of the Scalable Platform is the presence of a file system mounted on all front servers. It is akin to a standard Network File System (NFS) share, but has a few unique features :
- The Elastic Storage grows as you include more files into it so you will never effectively run out of space.
- The Elastic Storage gets faster as it gets larger.
Go to Environment → Settings → Resources to manage the sizing of your platforms resources. From this page, you can easily define application resources, additional services, replica limits (scalable type only) or auto scaling configuration.
Modifying application resources
This section allows you to scale up or down memory (RAM) and storage, based on your web application's needs. If you experience slowness or timeouts, consider increasing the memory.
replica limit configuration
This section lets you configure the number of replicas that will support your platform. Depending on the platform type, you will be able to configure the minimum and the maximum number of replcias.
Please find below some information about replica limits.
Updating auto scaling configuration
This feature allows you to define rules (RAM or CPU usage thresholds) that will be used to respond to traffic drops or peaks according to your needs.
For example, for traffic peaks, you can set the CPU usage threshold to 70% for 5 minutes. It means that if the average CPU usage of all servers is above 70% for more than 5 minutes, a new server will be automatically started to process new web requests (if the maximum number of servers defined has not already been reached).
At any time, you can change the platform sizing and configuration. If the environment is
unbuilt, the settings will be saved in Artifakt, in order to be used the next time you start the environment. If the environment is b
uilt, Artifakt will trigger a new version to be approved and will keep an history of all the previous versions.
After saving platform settings, a message will display at the top of the page to notify you that changes need to be applied. You can also see when and by whom these changes have been made.
Reviewing platform changes
By clicking on the link Uncommitted changes need to be reviewed, you can review all changes made on the platform. After reviewing, if the changes are satisfactory you can approve them; otherwise if you realize the changes are incorrect you can reject them which will cancel the platform update.
To help you understand the process, here is how the update of any platform works at Artifakt:
Platform update workflow
Each time you update the settings of a platform and approve the changes, we increment the version of that platform by one. For example, at some point, your environment will use version 12 of your platform (because you've changed it 12 times).
Platform history page
We have added a platform version history page accessible from Environment → Settings → Platform → Platform History. It helps you keep track of configuration changes made on your platform and know exactly what has been changed, when and by whom.