Configure High Availability on Fargate
The high availability configuration will ensure continuous access to your Appsmith installation. This page outlines how to setup high availability for Appsmith installation on AWS ECS using Fargate.
Prerequisites
- Amazon Web Services (AWS) account. If you don't have one, Create an AWS Account.
- An Appsmith Commercial Edition installation using AWS ECS on Fargate. If not installed yet, see the AWS ECS on Fargate installation guides for installing Appsmith.
- At least 2 GB of free storage space for backup and update tasks.
- Backup your Appsmith instance
- Set up an external MongoDB
- Set up an external Redis server
- Set up a PostgreSQL RDS for Keycloak
Update Appsmith task definition
Follow the below steps to configure your Appsmith task definition to use the newly created EFS:
- Go to the AWS Management Console, open the Amazon ECS console, and select Task Definitions from the sidebar.
- Select the existing Appsmith task definition and click the Create new revision button to create a new revision for the task definition.
- Go to the Container-1 section, click the Add environment variable button, and add the below environment variables in Key and their values in Value:
- APPSMITH_MONGODB_URI - Add the external MongoDB URL you set up in Prerequisites section.
- APPSMITH_REDIS_URL - Add the external Redis URL you set up in Prerequisites section.
- Keep default values for other settings, and click the Create button.