<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>RStudio Workbench on Handbook</title>
    <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/</link>
    <description>Recent content in RStudio Workbench on Handbook</description>
    <generator>Hugo -- gohugo.io</generator><atom:link href="https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Good To Know</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/1_good_to_know/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/1_good_to_know/</guid>
      <description>Connecting through ssh File Editors Disk Usage Effective Bulk File Transfers     General things good to know before doing any Workbench management related tasks.
Connecting through ssh Terminal command to connect to an instance:
ssh -i &amp;lt;key pem file&amp;gt; ubuntu@&amp;lt;instance public IP v4 DNS&amp;gt; Example:
ssh -i RStudio_Workbench.pem ubuntu@ec2-35-173-234-97.compute-1.amazonaws.com Instance public IP v4 DNS can be found at the instance page under the network tab.</description>
    </item>
    
    <item>
      <title>System Configuration</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/2_system_configuration/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/2_system_configuration/</guid>
      <description>Hardware  EC2  EC2 role EC2 reservation   FSx Lustre setup  Creating a file system Installing the Lustre Client Mounting the file system     RStudio Workbench installation Network settings  Mapping web domain to an elastic IP https  Application Load Balancer Network Load Balancer Overview         Hardware Currently our Workbench setup uses one EC2 server with a mounted FSx Lustre storage.</description>
    </item>
    
    <item>
      <title>System Configuration: Disregarded Options</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/2-1_system_configuration_disregarded/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/2-1_system_configuration_disregarded/</guid>
      <description>This page provides details about deprecated system configuration options. While we no longer use them, this information might come in handy in the future.
   Multi-attach EBS  Installation Auto-Enabled IO Backups   EFS     Multi-attach EBS Installation Here&amp;rsquo;s the guide on creating a multi-attach compatible EBS volume: link. Select the io2 type. For size I chose 500 Gb, for IOPS - 1000. Size can be scaled up in the future (not down) and IOPS can be increased or decreased.</description>
    </item>
    
    <item>
      <title>User Management</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/3_users/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/3_users/</guid>
      <description>Clumsy way (optional) Google sign in setup Adding users Admin users Removing users     This chapter covers user management and Google OpenID sign-in setup.
Clumsy way (optional) Here&amp;rsquo;s a command to add a user to Ubuntu server:
sudo useradd -m -d /pfs/home/&amp;lt;user&amp;gt; &amp;lt;user&amp;gt; sudo passwd &amp;lt;user&amp;gt; # will ask to enter a password Once you&amp;rsquo;ve added a user it should be possible to login into Workbench using this user&amp;rsquo;s Ubuntu credentials.</description>
    </item>
    
    <item>
      <title>Global Settings</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/4_global_settings/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/4_global_settings/</guid>
      <description>tmp folder Rprofile.site     This chapter covers global system settings that will be applied to all users.
tmp folder By default Ubuntu uses &amp;ldquo;/tmp&amp;rdquo; folder for temporary storage. In our current setup we use rather small internal ec-2 storage. So there&amp;rsquo;s a certain risk that this storage will be filled to capacity, especially if somebody happens to be doing Stan modeling. Therefore it makes sense to set the default temporary storage to a folder on the mounted persistent drive.</description>
    </item>
    
    <item>
      <title>R Libraries</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/5_r_libraries/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/5_r_libraries/</guid>
      <description>R library folder renv folders Initial package installation     This chapter is dedicated to our R library setup. We want to store R libraries along with renv cache on the mounted persistent drive. In the future it may be useful to keep multiple versions of R installed.
R library folder We will use R installations on ec-2 internal storage with global shared libraries on the mounted drive.</description>
    </item>
    
    <item>
      <title>Package Installation Issues</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/6_package_installation_issues/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/6_package_installation_issues/</guid>
      <description>Problems with *.so libraries Cannot open the connection cmdstanr Other individual cases     Problems with *.so libraries If you see an error like this:
Error: package or namespace load failed for ‘sf’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object &#39;/pfs/R/libs/4.2.0/sf/libs/sf.so&#39;: libproj.so.15: cannot open shared object file: No such file or directory Most likely it means that a package was installed from a binary.</description>
    </item>
    
    <item>
      <title>Testing Server</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/7_testing_server/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/7_testing_server/</guid>
      <description>System state Turn off Open ID Known issues     To properly try potential Workbench server updates you have to create a testing server. It&amp;rsquo;s not a good idea to test on our main server! Although for the tests to be as relevant as possible it&amp;rsquo;s better to have your testing environment closely resemble the production one. In our case in the first place this implies the state system drive of the server instance.</description>
    </item>
    
    <item>
      <title>Job Launcher</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/8_job_launcher/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/8_job_launcher/</guid>
      <description>Introduction Setup Overview Considered but Unchosen Setup Options  Slurm instead of Kubernetes Fargate for EKS Other storage options   Prerequisites  Tutorials Cloud9   Setup  Creating EKS Cluster with Primary Node Group Karpenter RStudio service account FSx PVC RStudio configuration  rserver.conf launcher-mounts launcher.conf launcher.kubernetes.profiles.conf launcher.kubernetes.conf kubernetes.launcher.token   RStudio image   Troubleshooting  Launcher logs LD libraries       Introduction The RStudio Server typically meets our needs, but occasionally running complex models can overload it, affecting user experience.</description>
    </item>
    
    <item>
      <title>On-Server Monorepo Mirror</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/9_monorepo_mirror/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/9_monorepo_mirror/</guid>
      <description>We are accustomed to having a separate copy of our monorepo for each project we work on. However, since our repository is quite large, doing git clone every time can be incredibly slow. To address this issue, we&amp;rsquo;ve set up an on-server monorepo mirror. This is a centralized copy that is regularly synchronized with GitHub. This allows us to quickly create new copies from the mirror instead of cloning the entire repository each time.</description>
    </item>
    
    <item>
      <title>Submitting Workbench Diagnostics Reports</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/10_submitting_diagnostics_reports/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/10_submitting_diagnostics_reports/</guid>
      <description>When submitting a support ticket to Posit Support regarding an issue with Workbench, it is advisable to include a diagnostics report. Typically, the support team will request this report if it is not initially provided. Below, we outline an efficient method for submitting this report.
  Access your server instance via SSH.
  Execute sudo rstudio-server run-diagnostics. You&amp;rsquo;ll see a message indicating the diagnostics report has been generated, along with its file path, e.</description>
    </item>
    
    <item>
      <title>Overview</title>
      <link>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/0_overview/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>https://handbook.gradientmetrics.com/product-team/devops/Rstudio_Workbench/0_overview/</guid>
      <description>Here are RStudio guides for Workbench: a small one, and a big one.
The problem is that unless you are an experienced devops engineer you may find some (a lot of) instructions unclear. Some of them may even be misleading. This set of pages is written to serve as a supplement to RStudio guides. It covers details relevant specifically to our way of setting up Workbench and simply things that might be unclear in general.</description>
    </item>
    
  </channel>
</rss>
