minitrino.core.cluster.ports module#

Port management for Minitrino clusters.

This module provides classes and functions to manage port assignments for Minitrino clusters, including dynamic port assignment and handling user overrides.

class minitrino.core.cluster.ports.ClusterPortManager(ctx: MinitrinoContext, cluster: Cluster)[source][source]#

Bases: object

Manage cluster ports for the current cluster.

Parameters:
  • ctx (MinitrinoContext) – An instantiated MinitrinoContext object with user input and context.

  • cluster (Cluster) – An instantiated Cluster object.

set_external_ports(modules: list[str] | None = None) None[source][source]#

Dynamically assign host ports to containers.

Parameters:

modules (list[str], optional) – A list of module names to scan for port mappings.