-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
30 lines (29 loc) · 1.21 KB
/
Copy pathrender.yaml
File metadata and controls
30 lines (29 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Render Blueprint — deploy NetPulse Live (the real-time BGP anomaly monitor).
#
# To deploy:
# 1. Open https://dashboard.render.com/blueprints
# 2. "New Blueprint Instance" -> connect github.com/pauti04/netpulse
# 3. Render builds the Dockerfile and serves the live monitor on a
# free .onrender.com subdomain in ~3 minutes.
#
# The `netpulse live` process taps the RIPE RIS Live BGP feed and serves a
# self-refreshing status page at / plus a JSON feed at /live/recent.
#
# Free-tier caveat: a free web service spins down after 15 min idle (so
# monitoring pauses when nobody's watching, and cold-starts in ~30s). For
# true always-on 24/7 monitoring, use Render's Starter plan or Fly.io with
# a payment method — change `plan: free` below to `plan: starter`.
services:
- type: web
name: netpulse-live
plan: free
runtime: docker
dockerfilePath: ./Dockerfile
# Smaller window keeps memory comfortable on the free 512 MB instance
# (~60s of the live feed ≈ 100K updates instead of 200K+).
dockerCommand: netpulse live --host 0.0.0.0 --port $PORT --window 60s --interval 15s
healthCheckPath: /healthz
autoDeploy: true
envVars:
- key: PYTHONUNBUFFERED
value: "1"