Service settings

api-gatewaypayments-coreChanges apply on the next deploy

Source

Where the service is built from and how it starts.

Used in URLs, logs and the CLI.

Pushes to the production branch deploy automatically.

Relative to the repository root.

Regions and scaling

Instances run in every selected region.

Volumes and the cron runner live here.

Instances per region

Currently 3 in iad1 and 3 in fra1.

Autoscale

Add an instance when CPU stays above 70% for 2 minutes.

Sleep when idle

Stop instances after 10 minutes without requests. Not for public APIs.

Health checks

New instances take traffic only after they pass.

Restart policy

What happens when the process exits.

Restart policy

Notifications

Sent to #payments-oncall in Slack and to PagerDuty for firing alerts.

Deploys
Page on-call

For alerts marked critical.

Danger zone

These act on production immediately.

Pause service

Stops all 6 instances. Requests to api.ledgerline.com return 503 until resumed.

Delete service

Removes api-gateway, its 214 deployments and its variables. Volumes are kept for 7 days.

Delete api-gateway?