Management

Advanced

Posit Team includes a Posit Workbench management page for an administrator to perform post-installation operations.

Workbench manage page

Workbench manage page

To manage Workbench, click the menu icon (vertical dots) on the Workbench card and click Manage.

Workbench management page

Workbench management page

Stop and start

The Workbench service can be managed in several ways:

  1. Manual stop and start.
  2. Automatic suspension upon idle.
  3. Programmatic stop and start.

A suspended Workbench service automatically resumes when visited by a user.

If there are times when Workbench is not used, such as on weekends and holidays, suspending the service can help reduce your Snowflake compute costs.

You can manually stop and start the Workbench service from the Manage page.

Workbench service operations

Workbench service operations

Posit Team can automatically suspend your Workbench instance after its sessions are idle for an hour.

Workbench automatic suspension

Workbench automatic suspension

You can start and stop the Workbench service using SQL commands.

-- Start Workbench
SELECT POSIT_TEAM.app.START_SERVICE('workbench');

-- Stop Workbench
SELECT POSIT_TEAM.app.STOP_SERVICE('workbench');

Schedule the start and stop of Workbench by running these SQL commands with Snowflake tasks.

-- Create a task to stop Workbench at 6 PM daily.
CREATE OR REPLACE TASK task_workbench_stop
    SCHEDULE = 'USING CRON 0 18 * * * America/New_York'
AS
    SELECT POSIT_TEAM.app.STOP_SERVICE('workbench');

-- Enable the stop task.
ALTER TASK task_workbench_stop RESUME;

-- Create a task to start Workbench at 8 AM daily
CREATE OR REPLACE TASK task_workbench_start
    SCHEDULE = 'USING CRON 0 8 * * * America/New_York'
AS
    SELECT POSIT_TEAM.app.START_SERVICE('workbench');

-- Enable the start task.
ALTER TASK task_workbench_start RESUME;

Upgrade

Note

Posit frequently upgrades the Posit Team Native App and its associated version of Workbench. When the Posit Team Native App is updated, Posit Team automatically upgrades Workbench.

Some configuration changes require a service upgrade before they take effect. For example, you need a service upgrade after modifying the target compute pool or uploading a new license. The management page indicates when configuration changes require an upgrade. Click the Upgrade button to upgrade Workbench.

Workbench upgrade

Workbench upgrade

Change configuration

In the management page you can change the license, resize the compute pool, update users roles and access, and update the OAuth integration. If the compute pool, OAuth integration or license have changed, a service upgrade is required. Follow the upgrade section instructions.

Resize compute pool

The Manage page lets you change the compute pool used to run Workbench. Choose a compute pool size appropriate to your workload requirements.

Workbench compute pool

Workbench compute pool

Use the upgrade instructions to apply a compute pool change and restart Workbench.

Update OAuth credentials

You can modify the Workbench Snowflake OAuth integration after its initial setup.

To update the integration:

Open the Manage page and click on the OAuth Integrations button.

Manage OAuth

Manage OAuth

Copy the SQL code shown and run it in a Snowflake Worksheet as an ACCOUNTADMIN to recreate the integration.

Upgrade OAuth

Upgrade OAuth

After modifying the OAuth integration, perform a Workbench service upgrade to apply the changes.

Backup and restore

Posit Team supports easily creating Workbench backups. Simply specify a backup name or leave it blank for a randomly assigned name and click Save New Backup.

Create backup

Create backup

Next, wait several minutes for the backup to be created.

Backup created

Backup created

Restoring from a backup takes about 10 minutes. You can delete backups that are no longer needed.

Logs

You can view logs of the Workbench installation.

Workbench logs

Workbench logs

User access

In order for Snowflake users to access Workbench, you must grant access to their user roles. We recommend you grant the application role POSIT_TEAM_USER to most users.

Snowsight UI
GRANT APPLICATION ROLE POSIT_TEAM.POSIT_TEAM_USER TO ROLE YOUR_USER_ROLE;

To restrict user access to Workbench only give the application role POSIT_WORKBENCH_USER to those users. See Managing Application Roles to learn more.

Snowsight UI
GRANT APPLICATION ROLE POSIT_TEAM.POSIT_WORKBENCH_USER TO ROLE YOUR_USER_ROLE;

Change the egress

To ensure full product functionality, key endpoints must be accessible, such as those for Snowflake OAuth and the Online Certificate Status Protocol (OCSP). For more information, see the security egress traffic documentation.

Editing the default egress policy requires the ACCOUNTADMIN role. You can modify the default egress policy for Workbench by:

  • Using the Snowsight UI (recommended) or
  • Writing your own SQL

To edit network rules via Snowsight UI:

Visit Governance & security -> Network policies -> Network Rules.

Network rule edit

Network rule edit

Edit the given network rule named POSIT_TEAM_APP_DATA.DATA.WORKBENCH_PUBLIC_EGRESS and remember to include the required endpoints detailed in the security egress documentation.

To edit network rules via SQL:

Modify the existing network rule POSIT_TEAM_APP_DATA.DATA.WORKBENCH_PUBLIC_EGRESS.

Snowsight UI
DESCRIBE NETWORK RULE posit_team_app_data.data.workbench_public_egress;

--- include custom <host>:<port>
--- host names are allowed
--- this example policy allows all ips on port 80 and 443
ALTER NETWORK RULE posit_team_app_data.data.allow_all_rule SET VALUE_LIST('0.0.0.0:80', '0.0.0.0:443');

Modify the egress rules only after a successful installation, and only change one rule at a time, allowing two to three minutes for each rule to take effect.

Troubleshooting and support

Visit the troubleshooting page for known issues and troubleshooting steps. If none of the troubleshooting steps help, please submit a request through the Posit support form or click on the Support button in the navigation header.

Support link

Support link
Back to top