Deploy to Multiple Environments
By default, On-Premise Agents handle requests for all integration profiles. To configure agents to execute workloads for a specific profile, deploy separate agents to each of your environments or VPCs, and set the agent tags variable to a comma separated list of key-value pairs in the form profile:<PROFILE_NAME>
. Some examples include:
# Execute APIs for the production profile
"profile:production"
# Execute APIs for both the development and staging profiles
"profile:development,profile:staging"
# Execute APIs for all profiles (default)
"profile:*"
To configure agent tags, set the following variable depending on your deployment method.
- Terraform
- Helm
- Docker
superblocks_agent_tags = "profile:<VALUE>"`
superblocks:
#(...)
agentTags: "profile:<VALUE>"
When running the agent with Docker Compose, set SUPERBLOCKS_AGENT_TAGS
along with other required environment variables.
curl -s https://raw.githubusercontent.com/superblocksteam/agent/main/compose.yaml | \
SUPERBLOCKS_AGENT_TAGS="profile:<VALUE>" \
docker compose -p superblocks -f - up