All Products
Search
Document Center

E-MapReduce:Manage gateways

Last Updated:Mar 26, 2026

Gateways in EMR Serverless StarRocks let you route queries to dedicated Frontend (FE) node groups, isolating workloads across business scenarios in storage-compute separation environments.

Prerequisites

Before you begin, make sure you have:

  • A storage-compute separation instance. See Create an instance.

  • An instance version where the last three digits are 1.7.9 or higher, for example, 3.3.8-1.94-1.7.10.

Key concepts

Default gateway: Created automatically when you create an instance. Handles all queries that arrive through implicit (unspecified) gateways. Automatically associates with all FE nodes at initialization and picks up new FE nodes after scaling out. The default gateway cannot be deleted.

Custom gateway: A named gateway you create to associate a subset of FE nodes with a specific business scenario. You can modify and delete custom gateways.

When to create a custom gateway

The default gateway works for most use cases. Consider creating a custom gateway when:

  • Workload isolation: High-concurrency analytical queries are interfering with time-sensitive operational queries.

  • Performance optimization: Instance load is high and critical business queries need a dedicated set of FE nodes.

  • Independent scaling: You have scaled out FE nodes and want to assign the additional capacity to a specific business application.

View the default gateway

  1. Log on to the E-MapReduce console.

  2. In the left-side navigation pane, select EMR Serverless > StarRocks.

  3. In the top menu bar, select the region.

  4. Click the name of the target instance.

  5. On the Instance Details page, go to the FE Details section to view the default gateway.

    ParameterDescription
    Internal endpointThe internal access endpoint for applications within the same Virtual Private Cloud (VPC). Click View PrivateZone to view DNS records. Click Enable SLB to enable load balancing using Server Load Balancer (SLB) with the slb.s1.small instance type. After enabling SLB, click View SLB to open the SLB console.
    Note

    Enabling SLB incurs fees. See CLB Billing overview. Once enabled, you cannot switch back to PrivateZone.

    Public endpointThe endpoint for public network access. Click Enable Access over Internet to create a Classic Load Balancer (CLB) instance and expose the gateway to the public network.
    Note

    Enabling public access incurs CLB fees. See CLB Billing overview.

    Write to Leader OnlyControls whether the Leader node handles write requests only. Disabled: The Leader node processes both write and query requests. Enabled: The Leader node handles only write requests; query requests are distributed to Follower nodes. Enable this in high-concurrency write scenarios to reduce pressure on the Leader node.
    Network typeThe network connection type of the gateway.
    Number of associated FEsThe number of FE nodes associated with this gateway. The default gateway automatically associates with all existing FE nodes and picks up new nodes after you scale out.

Create a custom gateway

Important

Creating a custom gateway may cause brief interruptions to some queries. Perform this operation during off-peak hours to minimize impact.

Creating a custom gateway also creates a CLB instance, which incurs fees. See CLB Billing overview.

Before creating a gateway, make sure you have enough FE nodes. If the current FE node count is insufficient, scale out first. See Scale in or out an instance.

  1. On the Instance Details page, in the Gateway Information section, click Enable SLB.

  2. In the dialog box, click OK.

  3. In the Gateway Information section, click Create Gateway.

  4. In the Create Gateway dialog box, configure the following parameters.

    ParameterDescription
    Gateway nameA name for the gateway, used for identification and management.
    Assigned node countThe number of FE nodes to assign to this gateway. Nodes are assigned in increments of 2. For example, if the default gateway has 5 FE nodes and you scaled out by 2, you can assign 2 of those nodes to the new gateway for independent resource management.
  5. Click OK.

Modify a custom gateway

  1. On the Instance Details page, in the Gateway Information section, find the target gateway and click Modify Gateway.

  2. In the dialog box, update the Gateway name or Assigned node count, then click OK.

Delete a custom gateway

Important

Deleting a gateway disconnects all clients connected to it. All tasks submitted through those connections will fail. Verify that no business traffic is using the gateway before proceeding.

Note

Only custom gateways can be deleted. The default gateway cannot be deleted.

  1. On the Instance Details page, in the Gateway Information section, find the target gateway and click Delete Gateway.

  2. In the dialog box, click OK.

What's next