This server manages Decentraland squids.
The server includes a daemon that monitors active squids every minute. This daemon checks:
- If active squids (those whose
schema_name
matchesproject_active_schema
) have an estimated synchronization time (sqd_processor_sync_eta_seconds
) greater than 10 seconds. - If the estimated synchronization time cannot be obtained.
In either case, the daemon sends an alert through Slack with detailed information about the affected squid.
To enable Slack alerts, you need to configure the following environment variables:
SLACK_BOT_TOKEN=xoxb-your-bot-token
SLACK_CHANNEL=alerts
SLACK_BOT_TOKEN
: Slack bot token with permissions to send messages.SLACK_CHANNEL
: Slack channel where alerts will be sent (optional, default is 'general').
For local development and testing without AWS access, you can use the following environment variables:
ENV=development
# or
USE_MOCK_SQUIDS=true
This will enable mock data with a simulated out-of-sync squid.
To test the "ETA unavailable" scenario, you can set:
FORCE_ETA_UNAVAILABLE=true
- Node.js
- npm
npm install
npm start
npm test