Skip to content

Support for workspaces with multiple agents #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
fioan89 opened this issue Jun 9, 2022 · 0 comments · Fixed by #26
Closed

Support for workspaces with multiple agents #2

fioan89 opened this issue Jun 9, 2022 · 0 comments · Fixed by #26

Comments

@fioan89
Copy link
Collaborator

fioan89 commented Jun 9, 2022

A workspace in Coder V2 is a collection of various things. It could be a single VM, or it could be multiple VMs, containers, cloud DBs, etc. It all depends on the template. However, agents only run on compute hosts like VMs or containers, and they are what you can SSH into.

If there is more than one agent, then the user has to decide which one they want to run JetBrains from.

fioan89 added a commit that referenced this issue Jun 28, 2022
- the hostname for the connection is `coder.WorkspaceName` if there is at most
  an agent.
- whereas if there are multiple agents, the hostname becomes `coder.WorkspaceName.AgentName`
- the OS and Arch are also retrieved from the agent.
- removed specific Linux distribution icons
- refactored the utilities around OS&Arch resolving
- resolves #2
fioan89 added a commit that referenced this issue Jun 28, 2022
…aces

Impl support for multi agent workspaces

-  add REST models for Workspace agents
-  add REST calls to retrieve the workspace resources
-  use custom exception & add docs
-  refactor: return the agents instead the full list of resources
-  add new icons for win/mac

-  add new view model for workspace
    - UI needs to present a combination of properties
      from two data models (Workspace and WorkspaceAgent)

-  implement support for workspaces with multiple agents
    - the hostname for the connection is `coder.WorkspaceName` if there is at most
      an agent.
    - whereas if there are multiple agents, the hostname becomes `coder.WorkspaceName.AgentName`
    - the OS and Arch are also retrieved from the agent.
    - removed specific Linux distribution icons
    - refactored the utilities around OS&Arch resolving
    - resolves #2

- use agent's OS and Arch to determine the supported Jetbrains products
    - the mechanism to determine the supported jetbrains products based on
      OS/Arch uses the os/arch properties from the agent data models.
    - if that is missing we fall back on the old way which opens an SSH connection
      and runs a  few unix commands to determine the properties
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants