UCloud logo UCloud logo UCloud
v2026.7.0-k8s.18
  1. UCloud/Core
  2. 1. Introduction
  3. 2. Projects
  4. 3. API Tokens
    1. 3.1. Platform API Tokens
    2. 3.2. Provider API Tokens
  5. 4. Accounting
  6. 5. Orchestration
  7. 6. Frontend
  8. UCloud/IM for Slurm-based HPC
  9. 7. Installation
  10. 8. Architecture and Networking
  11. 9. User and Project Management
  12. 10. Filesystem Integration
    1. 10.1. Inter-provider file transfers
  13. 11. Slurm Integration
    1. 11.1. Application Management
    2. 11.2. Built-in Applications
  14. 12. Reference
    1. 12.1. Configuration
    2. 12.2. CLI
  15. 13. Appendix
    1. 13.1. Built-in Application Index
  16. UCloud/IM for Kubernetes
  17. 14. Installation
  18. 15. Architecture and Networking
  19. 16. Filesystem Integration
  20. 17. Compute Jobs
    1. 17.1. Networks
    2. 17.2. Public Links
    3. 17.3. Public IPs
    4. 17.4. License Servers
    5. 17.5. SSH Servers
    6. 17.6. Job Audit Log
    7. 17.7. Virtual machines
  21. 18. AI Inference
    1. 18.1. Architecture
    2. 18.2. Chat Middleware
    3. 18.3. Chat Playground
    4. 18.4. Model Discovery and Catalog
    5. 18.5. Dynamo Deployments
    6. 18.6. Usage and Accounting
    7. 18.7. Audit
    8. 18.8. Metrics
    9. 18.9. Security
  22. 19. Integrated applications
    1. 19.1. Syncthing
    2. 19.2. Integrated terminal
    3. 19.3. Kubernetes clusters
      1. 19.3.1. Architecture
      2. 19.3.2. Stacks
      3. 19.3.3. Creating a cluster
      4. 19.3.4. Cluster dashboard
      5. 19.3.5. Networking and storage
      6. 19.3.6. Maintenance and upgrades
      7. 19.3.7. Backup and recovery
      8. 19.3.8. Reference
  23. 20. UCX applications
    1. 20.1. Hello world
    2. 20.2. Data binding
    3. 20.3. UI events
    4. 20.4. Component reference
    5. 20.5. API reference
  24. 21. Reference
    1. 21.1. Configuration
    2. 21.2. CLI
  25. Style guidelines
  26. 22. Branding and identity for UCloud
  27. 23. Documentation
  28. H: Procedures
  29. 24. H: Procedures
  30. 25. H: Introduction
  31. 26. H: Auditing
  32. 27. H: Auditing scenario
  33. 28. H: GitHub actions
  34. 29. H: Deployment
  35. 30. H: 3rd party dependencies (risk assesment)
  36. Glossary
  37. 31. Glossary
  1. Links
  2. Source Code
  3. Releases

Architecture and Networking

In this article we will go through the overall architecture and networking modes of UCloud/IM for Slurm. We will start by explaining the overall architecture, followed with a discussion on networking requirements.

Architecture Views

This section describes UCloud/IM from the outside in. Each view answers one question. Start at the top and follow the links when you need more detail.

ViewQuestion it answersWhere
System contextWho uses UCloud/IM, and which systems does it talk to?the first figure below
DeploymentWhich containers make up UCloud/IM, and how does traffic reach them?the second figure below, and Networking Requirements
Containers and mappingsHow do projects, users and drives map to the provider’s systems?User and Project Management, Filesystem Integration
DynamicHow does a job travel from UCloud/Core to the cluster, and how does the cluster report back?Slurm Integration
DynamicHow does a file move between two providers?Inter-provider file transfers

Overall Architecture

UCloud/IM is a software system that the provider installs at the HPC system. The figure below places it in its context: the people who use it, the platform that forwards to it, and the provider systems it uses.

flowchart TB
    user["End-user"]:::diagram-external-user
    core["UCloud/Core"]:::diagram-external-ucloud
    im["UCloud/IM"]:::diagram-provider-ucloud
    slurm["Slurm cluster"]:::diagram-provider-server
    identity["Identity management"]:::diagram-provider-user
    filesystem["Filesystem"]:::diagram-provider-folder

    user -->|"uses"| core
    core <-->|"requests, job status and usage"| im
    user -->|"connects to interactive applications"| im
    im -->|"submits jobs to"| slurm
    im -->|"manages local users"| identity
    im -->|"reads and writes files"| filesystem

UCloud/IM and the systems around it. The figure shows the people and the external systems, and how they relate. It does not show the parts inside UCloud/IM.

The end-user reaches UCloud/IM through UCloud/Core. Interactive applications are the exception: the end-user connects to those directly.

The figure below zooms in one step, to the deployment.

The UCloud/IM deployment for Slurm-based HPC. This diagram depicts a production-like setup. It does not show the networking modes; see Networking Requirements.

In the deployment above, we have several actors. We have summarised the role of each actor in the table below:

