--- kind: Service name: web-app count: 3 runtime: one_of: process command: /usr/bin/httpd -f /etc/orca/web-app/httpd.conf ports: - name: http port: 8080 restart: mode: service attempts: 5 delay: 2s update: strategy: rolling max_parallel: 1 min_healthy_time: 10s healthy_deadline: 2m service: name: web-app port: 8080 health: check_type: http interval: 5s timeout: 1s unhealthy_threshold: 2 constraints: - node.role == "web" affinity: - target: zone == "a" weight: 80 lifecycle: post_start: - /usr/local/bin/warm-cache.sh pre_stop: - /bin/sh -c 'sleep 5' - /usr/local/bin/drain.sh --- # Web App Frontend web application serving HTTP on port 8080 via Unix socket. Three replicas with rolling updates, anti-affinity for zone spreading, and lifecycle hooks for cache warm-up and graceful drain.