Skip to main content

Configure High Availability and Scalability

This page outlines the steps to configure Appsmith Google Cloud Run installation for high availability and scalability.


Create a Redis instance

  1. Go to the Memorystore for Redis page in the Google Cloud console.

  2. Click Create Instance.

  3. On the Create a Redis instance page, enter the configurations as shown below:

    • In the Instance ID field, set an id. Example: instanceid.
    • In the Tier Selection list, select one of the options:
      • Basic: One primary Redis node. No automatic failover for High Availability.
      • Standard: Provides High Availability and fails over to replica in case of primary node failure. For more information about tiers, see Redis Tier Capabilities.
    • In the Capacity box, enter 10.
    • In the Region box, select a region for your instance.
    • In the Zone box, select a zone for your instance.
    • If you selected the Standard tier above, in the Configure read replicas dropdown list, select 2 Read Replicas .
    • Under Set up connection, select the default option for Network.
    • Expand the Configuration section. Select 6.x option(recommended) for Version.
  4. Click the Create button.

  5. Once the Redis instance is ready, note down the Primary Endpoint to use later.

Primary Endpoint of the Redis Instance
Primary Endpoint of the Redis Instance

Edit and deploy new revision

  1. Go to your cloud run console.
  2. Select your Appsmith Service, and click EDIT & DEPLOY NEW REVISION.
  3. Under Environment variables, click Add Variable button to add below variable in the Name and Value text boxes as shown below:
APPSMITH_REDIS_URLIf you followed the steps in the Create Redis Instance section, add the host and port from the Primary Endpoint of the Redis instance you noted down in step 5. Ensure that there is no trailing spaces in the Redis URL.

  1. Click Deploy button. A green check mark will appear next to the newly deployed service name when it's ready.
  2. Verify that the new revision is working as expected by accessing Appsmith, and logging into your account.
  3. Again click EDIT & DEPLOY NEW REVISION.
  4. Scroll down to the bottom of the page, and uncheck the Serve this revision immediately checkbox.
  5. Click Deploy button. A green check mark will appear next to the newly deployed revision when it's ready.

Manage traffic between revisions

Follow the steps below to split traffic between among revisions.

Manage traffic between revisions
Manage traffic between revisions
  1. Go to Cloud Run.
  2. Locate the service in the services list, and click on it.
  3. Click the Revisions tab.
  4. Click the MANAGE TRAFFIC button.
  5. Select the revisions that you created as part of Edit and deploy new revision section.
  6. Specify the traffic percentage that you want to assign to each revision.
  7. Click Save.


If you face issues, contact the support team using the chat widget at the bottom right of this page.