Actor Purpose
[End-user](../glossary.md#end-user)

The end-user is a user of the UCloud platform and of the service provider. As we have discussed in the introduction chapter, the end-user primarily communicates with UCloud/Core, and in rare cases directly with a service provider.

In this diagram, we assume that the user has already gone through the connection procedure (TODO link) and has established a mapping from a UCloud identity to a local identity with uid 41231.

[UCloud/Core](../glossary.md#ucloudcore)

The UCloud platform itself. This is the service hosting the user-interface and core APIs. It is not part of the provider’s deployment. You can read more about the role of UCloud/Core here.

The core will to a large extent, forward requests to service providers after performing validation, authentication and authorization.

[HPC frontend](../glossary.md#hpc-frontend)

UCloud/IM is hosted on the HPC’s frontend node (or a similar node). This node is capable of consuming the services of the HPC environment.

[UCloud/IM (Gateway)](../glossary.md#ucloudim-gateway)

The gateway is a publicly accessible web-server and is part of the integration module. It accepts all traffic destined to the integration module. In then forwards to either the UCloud/IM server instance or one of the user instances. It does this based on routing information from UCloud/Core or the end-user. Traffic which is related to a user action almost always goes to a user instance matching the UID of the end-user.

[UCloud/IM (Server)](../glossary.md#ucloudim-server)

The server instance of the integration module. This server is responsible for handling server-to-server traffic which is not related to an end-user request. For example, this server instance will tell UCloud/Core about which services it exposes.

The server instance consumes some of the HPC services. This includes keeping track of Slurm jobs and reporting the state back to UCloud/Core. This also includes the creation of filesets, user identities, projects and Slurm accounts.

It is the job of the server instance to start new user instances. The server instance is capable of doing this through sudo. The configuration of sudo was covered in the previous section.

[UCloud/IM (User)](../glossary.md#ucloudim-user)

One of the integration module server instances. These instances are launched by the UCloud/IM server instance on demand. Any end-user action through UCloud/Core will trigger the automatic launching of such an instance. This instance runs with the same privileges as if the user had logged in through other means. All authorization checks are enforced directly by the operating system.

The user instance consumes HPC services via the normal means. This is done through the same mechanisms that your users would normally access your systems.

[HPC services](../glossary.md#hpc-services)

The HPC services are the services that make up your actual HPC environment. This includes systems such as:

  • Your filesystem
  • Identity management and group management
  • Slurm

UCloud/IM does not require these services to be deployed in any specific way. The diagram show these on a single node solely for illustrative purposes. The services can be deployed on any number of nodes.

Examples

In order to better illustrate how this works, we will go through a number of examples show-casing common communication patterns.

Browsing Files

  1. End-user → UCloud/Core: Request files at $PATH
  2. UCloud/Core → UCloud/IM (Gateway): Request files at $PATH
    1. If UCloud/IM (UID 41231) is running, skip to step 3
    2. UCloud/IM (Gateway) → UCloud/Core: User is not ready
    3. UCloud/Core → UCloud/IM (Gateway) → UCloud/IM (Server): Spawn user instance
    4. Go to step 2
  3. UCloud/IM (Gateway) → UCloud/IM (UID 41231): Request files at $PATH
  4. UCloud/IM (UID 41231) → UCloud/IM (Gateway) → UCloud/Core → End-user: File listing from $PATH

Uploading a File

  1. End-user → UCloud/Core: Request upload at $PATH
  2. UCloud/Core → UCloud/IM (Gateway): Request upload at $PATH
    1. If UCloud/IM (UID 41231) is running, skip to step 3
    2. UCloud/IM (Gateway) → UCloud/Core: User is not ready
    3. UCloud/Core → UCloud/IM (Gateway) → UCloud/IM (Server): Spawn user instance
    4. Go to step 2
  3. UCloud/IM (Gateway) → UCloud/IM (UID 41231): Request upload at $PATH
  4. UCloud/IM (UID 41231) → UCloud/IM (Gateway) → UCloud/Core → End-user: Upload endpoint
  5. End-user → UCloud/IM (Gateway) → UCloud/IM (User): File data

Starting a Job

  1. End-user → UCloud/Core: Start job given $PARAMETERS
  2. UCloud/Core → UCloud/IM (Gateway): Start job given $PARAMETERS
    1. If UCloud/IM (UID 41231) is running, skip to step 3
    2. UCloud/IM (Gateway) → UCloud/Core: User is not ready
    3. UCloud/Core → UCloud/IM (Gateway) → UCloud/IM (Server): Spawn user instance
    4. Go to step 2
  3. UCloud/IM (Gateway) → UCloud/IM (UID 41231) → Slurm: Start job given $PARAMETERS
  4. UCloud/IM (UID 41231) → UCloud/IM (Gateway) → UCloud/Core → End-user: Job has been submitted to the queue

Followed by periodic monitoring by UCloud/IM (Server):

  1. UCloud/IM (Server) → Slurm: List jobs
  2. UCloud/IM (Server) → UCloud/Core: Send job updates
  3. UCloud/Core → End-user(s): Notify about relevant job updates

Networking Requirements

In this section, we will recap the requirements listed from the section above.

DNS and Certificates

In this section we will list DNS entries and accompanying TLS certificates required for your service. All certificates must be signed by a trusted root CA. DNS entries must resolve through public DNS servers. In the table below we use my-provider.example.com as a placeholder representing your provider, please replace this with whichever domain you control (for example hippo.cloud.sdu.dk).

MandatoryHostnameResolves toPurpose
Yesmy-provider.example.comGateway IPAccepting general IM traffic (user and server)
No*.my-provider.example.comGateway IPTraffic destined for interactive applications

The gateway IP refers to the IP address on which the UCloud/IM gateway listens. This must be a publicly routable IP address.

Firewall Configuration

ProtocolPortSourceDestinationPurpose
TCP80AllGateway IPRedirecting to HTTPS (443)
TCP443AllGateway IPAccepting IM traffic and interactive application traffic
TCP443Gateway IPUCloudSending messages to UCloud/Core
Previous Installation
Next User and Project Management