Posit Workbench Auto-Scaling Considerations


What is auto-scaling?

Auto-scaling is a process that horizontally scales the number of virtual machines or containers based on an increased number of requests from system users. 

Please note that auto-scaling is formally outside of our support. As such, it is best to consult your infrastructure team if you run into any issues.



There are a number of factors to consider with auto-scaling. Many vendors have their own processes and procedures, so its best to follow the advice of your infrastructure team. We do have the following documentation which can help point you in the right direction:


We've seen that scale-down events in the past have caused a few issues with other customers. The key components to consider when scaling down are:

  1. Ensuring that sessions are suspended prior to scale-down.
    1. https://docs.posit.co/ide/server-pro/reference/rstudio_server_cli.html#session-management
  2. Ensuring that nodes are removed from the database prior to the termination of the server/container.
    1. rstudio-server list-nodes
      From there, delete any nodes that don't currently exist:
      sudo rstudio-server delete-node n
      Where n are the nodes that exist on the database that don't currently exist on the cluster. You'll only need to perform this on the single node, as these changes will be reflected in the database.
  3. Deactivation of your license key from the server/container that is expected to be terminated.
    1. https://docs.posit.co/ide/server-pro/license_management/license_management.html

Stale entries in the database and records in users' home directories can cause a number of issues when launching new sessions. I'd recommend having the steps performed above prior to instance termination.
Whilst we aren't able to provide support on the vendor side, these commands will need to be run prior to terminating the instance or container during a scale-down event. 


Support Ticket

If you still have issues after completing the above, you can always lodge a support ticket, where our group of friendly, and incredibly knowledgeable staff can assist with any issues that you may be having. You can submit a ticket here: