An agent pool is a collection of agents that use the same configuration, with uniform access and visibility to your source and destination. Agent pools also provide control over transfer bandwidth limits.
All agents must belong to an agent pool.
This guide describes how to use agent pools.
Before you begin
You must have the correct permissions on your project to work with agent pools. Refer to Access control with IAM for details.
You can view your current permissions.
To use gcloud commands,
install the gcloud command-line tool.
Create an agent pool
To create an agent pool:
Google Cloud console
In the Google Cloud console, go to the Agent pools page.
The Agent pools page is displayed, listing your existing agent pools.
Click Create another pool.
Name your pool, and optionally describe it.
You may choose to set a bandwidth limit that will apply to the pool as a whole. The specified bandwidth in MB/s will be split amongst all of the agents in the pool. See Manage network bandwidth for more information.
Click Create.
REST API
Use projects.agentPools.create:
POST https://storagetransfer.googleapis.com/v1/projects/PROJECT_ID/agentPools?agent_pool_id=AGENT_POOL_ID
Replace the following:
PROJECT_ID: The project ID that you're creating the agent pool in.AGENT_POOL_ID: The agent pool ID that you are creating.
If an agent pool is stuck in the Creating state for more than 30 minutes,
we recommend deleting the agent pool and creating it again.
Revoking required Storage Transfer Service permissions from a project while
an agent pool is in the Creating state leads to incorrect service behavior.
gcloud CLI
To create an agent pool with the gcloud command line tool, run
gcloud transfer agent-pools create.
gcloud transfer agent-pools create AGENT_POOL
Where the following options are available:
AGENT_POOL is a unique, permanent identifier for this pool.